• 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: Really delete a file via AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Really delete a file via AppleScript


  • Subject: Re: Really delete a file via AppleScript
  • From: Doug McNutt <email@hidden>
  • Date: Sun, 3 Aug 2003 14:18:01 -0600

At 13:38 -0500 8/3/03, Craig Sutherland wrote:
>OS X has implemented 'rm' to delete without asking. In other environments the shell asks for confirmation before deleting. If you are suing the Terminal in 10.2.6, you can add the line

Now in today's litigious world that is indeed an amusing spelling slip.

Craig Sutherland continues:
>alias rm 'rm -i'
>
>to your ~.tcshrc file. If you don't have that file created, create it with that one line. The -i parameter adds confirmation to the process with the line 'remove filename?'. The alias as you already surmised subtitutes 'rm -i' when rm is entered.

But don't forget that (t)csh is no longer the default for AppleScript. It's bash now, your Aqua login preferences don't matter, you can't specify a default shell in your environment.plist, and only a Terminal session or a remote login will execute your .profile or .login scripts.

Panther?

--

Applescript syntax is like English spelling:
Roughly, but not thoroughly, thought through.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Really delete a file via AppleScript
      • From: Craig Sutherland <email@hidden>
References: 
 >Re: Really delete a file via AppleScript (From: Michelle Steiner <email@hidden>)
 >Re: Really delete a file via AppleScript (From: Craig Sutherland <email@hidden>)

  • Prev by Date: Re: Really delete a file via AppleScript
  • Next by Date: Re: Really delete a file via AppleScript
  • Previous by thread: Re: Really delete a file via AppleScript
  • Next by thread: Re: Really delete a file via AppleScript
  • Index(es):
    • Date
    • Thread