Page 1 of 1

Move an iFlicks folder action to Hazel

PostPosted: Mon Nov 21, 2011 8:42 am
by peresaft
Currently I'm using iFlicks' built in folder action to get it to tag files in a folder, but it isn't really working as intended, especially when there is more than two files in the folder (it tags two and then stops). That's why I want to use Hazel to send the files to iFlicks, and now I need som help.

This is iFlicks folder action:

Code: Select all
on adding folder items to thisFolder after receiving addedItems
   
   repeat with movieFile in addedItems
      tell application "iFlicks"
         import movieFile without gui
      end tell
   end repeat
   
end adding folder items to


How can I get this to work in Hazel? Right now I just get an error trying to run it like it is.

Re: Move an iFlicks folder action to Hazel

PostPosted: Mon Nov 21, 2011 1:01 pm
by Mr_Noodle
I've moved your topic since the Tips forum is for people providing tips, not asking for help.

As for the AppleScript, please search the in-app help for Applescript. It will show you how to write a handler for Hazel.

Re: Move an iFlicks folder action to Hazel

PostPosted: Thu Dec 01, 2011 6:42 pm
by dhy8386
Check my Guide here. I used iFlicks and it works swimmingly. I have hazel run the following script after my shows/movies have been renamed. I have presetup iFlicks to handle certain filetypes differently. Its all in the guide. You can download my heel rules which include my iFlicks script.

viewtopic.php?f=3&t=874

Re: Move an iFlicks folder action to Hazel

PostPosted: Mon Jun 18, 2012 4:10 pm
by chris7461
Can you tell me the location of where you moved this post? I'm having the same issue and because I'm so new and don't understand the "handler concept"... (yes even after reading the help file) I'd like to see if it was answered. My assumption was that I take the template and do the following:

on hazelMatchFile(theFile)
adding folder items to thisFolder after receiving addedItems

repeat with movieFile in addedItems
tell application "iFlicks"
import movieFile without gui
end tell
end repeat
adding folder items to
end hazelMatchFile

Re: Move an iFlicks folder action to Hazel

PostPosted: Tue Jun 19, 2012 4:11 pm
by Mr_Noodle
That handler is only if you are using AppleScript in a rule's condition. It looks more like an action so you want to implement the hazelProcessFile handler instead.