Re: The System Preferences Pains and setting display resolution (OS X 10.2.2)
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.