• 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: Here's an interesting challenge
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Here's an interesting challenge (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Here's an interesting challenge
  • Next by Date: Re: Particulars of Finder Windows
  • Previous by thread: Here's an interesting challenge
  • Next by thread: Re: Particulars of Finder Windows
  • Index(es):
    • Date
    • Thread