Re: Removing a System Preferences panel via applescript
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