• 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: iPhoto album scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iPhoto album scripting


  • Subject: Re: iPhoto album scripting
  • From: "Stockly, Ed" <email@hidden>
  • Date: Tue, 16 Oct 2007 12:08:05 -0700
  • Thread-topic: iPhoto album scripting

>
> tell application "iPhoto"
>     set this_album to get selection
> end tell
>
> which produces
> {album id 4.294968078E+9 of application "iPhoto"}


I think if you were to follow that with this command:

class of this_album

You'd get "list"

So, try this:

 tell application "iPhoto"
    set this_album to get selection
    set this_album to item 1 of this_album
    set num_of_photos to count photos in this_album
 end tell



Hth,

ES
 _______________________________________________
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

  • Prev by Date: Re: iPhoto album scripting
  • Next by Date: Re: iPhoto album scripting
  • Previous by thread: Re: iPhoto album scripting
  • Next by thread: Re: iPhoto album scripting
  • Index(es):
    • Date
    • Thread