AppleScript to compare two frontmost documents

2024-03-20 Thread Gil Dawson
Glad to hear that BBEdit's AppleScript language is a little larger than the .sdef suggests. I hadn't thought about looking at Script Editor's recording result. Great idea! Thanks, guys. --Gil > On Mar 20, 2024, at 1:58 PM, GP wrote: > > If you use the Script Editor to record BBEdit's Find

Re: AppleScript to compare two frontmost documents

2024-03-20 Thread GP
If you use the Script Editor to record BBEdit's Find Differences -> Compare Two Front Windows command you'll find the recording is something like: tell application "BBEdit" activate compare text document id 717 against text document id 716 options {ignore blank lines:true, ignore RCS

Re: AppleScript to compare two frontmost documents

2024-03-20 Thread Fletcher Sandbeck
You can get the "first text document", "second text document", etc. so a command like this will compare the front two windows. tell application "BBEdit" activate compare first text document against second text document options {ignore RCS keywords:true, ignore all spaces:true} end tell

AppleScript to compare two frontmost documents

2024-03-20 Thread Gil Dawson
Is there AppleScript language in BBEdit 14.6.9 equivalent to Search > Find Differences > Compare Two Front Windows? The .sdef suggests only files and folders: compare v : compares two files or folders compare file : the new file/folder against file : the old file/folder [options Compare

Re: compare two frontmost documents

2020-07-30 Thread Luc P. Beaudoin
thanks for suggesting that, Sam. I hadn't revisited that pane in a while. I haven't disabled the commands, however. Per my latest comment, BBEdit does not find it via Help menu for some reason, but I can work around that. cheers, Luc On Tuesday, July 28, 2020 at 5:48:48 PM UTC-7 Sam Hathaway

Re: compare two frontmost documents

2020-07-30 Thread Luc P. Beaudoin
Thank you! That's it. Interestingly, when in BBEdit > Help menu, I type `compare two`, that menu item is not revealed by BBEdit. If I type `find differences`, I can get to the menu and navigate with arrow keys from there. my solution will be to setup a keyboard shortcut. Cheers, Luc On

Re: compare two frontmost documents

2020-07-28 Thread Sam Hathaway
Luc, On my copy of BBEdit (version 13.1.2 (414058, 64-bit, sandboxed)) on macOS (version 10.15.6 (19G73)), I see this command under Search > Find Differences > Compare Two Front Windows. Is it possible that you’ve disabled this command under Preferences > Menus & Shortcuts? Hope this

Re: compare two frontmost documents

2020-07-28 Thread Neil Faiman
Compare Two Front Windows is in the Search > Find Differences submenu. Regards, Neil Faiman > On Tuesday, July 28, 2020 at 5:38:27 PM UTC-7 Luc P. Beaudoin wrote: > Hi, In BBEDit 13, I can't find "Compare Two Front Windows". I used to use > "Compare Two Front Documents" a lot in and <

Re: compare two frontmost documents

2020-07-28 Thread Luc P. Beaudoin
macOS 10.14.6 . Yes, I searched for command in BBEdit's Help menu... On Tuesday, July 28, 2020 at 5:38:27 PM UTC-7 Luc P. Beaudoin wrote: > Hi, In BBEDit 13, I can't find "Compare Two Front Windows". I used to > use "Compare Two Front Documents" a lot in and < to BBEdit 12. > >- > >

compare two frontmost documents

2020-07-28 Thread Luc P. Beaudoin
Hi, In BBEDit 13, I can't find "Compare Two Front Windows". I used to use "Compare Two Front Documents" a lot in and < to BBEdit 12. - > "Compare Two Front Documents" has been changed to "Compare Two Front Windows". This more accurately reflects its behavior, and provides