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

jiapengjun

macrumors newbie
Original poster
Mar 17, 2010
5
0
See this command:

defaults write loginwindow AutoLaunchedApplicationDictionary -array-add '{ "Path" = "/Users/jpengjun/test.sh"; "Hide" = YES ; }'

I hope test.sh can be executed when I login, and it works well.

But in the plist file, the "Hide" key is set to string and the correct type should be Boolean, does anybody know whether there is a way to assign the key type to "Hide" ?:)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.