• 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
Re: Scripting system preferences in OS X 10.2.3 (Christian Boyce)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting system preferences in OS X 10.2.3 (Christian Boyce)


  • Subject: Re: Scripting system preferences in OS X 10.2.3 (Christian Boyce)
  • From: Christian Boyce <email@hidden>
  • Date: Tue, 31 Dec 2002 00:18:43 -0800

On Monday, December 30, 2002, at 03:18 PM, Sander Tekelenburg <email@hidden> wrote


I'd like to do this without resorting to scripting the GUI, for
portability reasons.

Which porrtability reasons you are referring to?

It has been pointed out (after I asked specifically ;)) that the current GUI
scripting is to be considered a public beta, planned to end up in the main OS
itself. The only other portability issue (I think) would be localized OS X
versions, but as I understand it you can refer to menu items by index number.
(See Chris Espinosa's message of December 21, in the thread "uh, that's so
cool! AS 1.9.1")

If I write a script today that relies on the GUI-scripting public beta I can be pretty sure that it will not work for most people, at least not until the GUI scripting is a part of the standard OS X installation, and even then it will be awhile as not everyone is going to be up-to-date.

In my own office I have a fellow who is ordinarily very quick to update to the very latest version of any program, but he is not an AppleScripter and thus will not be likely to be aware of the GUI-scripting stuff. So, if I write a script for him I have to also install stuff for him-- not very portable if I have to first install stuff on his machine.

Regardless, it would be nice to be able to actually "get" and "set" brightness of the monitor, and the sound level. And, can anyone explain why sound levels aren't integers from 0 to 7 anymore? I was astounded to be able to set the sound level to 0.15.

Anyone out there able to help?


Regarding the GUI stuff, how does one figure out the index numbers for buttons, pop-ups, etc.? How do I know that I'm trying to click button 3, say, and not button 4?


--
Christian Boyce
310-452-3720

http://www.christianboyce.com

Fifteen minutes of fame: hear my MacWORLD Expo report on KPFK, 90.7 FM in Los Angeles, January 11th, 2003 at 10:00 A.M.
_______________________________________________
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.
  • Follow-Ups:
    • Re: Scripting system preferences in OS X 10.2.3 (Christian Boyce)
      • From: Paul Skinner <email@hidden>
    • Re: Scripting system preferences in OS X 10.2.3 (Christian Boyce)
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Scripting system preferences in OS X 10.2.3
  • Next by Date: Re: Question regarding errors
  • Previous by thread: Parsing Link Data [repost w/subject]
  • Next by thread: Re: Scripting system preferences in OS X 10.2.3 (Christian Boyce)
  • Index(es):
    • Date
    • Thread