• 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
Scripting OS X Preferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scripting OS X Preferences


  • Subject: Scripting OS X Preferences
  • From: Christian Boyce <email@hidden>
  • Date: Sun, 16 Feb 2003 17:58:39 -0800

I would like to write a script that sets the screen saver to a certain module, then makes changes to its settings. I can activate a the screen saver preference pane like this:

tell application "System Preferences"
set the current pane to pane "com.apple.preference.screensaver"
end tell

But, I can't do anything to the settings.

A search of the archives turned up some tantalizing tidbits that led me to abandon the above approach and instead to attempt to make a shell script to control "defaults." But, I seem to be missing something, for when I go to the Terminal and type

defaults read com.apple.preference.screensaver

I get an error: "Domain com.apple.preference.screensaver does not exist."

I know I could probably make this work via GUI scripting but I want to learn how to do a shell script anyway and this seems like the perfect time to do it.

I'm using 10.2.4.

Thanks.


--
Christian Boyce
310-452-3720

http://www.christianboyce.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Script Debugger goes renegade !
  • Next by Date: Folder: alias:true/false property
  • Previous by thread: Re: [Q] Communicating with websites?
  • Next by thread: Re: Scripting OS X Preferences
  • Index(es):
    • Date
    • Thread