#Install DMG for Alfred
An extension for Alfred.app that takes the pain out of applications distributed through .dmg files. When this command is run it:
- finds the most recently downloaded .dmg file in the
~/Downloadsdirectory - mounts it
- Copies any .app folders out of it to the
/Applicationsdirectory - unmounts the dmg
- deletes the dmg
Download the repo and double click the InstallDMG.alfredextension file inside.
Open up the terminal and run:
git clone git@github.com:webartisan/Install-DMG.git [YOUR ALFRED EXTENSIONS DIRECTORY]/Install-DMG
In my case the the Alfred extension directory is ~/Dropbox/Alfred/extensions/scripts/
This setting can be found in Alfred's preferences under General>Sync
Bring up Alfred, type dmg ↩
You can change this command in the extensions tab of Alfred's settings.
In the future I will add a query after dmg that would let you pick specific items to install. For now it just runs on the most recently downloaded one.
The extension is basically a wrapper around a ruby script. If you don't own/want Alfred you can totally just run that script and it does the same thing.
#Pull Requests are welcome