ExifTool Forum

ExifTool => Developers => Topic started by: j99mac on August 13, 2012, 04:03:54 PM

Title: document name
Post by: j99mac on August 13, 2012, 04:03:54 PM
I am trying to set up a script using applescript to add document name to folder of images.
This is what I have so far. How would I have the document also include the file name?
Title: Re: document name
Post by: Phil Harvey on August 13, 2012, 04:45:48 PM
Did you mean to attach a script?

Anyway, you can do this to copy the file name into another tag:

exiftool '-DESTINATION_TAG<SOME TEXT $filename SOME MORE TEXT OR MAYBE MORE TAGS WITH $TAG' FOLDER_NAME

- Phil
Title: Re: document name
Post by: j99mac on August 15, 2012, 08:11:38 AM
Thanks I will try this command
What I am looking to do is to to Add directory name and file name to the DocumentName Tag.
Example /Photo/Photo01/001A.tif
Title: Re: document name
Post by: Phil Harvey on August 15, 2012, 08:43:09 AM
The command could be something like this:

exiftool '-documentname<$documentname $directory $filename' /Photo/Photo01/001A.tif

- Phil
Title: Re: document name
Post by: j99mac on August 15, 2012, 11:17:37 AM
I am using the command with AppleScript this
This is what I have Applescript doing
set images to "~/Desktop/Images/*"
do shell script "exiftool '-documentname<$documentname $directory $filename'" & images

I get an error
Title: Re: document name
Post by: Phil Harvey on August 15, 2012, 11:38:46 AM
What is the error?