Hi “MediaMouth” (sorry about my not knowing your name),

This is perfect.

This makes my Rube-Goldberg approach immediately obsolete.

Your approach cuts away all the unnecessary fat and produces a lean structure.

I’m quickly learning that there’s a command-line app for “that” (whatever 
“that” may be). The trick (at least for me) is finding out which one applies to 
what.

Thank you so much for the excellent description.

Alfredo

> On Mar 21, 2021, at 1:33 AM, MediaMouth <[email protected]> wrote:
> 
> Hi Alfredo,
> 
> I wonder if a solution here is rsync.
> This is a command line app that can easily be run from AppleScript.  It 
> 'syncs' two directories, a source to a dest (in your case alpha 
> (pre-production) to beta (production))
> 
> rsync -avu '/path/to/alpha/directory' '/path/to/beta/directory'
> 
> This will update all modified files and add new files from  from alpha to 
> beta.  It will not delete items from beta when items are deleted from alpha.  
> To achieve that...
> 
> rsync -avu --delete '/path/to/alpha/directory' '/path/to/beta/directory'
> 
> The added --delete option only affects beta, not alpha
> 
> Explainer for -avu options
> a: 'archive mode' makes sure things like creation date and mod dates are 
> passed from alpha to beta
> v: 'verbose' show a lot of feedback
> u: skip files in beta that are newer than those in alpha. (ie saves time)
> 
> Ordinarily you do all that in Terminal, which you can call from BBedit.
> But you can also run it from AppleScript:
> 
> do shell script "rsync -avu '/path/to/alpha/directory' 
> '/path/to/beta/directory'"
> 
> Your workflow may have other nuances not captured above, but based on your 
> notes, you might be able to replace an elaborate sequence of Automator and 
> AppleScript with a single line of code easily run from within BBedit

-- 
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/67D08C02-D20D-45F8-90DC-2E4A3B617D69%40gmail.com.

Reply via email to