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