• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
dictionary collision
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: dictionary collision
      • From: Axel Luttgens <email@hidden>
    • Re: dictionary collision
      • From: KOENIG Yvan <email@hidden>
    • Re: dictionary collision
      • From: Michelle Steiner <email@hidden>
    • Re: dictionary collision
      • From: Ron Hunsinger <email@hidden>
  • Prev by Date: Re: Numbers: 'make new' failing in various ways?
  • Next by Date: Re: dictionary collision
  • Previous by thread: Re: Create a string from raw data
  • Next by thread: Re: dictionary collision
  • Index(es):
    • Date
    • Thread