Re: loginwindow scripts
Re: loginwindow scripts
- Subject: Re: loginwindow scripts
- From: Max J Cantor <email@hidden>
- Date: Thu, 14 Jun 2001 22:39:48 -0400 (EDT)
What if you did Hide = 1.
-Max
On Thu, 14 Jun 2001, Kerry Hazelgren wrote:
>
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
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev