loginwindow scripts
loginwindow scripts
- Subject: loginwindow scripts
- From: Kerry Hazelgren <email@hidden>
- Date: Thu, 14 Jun 2001 15:25:15 -0600
I am trying to write a script to accompany an installer I am writing for
use with Installer.app. Evidently, in order set the app you are
installing to launch at startup you need to add it to the
loginwindow.plist (I know there is one other way, but this way seems
better). I have determined that the following line below works, with one
exception:
defaults write MyApp MyArry -array-add '{Hide = Yes; Path = /Applications/
MyApp.app;}'
This will add the app to the loginwindow.plist in the data structure that
is required, but the variable 'Hide' will be set to string, rather than
boolean, as it should be. I have found that by itself
defaults write MyApp Hide -bool Yes
works just fine, meaning that it will add a lone boolean value to the
.plist,. If you put them together, however, it does not work:
defaults write MyApp MyArry -array-add '{Hide -bool Yes; Path =
/Applications/MyApp.app;}' //doesn't work
Is there anyone who can look at this and tell me what is wrong?
Thanks,
Kerry Hazelgren