dictionary collision
dictionary collision
- Subject: dictionary collision
- From: David Jacopille <email@hidden>
- Date: Wed, 01 Jun 2011 11:23:27 -0400
In the context of a tell "Adobe Illustrator CS5" command the following scripting addition function doesn't work:
set r to round counter / 2
It throws an error of type -30002 which I'm guessing means there is some collision with some Illustrator vocabulary (although round isn't in the Illustrator dictionary - rounded is though). Whether I'm right about that or not, the function works outside of Illustrator but not inside.
Unfortunately the command is buried deep inside the tell Illustrator statement and I don't want to back out for that. It would be annoying to create a handler just for this problem.
Is there a way to explicitly clarify what dictionary to use to interpret a function name like "round"? Something like
set r to (using scripting additions round (counter) / 2)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden