• 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: The System Preferences Pains and setting display resolution (OS X 10.2.2)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The System Preferences Pains and setting display resolution (OS X 10.2.2)


  • Subject: Re: The System Preferences Pains and setting display resolution (OS X 10.2.2)
  • From: Paul Berkowitz <email@hidden>
  • Date: Sun, 01 Dec 2002 13:45:33 -0800

On 11/23/02 11:53 PM, "Paul Berkowitz" <email@hidden> wrote:

> On 11/23/02 11:38 PM, "Marc S.A. Glasgow" <email@hidden> wrote:
>
>> Oh, and System Preferences appears to have a bug<?> You decide:
>>
>> tell application "System Preferences"
>> set x to 7
>> set ThePains to pane x
>> set DisplayPane to name of ThePains
>> display dialog DisplayPane
>> get properties of pane x
>> get properties of ThePains
>> end tell
>>
>> RESULTS:
>> tell application "System Preferences"
>> get pane 7
>> --> pane 8
>> get name of pane 8
>> --> "com.apple.preference.dock"
>> display dialog "com.apple.preference.dock"
>> --> {button returned:"OK"}
>> get properties of pane 7
>> --> {name:"com.apple.preference.displays", localized name:"Displays",
>> class:pane}
>> get properties of pane 8
>> --> {name:"com.apple.preference.dock", localized name:"Dock",
>> class:pane}
>> end tell
>
> Looks like the so-called AppleScript implementers of yet another Unixy Apple
> app have forgotten that virtually all of AppleScript is 1-based, not 0-based
> as are most Unix functions.

I guessed wrong. My error. I have been informed authoritatively off-list
that there is a genuine bug which has nothing to do with Unix 0-based
indexing. There is apparently an invisible pane, such that there is no
returnable pane 2, so pane 7 returns pane 8.

--
Paul Berkowitz
_______________________________________________
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: text to list
  • Next by Date: Re: Check if it is a number
  • Previous by thread: OS X Folder Actions
  • Next by thread: Re: Check if it is a number
  • Index(es):
    • Date
    • Thread