Author Topic: Exiftool hangs?  (Read 3356 times)


  • Jr. Member
  • **
  • Posts: 16
Exiftool hangs?
« on: July 02, 2012, 08:13:31 AM »
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?
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

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 18254
    • ExifTool Home Page
Re: Exiftool hangs?
« Reply #1 on: July 03, 2012, 07:34:30 AM »
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, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).