tell application "Finder" to delete POSIX file "/Volumes/ExternalVolume/Path/To/File" act This will actually put the file in the trash Then, if you want...
tell application "Finder" to empty trash > On Mar 19, 2021, at 2:41 PM, jj <[email protected]> wrote: > > Hi, Alfredo, > > Instead of deleting your file, you should move it to the trash so you can > recover it in case of error. > set vFile to POSIX file "/path/to/your/file" > > tell application "Finder" > > move vFile as alias to the trash > > end tell > > Best regards, > > Jean Jourdain > -- 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/A49335F2-8330-4123-B6D8-DA693FE91B25%40gmail.com.
