• 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: Photo ID from iPhoto Import?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Photo ID from iPhoto Import?


  • Subject: Re: Photo ID from iPhoto Import?
  • From: kai <email@hidden>
  • Date: Sat, 19 Feb 2005 05:32:14 +0000


On Saturday, February 19, 2005, at 04:32 am, I wrote:

One way would be to compare a pre-import list of photos against a post-import one. It doesn't seem currently possible to get a list satisfying a condition (i.e. a 'whose' filter), so I guess you'll have to loop through the latest list.

Since you didn't post any code, it's not possible to adapt your approach to offer you a more relevant example - but this might give you a general idea:

[snip]

Of course, for a batch routine, the script I suggested could be easily adapted:

----------------------------

property dfltAlbum : {}

to chooseAlbum(l)
tell (choose from list l with prompt "Choose a target album:" default items dfltAlbum)
if it is false then error number -128
set dfltAlbum to it
item 1
end tell
end chooseAlbum


on latestImport(l, r)
	set i to {}
	repeat with p in r
		if p is not in l then set i's end to p mod (8 ^ 8)
	end repeat
	i
end latestImport

tell application "iPhoto"
	set currAlbum to album (my chooseAlbum(name of albums))
	tell me to set currFolder to choose folder
	tell currAlbum
		set prevList to id of photos
		import from currFolder to it
		set idList to my latestImport(prevList, id of photos)
	end tell
end tell

-- do something with idList

----------------------------

---
kai

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Photo ID from iPhoto Import?
      • From: kai <email@hidden>
References: 
 >Re: Photo ID from iPhoto Import? (From: kai <email@hidden>)

  • Prev by Date: Re: Photo ID from iPhoto Import?
  • Next by Date: (no subject)
  • Previous by thread: Re: Photo ID from iPhoto Import?
  • Next by thread: Re: Photo ID from iPhoto Import?
  • Index(es):
    • Date
    • Thread