Main Menu

document name

Started by j99mac, August 13, 2012, 04:03:54 PM

Previous topic - Next topic

j99mac

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?

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

j99mac

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

Phil Harvey

The command could be something like this:

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

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

j99mac

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

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).