Re: Obtaining real (RAW) filename in iPhoto
Re: Obtaining real (RAW) filename in iPhoto
- Subject: Re: Obtaining real (RAW) filename in iPhoto
- From: Matt Deatherage <email@hidden>
- Date: Tue, 22 Sep 2009 12:28:00 -0500
On 9/18/09 at 12:37 PM, John A. Dundas III <email@hidden>
wrote:
> I'm writing a script to take photos in iPhoto 6 (6.0.6) and alter
> them or create sidecar XMP files with exiftool. For JPG and TIF
> files 'image path' returns the complete path of the original file
> just fine. However I do have some raw files in my library (CRW and
> CR2). For these 'image path' returns the path of the "modified"
> files, that is the JPG file iPhoto created itself, not the original
> raw file. What I really want is the path of the raw file itself so
> that I can create a sidecar XMP. Is there any way to accomplish
> this?
In iPhoto '09 version 8.1 (415), "image path" of a RAW image does
indeed return the read-only path to the TIFF version of the image
that iPhoto normally edits. The "original path" property, however,
has the full POSIX pathname to the RAW file inside the iPhoto
Library.
For non-RAW pictures, these two properties have the same value.
I didn't test with earlier versions of iPhoto. BTW, this took me
about 15 seconds to figure out using the explorer in Script Debugger
4.5:
<http://www.latenightsw.com/sd4/>
Worth consideration.
--Matt
--
Matt Deatherage <email@hidden>
GCSF, Incorporated <http://www.macjournals.com>
"I think people like fried things." -- Food Network VP of marketing
_______________________________________________
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