(* 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/ *) 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 move this_item to folder "bt:incoming:" on error err display dialog err end try end tell -- display dialog "Torrent files have been moved to the BT incoming directory." end if end repeat end tell end adding folder items to