If/Then Statements
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