• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
loginwindow scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: loginwindow scripts
      • From: Max J Cantor <email@hidden>
    • Re: loginwindow scripts
      • From: David P Henderson <email@hidden>
  • Prev by Date: Re: Cocoa/EOF for non-enterprise apps Re: proof of cocoa
  • Next by Date: Notifications
  • Previous by thread: Re: Subclassing NSTextView and characters with diacritical marks
  • Next by thread: Re: loginwindow scripts
  • Index(es):
    • Date
    • Thread