Technocrank

Icon

It Done Broke.

OSX Leopard Folder Actions

I have a little Folder Action set up on a “dropbox” type folder that automatically adds a given file (usually MP3s) to my iTunes library.  I created a dumb-as-bricks Automator workflow and saved it as a plug-in of type Folder Action.  Worked flawlessly in 10.4.

With OSX 10.5, for some reason it runs the action but doesn’t actually execute it properly.  I found this little article which provides a workaround but doesn’t actually fix anything.  You have to edit the AppleScript file from something like this:
[sourcecode language=’plain’]on adding folder items to this_folder after receiving added_items
tell application “Macintosh HD:Users:MyUserName:Library:Workflows:Applications:Folder Actions:Name Of My Workflow.app”
open added_items
end tell
end adding folder items to[/sourcecode]
to this:
[sourcecode language=’plain’]on adding folder items to this_folder after receiving added_items
tell application “Finder”
open added_items using alias “Macintosh HD:Users:MyUserName:Library:Workflows:Applications:Folder Actions:Name Of My Workflow.app”
end tell
end adding folder items to[/sourcecode]
…essentially getting Finder to do what you’ve already done.