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: 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