Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --This script is Folder Action Script. It moves .torrent files to subfolder "Torrents" of the folder to which you attach this script.
- --You need paste the text below to AppleScript Editor, and then save it to \Library\Scripts\Folder Action Scripts.
- on adding folder items to this_folder after receiving added_items
- tell application "Finder"
- set foldName to the name of this_folder
- set destPath to foldName & "Torrents"
- try
- repeat with i from 1 to count of items in added_items
- if name extension of item i in added_items is "torrent" then
- move (item i of added_items) as alias to folder destPath
- end if
- end repeat
- end try
- end tell
- end adding folder items to
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement