Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

wgshiver

macrumors newbie
Original poster
Jul 6, 2011
6
0
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

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.