Re: Error Scripting Quark 4.11 in Jaguar
Re: Error Scripting Quark 4.11 in Jaguar
- Subject: Re: Error Scripting Quark 4.11 in Jaguar
- From: Shane Stanley <email@hidden>
- Date: Wed, 14 Jan 2004 21:25:07 +1100
On Jan 14, 2004, at 8:00 PM, Rick Gordon wrote:
I am getting a strange error when putting together a script for
QuarkXPress 4.11, using Script Editor 1.9 in OS 10.2.6.
When I try to reference the scale of an image (for instance, as shown
below) using SE 1.9, an error is generated, and the result for scale
is listed as "current application". If I run the same script from
9.2.2 Classic, using SE 1.7, there is no error, and the scale is
properly represented as a list of two percentages.
tell picture box 1
copy ((scale of image 1) as list) to theScale
end tell
What's up here?
The coercions don't wrk automatically when scripting Classic QXP from
OS X. Either use a Classic script editor and save as classic applets,
or be explicit about your coercions:
tell picture box 1
set theScale to scale of image 1
set theScale to coerce theScale to list
end tell
--
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.