[Originally posted by maxoon on 2009-12-19 09:05:58-08]
Hi all,
I'd saw some ExifTool droplets on the net, but unfortunatelly not for my daily task:
I often delete a files metadata on the command-line:
exiftool -all= FILENAME
Do you guys know how i make a droplet out of this, that is an programm icon, where i can drag (one or many) files on?
thanks so much for any info.
happy holidays, m
[Originally posted by exiftool on 2009-12-19 11:31:00-08]
Using Apple's "Script Editor" application it should be
easy to edit the exiftool command line from any of
the example droplets to do exactly what you want.
- Phil
[Originally posted by maxoon on 2009-12-19 11:37:04-08]Thanks!
It worked, I edited a droplet code from the dev site:
on open the_file
set exiftool_path to "/usr/bin/"
set exiftool_args to "-all="
set the_md to do shell script exiftool_path & "exiftool " & exiftool_args & " " & quote & POSIX path of the_file & quote
end open
on run
set chosen_file to choose file
open chosen_file
end run
I just can't figure out, how to get it to work with
multiple files.
anyone so kind to give me a hint? The applescript file handling and the exiftools parameters must be edited, but i don't know how to do it right.
[Originally posted by exiftool on 2009-12-19 13:21:47-08]
Have you tried dropping multiple files on it?
These droplets should work with multiple files.
- Phil
[Originally posted by exiftool on 2009-12-19 13:34:32-08]
I just tried the droplets linked from the web page. The
"Extract Preview" droplet works with multiple files, but
it seems that the "List Metadata" ones do not.
- Phil
[Originally posted by exiftool on 2009-12-19 13:53:50-08]I have just updated the "List Metadata" scripts on the web site so
they should now work with multiple files. With these changes,
your script looks like this:
on open the_files
set exiftool_path to "/usr/bin/"
set exiftool_args to "-all="
set file_args to ""
repeat with the_file in the_files
set file_args to file_args & " " & quote & POSIX path of the_file & quote
end repeat
set the_md to do shell script exiftool_path & "exiftool " & exiftool_args & file_args
end open
on run
set chosen_file to choose file
open chosen_file
end run
- Phil
[Originally posted by maxoon on 2009-12-20 10:51:04-08]
Thank you Phil. It works PERFECTLY.
Happy holidays!
M