Morning all,
I'm working on an issue with global login items. I've set one up to run a script that I wrote. The script is:
The script has read/execute permissions as does the encapsulating folder. I'm using the latest version of OS X (not at mac right now so I can't recall what it is). Here is the site from which I found out how to assign a global login item: http://mattdanger.net/tag/login-items/ . I ran the command:
with /path/to/script/ being it's location.
After I rebooted and logged in, the login item didn't work but it did open the script up in xCode. Is there something I did wrong to have it open the script up instead of running it? I thought it might have ran the script and opened it, but after doing a defaults read com.apple.desktopservices.DSDontWriteNetworkStores, it returned with error.
I'm working on an issue with global login items. I've set one up to run a script that I wrote. The script is:
Code:
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
The script has read/execute permissions as does the encapsulating folder. I'm using the latest version of OS X (not at mac right now so I can't recall what it is). Here is the site from which I found out how to assign a global login item: http://mattdanger.net/tag/login-items/ . I ran the command:
Code:
defaults write /Library/Preferences/loginwindow AutoLaunchedApplicationDictionary -array-add '{ "Path" = "/path/to/script"; "Hide" = "0"; }'
After I rebooted and logged in, the login item didn't work but it did open the script up in xCode. Is there something I did wrong to have it open the script up instead of running it? I thought it might have ran the script and opened it, but after doing a defaults read com.apple.desktopservices.DSDontWriteNetworkStores, it returned with error.