• 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: An easy one for you guys!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: An easy one for you guys!


  • Subject: Re: An easy one for you guys!
  • From: Alex Zavatone <email@hidden>
  • Date: Mon, 23 Sep 2013 14:12:10 -0400

Wrap it in a try clause.

On Sep 23, 2013, at 11:00 AM, Jeffrey Madson wrote:

I am trying to write an AppleScript that will delete 7 files/folders. I am using shell commands like: do shell script "rm -r /Options/CAE". I'm running into two problems. 1) I need to add an additional command between each line that will move the script along even if the file is not there. 2) Some of the files such as the ones in Library/StartupItems will not delete because of permissions. Is there a way to delete them without having to incorporate my Admin. name and password into the script? Thanks for any advice!
________________________________________________________
Jeffrey Madson | RR Donnelley
--------------------------------------------------------------------------------------------------

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: 
 >An easy one for you guys! (From: Jeffrey Madson <email@hidden>)

  • Prev by Date: Re: An easy one for you guys!
  • Next by Date: Smile Gone?
  • Previous by thread: Re: An easy one for you guys!
  • Next by thread: Smile Gone?
  • Index(es):
    • Date
    • Thread