Posted on 10-22-2012 09:01 AM
I'm having an issue with what I would thought was a simple problem, if anyone has any suggestions it would be much appreciated.
I have built a policy that will deploy a .app into the /Applications folder. I want the program to be initiated once the .app package is fully downloaded through a script without user interaction.
I thought it would just be:
#!
open /Applications/(program).app
Thanks,
Edmund
Posted on 10-22-2012 09:22 AM
You will need to nest a bit deeper - this will open word:
open /Applications/Microsoft Office 2011/Microsoft Word.app/Contents/MacOS/Microsoft Word
Posted on 10-22-2012 10:25 AM
open /Applications/(program).app
Run this command with the -a option, which tells the open command you're opening an application:
open -a /Applications/(program).app
Posted on 10-22-2012 12:07 PM
Wouldn't this launch the app as root? Is that even an issue?
Posted on 10-24-2012 01:11 PM
I am looking to do this too, but need the app to run as the logged in user not root. Anyone have any luck with this?
Posted on 10-24-2012 02:30 PM
App looks to open as the logged in user when initiated through self service. Note, you can also use the apps bundle identifier, i.e.:
open -b com.apple.textedit