• 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: Luther Fuller <email@hidden>
  • Date: Fri, 23 Apr 2010 18:44:40 -0500

On Apr 23, 2010, at 6:11 PM, Dave Carpeneto wrote:

Hi all - I'm looking to remove a system preferences panel while the system preferences app is still running.

From within the application I can remove the panel by control-clicking the panel's icon & selecting "Remove “Name of Application” Preference Pane", however from the options in the sdef dictionary for System Preferences I cannot seem to find a way to do this.

Obviously if System Preferences isn't running I can remove the prefPane object from ~/Library/PreferencePanes, but i cannot seem to find a way to do this when the app is running ... any insight appreciated :-)

This script ...

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

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

 _______________________________________________
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

  • Follow-Ups:
    • Re: Removing a System Preferences panel via applescript
      • From: Dave Carpeneto <email@hidden>
References: 
 >Removing a System Preferences panel via applescript (From: Dave Carpeneto <email@hidden>)

  • Prev by Date: Removing a System Preferences panel via applescript
  • Next by Date: Re: Date question with weeknumber
  • Previous by thread: Removing a System Preferences panel via applescript
  • Next by thread: Re: Removing a System Preferences panel via applescript
  • Index(es):
    • Date
    • Thread