Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Error calling WScript.sleep

Participant ,
Oct 25, 2010 Oct 25, 2010

Hi all

I´m trying to sleep visual basic script for a time using WScript.sleep, and get an object required error.

How can I send to sleep a vb script?

Regards

TOPICS
Scripting
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 25, 2010 Oct 25, 2010

VBS script must be launched with a doScript call from InDesign. That´s why WScript is failing.

I tried to create InDesign.Application, and got a "'Name' is a read only property" error (?)

Regards

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 11, 2017 Aug 11, 2017
LATEST

Yes, you cannot call WScript from doScript. You have to write the vbscript to a file, then execute the file. WScript will then work.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines