Whenever I download a .dmg
file and then open it (usually from the download bar in Chrome), it opens up in the background. Is there any way to get it to open up in front of my window?
Edit
To clarify: I want the DMG window to pop up as the active window.
Best Answer
I created a Folder Action script in Applescript, that might do just what you want. Copy and paste it into a new Applescript, and save it as an Application (without a starting dialogue!) into "/Library/Scripts/Folder Action Scripts/". You can then attach it to any folder (most likely your ~/Downloads/ folder ) by right clicking on the folder and selecting "configure folder actions" from the services drop-out menu. Activate Folder Actions and let the script watch the folder.
What the script basically does, is react on items dropped into the folder it´s attached to and if the dropped item is of Kind:"Image" it attaches the Image as a Volume via the "hdiutil" command line tool.
You can configure it´s behaviour by setting the openWindow and makeFrontmost properties in the Script; this can also be done by double-clicking on the Script after you have saved it as an application - it will then ask in two dialogues on what it´s standard behaviour should be.
I hope this helps,
Asmus
====
second Applescript to determine the kind of file dropped into a folder
Edited Needs to be "Disk Image" rather than "Image"