Re: Opening System Preference Panes
Re: Opening System Preference Panes
- Subject: Re: Opening System Preference Panes
- From: John Delacour <email@hidden>
- Date: Fri, 30 Aug 2002 21:33:24 +0100
At 2:18 pm -0500 30/8/02, Michael Grant wrote:
On 8/30/02 3:16 AM, "John Delacour" <email@hidden> wrote:
> tell application "System Preferences"
name of panes
"" & (choose from list result)
set current pane to pane result
activate
end tell
Did you test this? For me it does launch System Preferences, but then it
just spins till the script times out.
I _always_ test scripts that I post. People who don't should be
shot. I got no spin.
I've just tested it again, having since then removed Jon's Commands,
and it still works fine, but it only seems to work provided System
Prefs is NOT already running. I can't be bothered to fuss with it,
because a sure way of doing the same thing in all circumstances is:
set varFldr to "" & (path to startup disk) & "system:library:preferencepanes:"
set varPane to choose from list (list folder varFldr)
set varPanePath to varFldr & varPane
tell application "Finder" to open item varPanePath
JD
_______________________________________________
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.