Alright here is the problem I am having. I need to add my app to the Login Items automatically during install. I have found several resources on this online that show how to create scripts to do this. I created a script below
If I execute that script outside of PackageMaker it works fine. When I add it to the PostInstall script it gives me an error during install.
Any suggestions?
I know this is not best practice and I should allow the user to decide if the program should open on start up but this software is a digital signage software and the Mac's are going to be dummy terminals that just run this software. So there is no user interaction.
Code:
set appPath to "/Applications/Hypersign/Hypersign.app"
tell application "System Events"
make login item at end with properties {path:appPath, hidden:false}
end tell
If I execute that script outside of PackageMaker it works fine. When I add it to the PostInstall script it gives me an error during install.
Any suggestions?
I know this is not best practice and I should allow the user to decide if the program should open on start up but this software is a digital signage software and the Mac's are going to be dummy terminals that just run this software. So there is no user interaction.