• 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: erasing a file or folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: erasing a file or folder


  • Subject: Re: erasing a file or folder
  • From: Andrew Oliver <email@hidden>
  • Date: Wed, 28 May 2003 15:43:17 -0700

On 5/28/03 1:18 PM, "Syllas R." <email@hidden>
wrote:

> Hi,
> Is there a way I could tell the Finder to erase a file or folder ?
> I don't want to delete it and emty the trash but I want to erase it
>

You can use the shell command rm to do this via do shell script. rm accepts
a -P switch to overwrite files before deleting:

set fileToDelete to choose file -- or choose folder as appropriate
do shell script "rm -P " & quoted form of (POSIX path of fileToDelete)
_______________________________________________
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: 
 >erasing a file or folder (From: "Syllas R." <email@hidden>)

  • Prev by Date: Re: Faster List Checking
  • Next by Date: Re: Faster List Checking
  • Previous by thread: Re: erasing a file or folder
  • Next by thread: Re: erasing a file or folder
  • Index(es):
    • Date
    • Thread