On 19 Mar 2021, at 1:39, F. Alfredo Rego wrote:
Hi everyone,
I would like to delete a file via AppleScript.
I’m sure the solution is trivially simple, but so far I can’t find
a way.
The easy way would be to do something like this, which sadly does
exactly what it says and it doesn’t delete the file:
set theFile to (open file "whatever")
close theFile saving no
I looked around in BBEdit’s dictionary for something naively obvious
(perhaps "close theFile deleting yes”) but no such luck.
WAYRTTD? The "Close & Delete" command on the File menu will close a text
document and move its backing file to the trash.
R.
--
Rich Siegel Bare Bones Software, Inc.
<[email protected]> <https://www.barebones.com/>
Someday I'll look back on all this and laugh... until they sedate me.
--
This is the BBEdit Talk public discussion group. If you have a feature request or need
technical support, please email "[email protected]" rather than posting here.
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/07E76664-1A07-4F8F-8775-DE3FD000D65E%40barebones.com.