• 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: AppleScript-Users Digest, Vol 4, Issue 504
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript-Users Digest, Vol 4, Issue 504


  • Subject: Re: AppleScript-Users Digest, Vol 4, Issue 504
  • From: nick weldin <email@hidden>
  • Date: Wed, 17 Oct 2007 09:01:51 +0100

That does exactly what I wanted -thanks

Nick




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: Compress PDF file
  • Previous by thread: Re: Problems with Mac to PC names conversion script
  • Next by thread: Re: AppleScript-Users Digest, Vol 4, Issue 504
  • Index(es):
    • Date
    • Thread