Re: Scripting QuarkXPress from OS X
Re: Scripting QuarkXPress from OS X
- Subject: Re: Scripting QuarkXPress from OS X
- From: Steve Roy <email@hidden>
- Date: Tue, 14 Jan 2003 09:22:42 -0500
email@hidden (Scott P. Richert) wrote:
>
set myFilePath to (path to desktop from user domain as string)
>
set myFileName to myFilePath & "0000_0001.ps"
>
tell application "QuarkXPress"
>
activate
>
print page 1 of front document PostScript file (myFileName)
>
end tell
Instead
PostScript file (myFileName)
try
PostScript file (myFileName as alias)
Might help, might not. Contrary to what Shane said, I've never had trouble using
'activate' when scripting QXP in Classic. However, files/paths/aliases are
finicky and I've had the same kind of hang that you describe. In general, using
alias references where appropriate fixed those.
Sometimes QuarkXPress gets in a weird state, at which point quitting and
restarting QuarkXPress takes care of the problem. If not, restart Classic.
Steve
--
Steve Roy <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.