--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" 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 bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/CA8C47EB-6EBC-4D90-891E-8B7746FCDB23%40gmail.com.
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
On Mar 19, 2021, at 3:44 PM, MediaMouth <comm...@gmail.com> wrote:tell application "Finder" to delete POSIX file "/Volumes/ExternalVolume/Path/To/File"a
"Copy Finder Items” watches a folder and, whenever a file is ADDED to the folder (see the red rectangle that I used to highlight this spec), it copies the file to a destination folder (with the option to replace existing items).
In the end, MediaMouth's was the simplest, as a one-liner that abstracted Jean’s multi-liner:
tell application "Finder" to delete POSIX file "/Volumes/ExternalVolume/Path/To/File"
...Footnote to answer Chris:...
My desired workflow is a work-around for an obvious Automator failing in "Copy Finder Items.
"Copy Finder Items” watches a folder and, whenever a file is ADDED to the folder (see the red rectangle that I used to highlight this spec), it copies the file to a destination folder (with the option to replace existing items).
<ps 2021-03-19 at 6.18.47 PM.jpg>
Unfortunately, "Copy Finder Items” does NOTHING whenever a file is MODIFIED (which is what happens every time that the library gets rebuilt during the compile-link workflow).