Featured Posts

Adding HTML Signature to your iPhone 4 without Jailbreaking itAdding HTML Signature to your iPhone 4 without Jailbreaking... One of the features missing on the iPhone is HTML signature for Mail, and if you are using two different email addresses like me you probably want to have two different...

Readmore

Play Tetris Using Mac Leopard TerminalPlay Tetris Using Mac Leopard Terminal Terminal Tetris is actually part of the Gnu Emacs and is something you should able to do on any unix system that has Emacs on it. I attached text and video instructions. To...

Readmore

Automate a Remote Login Using SSH - LinuxAutomate a Remote Login Using SSH - Linux To do just that you need to create SSH Key Pair 1. we need to use ssh-agent to create an SSH key pair. To do that run this command: ssh-keygen -t rsa When prompted...

Readmore

Free Google Wave InvitesFree Google Wave Invites Do you really want a Google Wave Invite but don't want to pay $$$ on eBay??? I got one for you.... The deal is: I give you an Invitation and once you get it...

Readmore

Start Google Chrome in Incognito ModeStart Google Chrome in Incognito Mode I'm Using Mozilla FireFox as my default web browser But I like using Chrome for Private Browsing. Google Chrome doesn't provide an option to load Incognito by default so...

Readmore

Cool Geex Rss

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:

  1. Place Google Voice calls directly from iPhone
  2. Create your own list of email addresses from your inbox
  3. Make Your Mac Terminal More Personal
  4. Snow Leopard Installation Issues
  5. Mac Hidden Files Control

How To Link To This Page?

To link to this page, simply Copy and Paste the following code to your web page.

Write a comment