Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Opening System Preference Panes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening System Preference Panes



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.

References: 
 >Re: Opening System Preference Panes (From: Michael Grant <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.