• 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
More info on iPhoto Export by Keyword
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

More info on iPhoto Export by Keyword


  • Subject: More info on iPhoto Export by Keyword
  • From: Chris Glowacki <email@hidden>
  • Date: Wed, 7 Jan 2009 00:33:34 -0800

I just realized I'm not completely sure how to respond to responses to my thread :-)  Just send back to the list?


Thank you Axel for your comments- you indicated that the following command:

tell application "iPhoto" to get image path of photos of album "somename" returns a list of strings which could then be converted into file  
references, for example through "POSIX file".

If you can just tell me how that is done, I can take it from there, but that is precisely the point I am stuck at. What I do is loop through every photo in a list (a smart folder), and create the POSIX file as below:

set this_file_path to image path of item p of current_photo_list as POSIX file as alias

Where I define current_photo_path as:

set current_photo_list to every photo in item x of export_key_list

Where export_key_list is created from
get every album whose type is smart album and name of parent is "Sort_Misc"
set export_folder_list to result

As to why export_key_list is a list of lists, it is simply because it is created from a bunch of Smart Folders-each of which contain multiple Photos.  I will be delighted if someone points out how tragically uncool this is and shows me a better way, but not being an AppleScript Expert I am happy that while my code is slow, it does exactly what I want. The problem is that when I get more than about 100 files in any smart folder, the script times out so I just export those folder manually (using the export function-which I am very sad to say is not supported directly in iPhoto's AS Library as I feel it should be:-)


thanks

chris







 _______________________________________________
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: count pages in PDF on OS 10.4
  • Next by Date: [ANN] Smile 3.4
  • Previous by thread: Re: count pages in PDF on OS 10.4
  • Next by thread: [ANN] Smile 3.4
  • Index(es):
    • Date
    • Thread