AppleScript blocks
AppleScript blocks
- Subject: AppleScript blocks
- From: Steve Roy <email@hidden>
- Date: Thu, 30 Oct 2003 12:54:03 -0500
Hi,
I have a situation with InDesign and Suitcase that I thought might be worthy of
discussing here.
I'm on Mac OS X 10.2.8. I have InDesign 2.0.2, with Suitcase and the Suitcase
plugin for InDesign all installed. With this setup, if you launch InDesign but
Suitcase isn't running, you get a message saying the plugin couldn't load and so
you should launch Suitcase first and then restart InDesign.
This is fine if you run InDesign manually, but when you do it from a script, the
message dialog that InDesign pops up causes AppleScript to block completely.
Even if you dismiss the dialog by pressing the OK button, the script never
recovers and eventually times out.
I was testing with the following simple script, which exhibits the problem.
Remember, it's only when both InDesign and Suitcase are not running prior to
starting the script that the problem occurs.
version of application "InDesign 2.0.2"
-->
I don't know if this is an AppleScript or an InDesign problem. I haven't found a
way to work around the problem. Trying to be clever, I even tried the following,
without success. It still blocks completely.
set theVersion to missing value
repeat while theVersion is missing value
try
with timeout of 1 second
set theVersion to version of application "InDesign 2.0.2"
end timeout
end try
end repeat
theVersion
Steve
--
Steve Roy <email@hidden>
Personal homepage: <
http://homepage.mac.com/sroy>
Projects homepage: <
http://www.roydesign.net>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.