Received abort event

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Received abort event Wed Jun 12, 2019 5:03 pm • by erp
I'm trying to have hazel run a terminal command on a file, but couldn't make it work.

I tried "Run shell Script" with the following command:

Code: Select all
exiftool "-FileCreateDate<CreateDate" "-FileModifyDate<CreateDate" $1


But I always get a "Received abort event" error. Any ideas?
erp
 
Posts: 2
Joined: Wed Jun 12, 2019 4:58 pm

Re: Received abort event Thu Jun 13, 2019 10:39 am • by Mr_Noodle
I don't support exiftool so I can't say directly what's wrong. Have you tried running the script outside of Hazel?
Mr_Noodle
Site Admin
 
Posts: 7865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Received abort event Fri Jun 14, 2019 7:41 am • by erp
The script was missing the full path to Exiftool. Now the script run fine out of Hazel, but still gets the abort error from Hazel.

All I'm trying to do is have Hazel tell Terminal to run the command
Code: Select all
exiftool "-FileCreateDate<CreateDate" "-FileModifyDate<CreateDate" /Volumes/Media/Import/Change\ Create\ Date


I'm open to any suggestions of how to do that (even if not via script).
erp
 
Posts: 2
Joined: Wed Jun 12, 2019 4:58 pm

Re: Received abort event Fri Jun 14, 2019 10:20 am • by Mr_Noodle
Not seeing the full path in that script. Also, not sure what that argument is at the end. It seems your script is ignoring the file passed in (as $1) and instead using some hardcoded path.
Mr_Noodle
Site Admin
 
Posts: 7865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support