• 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: Craig Sutherland <email@hidden>
  • Date: Sun, 3 Aug 2003 16:08:11 -0500

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?
Thank you. I thought tsch/csh was still the command line interpreter in 10.2.6, which is why that was mentioned. NetInfo on my machine still shows tcsh as my shell that starts up with Terminal. Do shell script uses bash as you have said, but how does that connect with the suggestion to use 'rm -i' instead of 'rm'?

You can change a users shell via NetInfo.app or the command line. The Terminal Preferences let one set a couple of login parameters that can affect what is and isn't considered when creating a new Terminal window.

Not quite sure the Panther? reference. I believe it is under NDA and folks who are able to access it, don't discuss it.

Steer me in the right direction if I am off base or missing something.
Craig
_______________________________________________
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.

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>)
 >Re: Really delete a file via AppleScript (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: Really delete a file via AppleScript
  • Next by Date: OT: Dittoing Resource Forks (WasLRe: Really delete a file via AppleScrip
  • Previous by thread: Re: Really delete a file via AppleScript
  • Next by thread: Re: Really delete a file via AppleScript
  • Index(es):
    • Date
    • Thread