Move downloaded DMG files automatically
Posted on : 08-14-2009 | By : Cool Geex | In : Mac Leopard, Script Editor
0
I’ve tweaked my Downloads folder so that applications which are usually downloaded as disk images are automatically moved to another folder.
To do that, Take a look at my Video.
I attached a script to my Downloads folder as a folder action. First, I typed the following script into Script Editor:
[applescript]
on adding folder items to theFolder after receiving downloadFile
tell application “Finder”
repeat with theFile in downloadFile
if the name of theFile ends with “.dmg” then
move theFile to folder “THE_FOLDER_YOU_CREATED” of folder “YOUR_USER_NAME” of folder “Users” of startup disk
end if
end repeat
end tell
end adding folder items to
[/applescript]
I then saved it as MoveDmg.scpt in /Library/Scripts/Folder Action Scripts/ folder. I then created an DMG folder in my Home directory. After that, I right-clicked on my Downloads folder and selected More -> Enable Folder Actions. Right-clicking again, I selected More -> Attach a Folder Action, and chose my saved script in the Choose A File dialog box.
Related posts:
- Place Google Voice calls directly from iPhone
- Create your own list of email addresses from your inbox
- Make Your Mac Terminal More Personal
- Snow Leopard Installation Issues
- Mac Hidden Files Control









