The Install App workflow speeds installation process (or rather copy) of applications downloaded outside of Mac App Store. The workflow is completely written using Bash Script.
How it works?
There are two ways to invoke that workflow:
- through keyword —
install— which shows all eligible files/packages1 found in specified folder (default is
~/Downloads) and copy, run, mount or extract them dependably of what kind of file/package we choose; you can also use
install nameso Alfred will narrow results;
- through File Action Install App which behave in similar way as above.
The Install App behaves as follow:
- if you choose .app package it will be copied to
- if you choose .pkg file it will be opened;
- if you choose .dmg file it will be mounted and searched for .app or .pkg to copy or run them;
- if you choose .zip file it will be unzipped into folder which will be searched for .app, .pkg or .dmg to copy, run or mount them.
- to change folder to search for mentioned files you need to edit Script Filter element of workflow → uncomment
SEARCHDIRvariable and edit its value
- improve mounting dmg files – now works with images with EULA.
- displays app icon if user has that app already (eligible for app updates files)
- bug fixes
- dramatically reduces workflow size (from ~700 KB to 150 KB)
- workflow now searches in subdirectories of main directory
- if workflow finds .app package it will display that app's real icon (not a placeholder)
- bug fixes
- following last update the workflow will open installed application if it was opened
- workflow checks now if app is already running and if so it asks to quit it
- fixed file matching
- fixed post-install notifications
.dmgimage after copying/installing app,
- remove temporary
.zipfolder after copying/installing app,
- ability to remove source files after copying/installing app (the dialog window will appear).
- initial public release.
I would like to thank Franz Greiling who inspired me to make this workflow with his own version.
.app package, .zip archive, .dmg image and .pkg installer. ↩