Sure.
- Code: Select all
2012-05-17 19:21:10.970 hazelworker[63418] The Simpsons 23x21 Ned 'N' Edna's Blend.m4v: Rule Move videos to iTunes matched.
2012-05-17 19:21:22.409 hazelworker[63418] [File Event] File moved: The Simpsons 23x21 Ned 'N' Edna's Blend.m4v moved from folder /Volumes/Users/daj/Temp/Video/Padify to folder /Volumes/Media/iTunes.
2012-05-17 19:21:24.187 hazelworker[63418] /Volumes/Media/iTunes/The Simpsons 23x21 Ned 'N' Edna's Blend.m4v added to iTunes playlist Padify
2012-05-17 19:21:24.188 hazelworker[63418] Hazel Alert: The Simpsons 23x21 Ned 'N' Edna's Blend.m4v added to iTunes
2012-05-17 19:21:24.189 hazelworker[63418] [Custom Message] Hazel Alert: The Simpsons 23x21 Ned 'N' Edna's Blend.m4v added to iTunes
2012-05-17 19:21:24.190 hazelworker[63418] Could not create file alias for path /Volumes/Media/iTunes/The Simpsons 23x21 Ned 'N' Edna's Blend.m4v. Error creating bookmark data: Error Domain=NSCocoaErrorDomain Code=260 "The file couldn’t be opened because it doesn’t exist." UserInfo=0x109986f70 {}
2012-05-17 19:21:24.322 hazelworker[63418] [Error] Shell script failed: Error processing shell script on file /Volumes/Media/iTunes/The Simpsons 23x21 Ned 'N' Edna's Blend.m4v.
2012-05-17 19:21:24.322 hazelworker[63418] Shellscript exited with non-successful status code: 1
As you can see, the file matches a rule, and Hazel (a) moves the file, (b) adds it to iTunes and (c) posts a Growl notification. This is all as it should be. Things go wrong in the next action, which is "run shell script", because Hazel can't find the file it just moved, as iTunes has already renamed and moved it (as a result of the "Add to iTunes" action).
I want to know how to get Hazel to forget about the file (which is gone), and just run a shell script without passing the file path. Even though I don't use $1 in the script, Hazel still tries to generate an alias for the file and blows up.