Hi all, Thanks for all the help from different perspectives and styles.
In the end, MediaMouth's was the simplest, as a one-liner that abstracted Jean’s multi-liner: > On Mar 19, 2021, at 3:44 PM, MediaMouth <[email protected]> wrote: > > tell application "Finder" to delete POSIX file > "/Volumes/ExternalVolume/Path/To/File" > a Thanks to everyone. Alfredo ------------------------------------------------ P.S. Footnote to answer Chris: My workflow involves copying an updated library from a pre-production (alpha) directory to a production (beta) directory whenever the alpha software passes some tests, which are part of an AppleScript that I run by means of a convenient BBEdit shortcut. 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). 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). So, I need (thanks, Automator ;-) to delete the library BEFORE running the compile-link process, to guarantee that Automator will detect the “ADDITION" of the brand-new library. An obvious pain. There are a ton of questions online about the (self-evident) desire to enhance Automator with a Folder action that watches a folder for UPDATED items. Yes: This entire workflow can be done via a makefile, but other environmental constraints motivate using BBEdit instead. I learned a lot in the process and I really appreciate that. -- 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/316CBEC6-01D7-4B13-A89B-C1A95DBBD555%40gmail.com.
