• 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 Keyword Export Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iPhoto Keyword Export Question


  • Subject: iPhoto Keyword Export Question
  • From: Chris Glowacki <email@hidden>
  • Date: Mon, 5 Jan 2009 16:03:30 -0800

 Hi All,

A question of form/syntax. I currently use the loop below to create a list of tagged photo on iPhoto to export by keyword. I would like to do this more quickly and with a more compact syntax.

For example the following command in iPhoto is quite fast :
set comment of (every photo in album "Unsorted" whose (width < hmin) and (height < wmin)) to my_comment

I'd like a similar statement that could do the what the following loop does:

repeat with x from 1 to export_key_count
tell application "iPhoto" to set current_photo_list to every photo in item x of export_key_list
tell application "Finder"
set move_list to {}
set photo_count to count of current_photo_list
set running_count to running_count + photo_count
set this_export_folder to item x of export_folder_list
repeat with p from 1 to photo_count
tell application "iPhoto"
set this_file_path to image path of item p of current_photo_list as POSIX file as alias
add item p of current_photo_list to album "Exported"
end tell
set end of move_list to this_file_path
end repeat
try
duplicate move_list to this_export_folder with replacing
end try
end tell

In this case, I have to create a list of all the photos in a certain folder, then another list of the paths to each photo, then copy the files (there is additional code later in the script to delete the files once exported)

Is there a way to create a list of full file paths to a group of photos (for example, in a named album) using AS 'whose' and 'every' options?

For example (and this in NOT correct) :  get POSIX path of every photo of album x 

and have it return a list of files that can be manipulated with the Finder 'duplicate' command?

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

  • Follow-Ups:
    • Re: iPhoto Keyword Export Question
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: on the lack of documentation (was: Re: on neophytes vs perfectionists)
  • Next by Date: Is this list still active?
  • Previous by thread: Re: on the lack of documentation (was: Re: on neophytes vs perfectionists)
  • Next by thread: Re: iPhoto Keyword Export Question
  • Index(es):
    • Date
    • Thread