Meant to also say: I know - hard coding a path, ew! One alternative if you have 
a BBEdit Project involving multiple files you’ll be working on for a while - I 
have a bunch of those - you could install a project's own two compare docs in 
the project, and the script could reference then via the current Project, 
rather than hard-coding their paths. OTOH, hard-coding on your regular work 
machine where this need will arise is not necessarily evil. And the location 
could be fairly universal, such as in the /Users/Shared/ directory.

> On Dec 8, 2024, at 1:48 AM, Bruce Van Allen <[email protected]> wrote:
> 
> One more improvement would be to permanently dedicate two files for this use. 
> Locate them in some safe place - not temp files - named so you’ll remember 
> not to accidentally delete later, e.g., “CompareDoc1” & “CompareDoc2”. Then 
> hard-code them with paths in your script. Eliminates all the steps related to 
> creating files. The script can overwrite the previous comparison’s text 
> fragments each time it’s called, or maybe just close the files without 
> saving, leaving the files on disk always blank.
> 
> HTH,
> 
>> On Dec 7, 2024, at 6:55 PM, Jim Leff <[email protected]> wrote:
>> 
>> Rick, thanks, but I got ChatGPT to create the script for me. Here it is. It 
>> requests the two snippets and transfers them to docs on desktop (and  opens 
>> desktop folder so you can delete them), then opens Find Differences with the 
>> snippets properly selected (stealing from JJ's work!).
>> 
>> It runs well but requires BBEdit's Command Line Tools and some permissions 
>> tweaks:
>> 
> 
>    — Bruce
> 
> _bruce__van_allen__santa_cruz_ca_
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or believe that the application isn't working correctly, please email 
> "[email protected]" rather than posting here. Follow @bbedit on Mastodon: 
> <https://mastodon.social/@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 visit 
> https://groups.google.com/d/msgid/bbedit/6DA0A5D7-8E0D-4FE0-804B-E62FC8E536DE%40cruzio.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or believe that the application isn't working correctly, please email 
"[email protected]" rather than posting here. Follow @bbedit on Mastodon: 
<https://mastodon.social/@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 visit 
https://groups.google.com/d/msgid/bbedit/EFBB90CC-43AF-48E6-BAB5-3EFA62CD9CDE%40cruzio.com.

Reply via email to