• 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: Removing a System Preferences panel via applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing a System Preferences panel via applescript


  • Subject: Re: Removing a System Preferences panel via applescript
  • From: Dave Carpeneto <email@hidden>
  • Date: Sat, 24 Apr 2010 17:37:51 -0400

Hi - thanks for responding -
sig
This script ...

tell application "System Preferences"
exists pane "Displays"
end tell

correctly returns 'true'.
What happens if you replace the word exists with delete ?
I get the following:

tell application "System Preferences"
    delete pane "Growl"
        --> error number -10000
Result:
error "System Preferences got an error: AppleEvent handler failed." number -10000

... and I know this is a pane that I can remove via a right-click & menu selection ... but thanks for suggesting this - I had seen delete as an option in "Standard Suite", but didn't know how to invoke it.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Removing a System Preferences panel via applescript (From: Dave Carpeneto <email@hidden>)
 >Re: Removing a System Preferences panel via applescript (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Applescript oddity under 10.4.11
  • Next by Date: Re: Applescript oddity under 10.4.11
  • Previous by thread: Re: Removing a System Preferences panel via applescript
  • Next by thread: Reveal the tables of a sheet in Numbers
  • Index(es):
    • Date
    • Thread