0
Error calling WScript.sleep
Participant
,
/t5/indesign-discussions/error-calling-wscript-sleep/td-p/3067115
Oct 25, 2010
Oct 25, 2010
Copy link to clipboard
Copied
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Joe_Charles
AUTHOR
Participant
,
/t5/indesign-discussions/error-calling-wscript-sleep/m-p/3067116#M201128
Oct 25, 2010
Oct 25, 2010
Copy link to clipboard
Copied
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Enthusiast
,
LATEST
/t5/indesign-discussions/error-calling-wscript-sleep/m-p/3067117#M201129
Aug 11, 2017
Aug 11, 2017
Copy link to clipboard
Copied
Yes, you cannot call WScript from doScript. You have to write the vbscript to a file, then execute the file. WScript will then work.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

