Re: dictionary collision
Re: dictionary collision
- Subject: Re: dictionary collision
- From: Axel Luttgens <email@hidden>
- Date: Wed, 01 Jun 2011 19:06:56 +0200
Le 1 juin 2011 à 17:23, David Jacopille a écrit :
> 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.
Hello David,
Strange... don't you have some scripting addition, other than Standard Additions, that implements a "round" command?
Note that the symbolic constant for error -30002 is kLocalesTableFormatErr; this could hint at some command able to cope with various numeric formats.
And are you really, really sure not to have a "round" keyword somewhere in CS5's dictionary?
> 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)
Ron already suggested:
tell me to set r to round counter / 2
You could also try:
tell current application to set r to round counter / 2
Axel
_______________________________________________
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