• 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
If/Then Statements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

If/Then Statements


  • Subject: If/Then Statements
  • From: email@hidden
  • Date: Tue, 26 Jan 2010 09:11:48 -0600

I am essentially creating a uninstaller script. The script I have works but if any element is already gone then it hangs at that point and gives an error. I need to put in some kind of if/then statement I believe so that when an error is returned it will move to the next line and so on until finished. Any suggestions out there would be much appreciated.

do shell script "rm -r /Applications/Utilities/'Keychain Minder.app'" with administrator privileges
do shell script "rm /Library/LaunchDaemons/com.apple.bindad.plist" with administrator privileges
do shell script "rm /Library/LaunchDaemons/com.apple.migrateaduser.plist" with administrator privileges
do shell script "rm /System/Library/'User Template'/English.lproj/Library/Preferences/loginwindow.plist" with administrator privileges
do shell script "rm -r /Users/Shared/'AD Migration Assistant.app'" with administrator privileges
do shell script "rm /Users/Shared/prefs.plist" with administrator privileges
 
____________________________________________________________________________________________________________________________________
Jeffrey W. Madson | Macintosh Systems Engineer | RR Donnelley Desktop Engineering
W6545 Quality Drive | Greenville, WI 54942 | Office: 920-997-3768 | Cell: 920-915-8619 | Email: email@hidden
 
 _______________________________________________
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: If/Then Statements
      • From: Luther Fuller <email@hidden>
    • Re: If/Then Statements
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: Applescript book recommendation
  • Next by Date: Re: Applescript and referring to a folder
  • Previous by thread: Re: [BULK] Re: Applescript book recommendation
  • Next by thread: Re: If/Then Statements
  • Index(es):
    • Date
    • Thread