Archive for the 'Folder Actions' Category

Folder Action: Moving Files and Keeping Organized

Folder actions are a nice way to save yourself mouse clicks and keystrokes. The applescript below, when assigned to your “Desktop” folder, will move all new torrent files to a subfolder named “torrents”. Now when you download .torrent files from your tracker of choice, you can let Safari, or Firefox, save the file to it’s default location, which is usually the “Desktop” folder. When the file is written to disk, it will be automatically moved for you, keeping your workspace nice and organized.



property fdest : “torrents”

on adding folder items to thefolder after receiving theAddedItems
repeat with eachitem in theAddedItems
tell application “Finder”
if (name of eachitem ends with “.torrent”) then
move eachitem to folder fdest
end if
end tell
end repeat
end adding folder items to


The above applescript can easily be tailored to organize other types of files, such as pictures or music. Remember, a cluttered environment leads to a cluttered mind.