• 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
Re: Illustrator Scripting Help Needed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Illustrator Scripting Help Needed


  • Subject: Re: Illustrator Scripting Help Needed
  • From: Christopher Nebel <email@hidden>
  • Date: Tue, 14 Oct 2003 13:05:19 -0700

On Oct 14, 2003, at 12:47 AM, Olivier Ringenbach wrote:

tell application "Adobe Illustrator 10"
tell front document
delete (every path item whose (item 1 of position) > 200)
end tell
end tell

I guess you're being wildly optimistic. You can use a whose clause with a
property, but not part of a property, as you're attempting here.

No Shane, this time you're wrong (Champagne!!!),
this perfectly works for me:

tell application "Adobe Illustrator 10"
delete (every page item of document 1 whose (item 1 of position > 200))
end tell

On Oct 14, 2003, at 2:58 AM, Rob Stott wrote:

Strangely, I couldn't get Olivier's suggestion to work...

Theoretically, Olivier is correct -- the language spec says this sort of thing ought to work. However, it's up to the application to implement it correctly, and not all of them do. Why Olivier and Rob are getting apparently different results with the same application is a mystery to me.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.

References: 
 >Re: Illustrator Scripting Help Needed (From: Olivier Ringenbach <email@hidden>)

  • Prev by Date: Re: forwarding in Eudora II
  • Next by Date: Re: iCal 1.5.1 scripting
  • Previous by thread: Re: Illustrator Scripting Help Needed
  • Next by thread: Re: Illustrator Scripting Help Needed
  • Index(es):
    • Date
    • Thread