(* TorrentMover.scpt tristan+as@ethereal.net 11jul2006 This is a Folder Action Script that I apply to my Firefox download folder "bt" is a volume on a high-bandwidth server mounted via DAV "bt:incoming:" is writable The reasoning behind this is hopefully self-evident. :) To use: paste this into Script Editor, save to ~/Library/Scripts/Folder Action Scripts/ then attach to a folder in Folder Actions Setup *) on adding folder items to this_folder after receiving these_items tell application "Finder" -- repeat with this_item in these_items repeat with i from 1 to number of items in these_items set this_item to item i of these_items set the item_info to the info for this_item if the name extension of the item_info is "torrent" and ¬ the length of the name of the item_info is greater than 16 then tell application "Finder" try -- mount volume "" move this_item to folder "bt:incoming:" -- move this_item to folder "Dropbox:Torrents:" of home on error err display dialog err end try end tell end if end repeat end tell end adding folder items to