• 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: Sat, 23 Nov 2002 23:53:50 -0800

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.

--
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.

References: 
 >The System Preferences Pains and setting display resolution (OS X 10.2.2) (From: "Marc S.A. Glasgow" <email@hidden>)

  • Prev by Date: The System Preferences Pains and setting display resolution (OS X 10.2.2)
  • Next by Date: Re: FileMaker Pro, get image by reference
  • Previous by thread: The System Preferences Pains and setting display resolution (OS X 10.2.2)
  • Next by thread: List of windows in various appllications
  • Index(es):
    • Date
    • Thread