Re: selecting in iPhoto based on file name
Re: selecting in iPhoto based on file name
- Subject: Re: selecting in iPhoto based on file name
- From: Andrew Oliver <email@hidden>
- Date: Thu, 03 Apr 2003 09:31:36 -0800
This works for me:
tell application "iPhoto"
select (every photo whose image path is "/Users/me/Pictures/iPhoto
Library/2003/01/01/DSCN0351.jpg")
end tell
Note the user of Unix-style path names.
However, I don't think that this is the best way of tracking your database
of thumbnails. For example, what happens if the images move, for example.
Instead, I'd look at some model that tracks iPhoto image ID in the database,
then you can:
tell application "iPhoto" to select photo id 123
The photo id shouldn't change and should be a good persistent way of
tracking the images, but it's your call. :)
Andrew
:)
On 4/3/03 9:09 AM, "Song Tan" <email@hidden> wrote:
>
I'm trying to write an AppleScript that will select a photo in
>
iPhoto2 based on the associated file path for the image file. I can
>
do the inverse (obtain the image path of a selected photo), but not
>
what I want. Can anyone help an AppleScript newbie here?
>
>
More lengthy explanation of what I'm trying to do:
>
>
I want to import digital photos into iPhoto and to store thumbnails
>
of the photos in a FileMaker database. I'd like to be able to
>
doubleclick on the FileMaker thumbnail and be taken directly to the
>
partner image in iPhoto. I've figured out how to associate the
>
original image file path with the image/thumbnail in FileMaker, so I
>
just need to be able to select the appropriate image in an iPhoto
>
library based on the image file path to do what I want using
>
AppleScript. I've searched around the web and looked at the Apple
>
iPhoto scripts without success.
>
>
Many thanks!
>
>
Song
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.