• 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: Opening System Preference Panes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

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

  • Prev by Date: Re: Subject: AS & cron?
  • Next by Date: Re: What's system attribute "__CF_USER_TEXT_ENCODING"?
  • Previous by thread: Re: Opening System Preference Panes
  • Next by thread: Re: Opening System Preference Panes
  • Index(es):
    • Date
    • Thread