Re: Here's an interesting challenge
Re: Here's an interesting challenge
- Subject: Re: Here's an interesting challenge
- From: Christopher Stone <email@hidden>
- Date: Thu, 05 May 2011 14:53:35 -0500
On May 05, 2011, at 13:04, Stockly, Ed wrote: Method Two (Advanced) 1. Open the Terminal application from the Utilities folder. 2. Type the following command in the terminal (without quotes) and hit the return key: 'ps -ax | grep -i MacSecurity' 3. Note the process ID associated with the MacSecurity program (the first digits listed in the result). 4. Type the following command in the terminal (without quotes, and substituting the process ID noted above for XXXX) and hit the return key: 'kill XXXX' At this time the MacSecurity program will no longer be running. Continue with steps 4 and 5 from Method One for removal.
______________________________________________________________________
Hey Ed,
If MacSecurity doesn't rename itself to something funny and as the article states it is installed in the /Applications directory this should work:
set shellCMD to "killall -9 MacSecurity rm -fr /Applications/MacSecurity.app" do shell script shellCMD user name "XXXX" password "XXXX" with administrator privileges
--
One could also try something like this. But I don't think I'll install MacSecurity to test. :)
set appFolder to path to applications folder try tell application "Finder" set msApp to name of processes whose name contains "MacSecurity" if msApp ≠ {} then set msApp to item 1 of msApp set deleteList to (items of appFolder whose name contains "MacSecurity") as alias list end if end tell end try tell application msApp to quit delay 0.5 tell application "Finder" activate delete deleteList open trash end tell
-- Best Regards, Chris
|
_______________________________________________
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