Re: Opening a file in OS X and Quark
Re: Opening a file in OS X and Quark
- Subject: Re: Opening a file in OS X and Quark
- From: Shane Stanley <email@hidden>
- Date: Thu, 28 Nov 2002 08:32:32 +1100
On 28/11/02 1:48 AM +1000, Lagrange, Chris-DLI,
email@hidden, wrote:
>
OS 10.2.2, Applecript 1.8.3, any version of Quark and ...
>
>
Using Script Editor 1.8.3 in Classic I can run the following script
>
successfully.
>
>
Using Script Editor 1.9 in OS X Quark activates and the script does nothing
>
else. The file does not open. The script is still running but just sits
>
there.
>
>
>
tell application "QuarkXPress3.32"
>
activate
>
set filepath to "HD:filename"
>
open file filepath
>
end tell
>
>
If I replace "QuarkXpress3.32" with "Finder" the file opens using Script
>
Editor 1.9 but you can not add options to the open command like "use doc
>
prefs".
>
>
Has anyone seen this same behavior or am I missing something?
Yes. Scripting of QuarkXPress is essentially broken under 10.2.x. It
sometimes works for a while, but eventually it stops. The activate command
seems particularly prone to bring this on, as does activating QXP manually.
If you wait a while, the problem goes away temporarily; presumably it times
out.
It looks to me there's some kind of communication breakdown between QXP and
the system, with QXP still left waiting for an acknowledgement that's
already been sent.
Might be a good time to check out InDesign :-)
--
Shane Stanley, email@hidden
_______________________________________________
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.