Re: Really delete a file via AppleScript
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.