• 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
iPhoto and selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iPhoto and selection


  • Subject: iPhoto and selection
  • From: Rob Lewis <email@hidden>
  • Date: Tue, 30 Mar 2010 15:13:29 -0700

Why does this give the error "Can’t make item 1 of selection into type reference."

tell application "iPhoto"
    item 1 of selection
end tell

Whereas this works:

tell application "iPhoto"
    item 1 of (selection as list)
end tell

The selection sure looks like a list in the Result pane. 

 _______________________________________________
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: iPhoto and selection
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Read/Write Text Files
  • Next by Date: Re: Different pictures into one document
  • Previous by thread: Re: Read/Write Text Files
  • Next by thread: Re: iPhoto and selection
  • Index(es):
    • Date
    • Thread