|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Saturday, August 2, 2003, at 06:26 PM, Neil Faiman wrote:
Is there a way from AppleScript to completely delete a file (i.e., free up its space right now, rather than just moving it to the trash)? 'tell application "finder" to delete file "foo"' moves it to the trash. Of course, I could do something like 'do shell script ("rm " & posix path to file foo)', but I'm looking for a "pure" AppleScript solution.
tell application "Finder"
set the file_to_delete to alias "Dora:Users:michelle:Desktop:foo.text"
delete the file_to_delete
empty the trash
end tell
do shell script ("rm " & posix path to file foo)
| References: | |
| >Re: Really delete a file via AppleScript (From: Michelle Steiner <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.