Main Menu

Exiftool hangs?

Started by rwells1938, July 02, 2012, 08:13:31 AM

Previous topic - Next topic

rwells1938

When I run the following script it will sometimes hang trying to find apath. It always works the first time but if run again it hangs. If I cancel and retry it will most of the time work fine but maybe the next time it will hang again.

Any suggestions?
Roger
Mac osx 10.7.4


- select image
set aPath to quoted form of POSIX path of (choose file)

-- Display path
display dialog aPath

-- Get Metadata
set aScript to "exiftool  -CreateDate -Modifydate -FileModifyDate -MetadataDate " & aPath

-- save result
set aResult to do shell script aScript

Phil Harvey

I think this is a question for an AppleScript forum.

Just for fun, I tried your script and it did hang once in the file selection dialog, but then worked every time after that.  I can't think of what the problem could be.

- 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 ($).