BBEdit - JXA - Find and Find and Replace

102 views
Skip to first unread message

Jesse Shanks

unread,
Jan 3, 2024, 9:00:32 AM1/3/24
to BBEdit Talk
HI,

I have not figured out how to do a JXA script to Find and Find and Replace in BBEdit.

This little snippet fails miserably:

bb = Application("BBEdit")


result = bb.windows[0].find('Ancient Rome',{searchingIn:null,options:{searchMode:'grep'}})


I could stick with the AppleScripts that work very well, but it's a matter of curiosity.


TIA,

Jesse

Jesse Shanks

unread,
Jan 30, 2024, 8:38:47 PM1/30/24
to BBEdit Talk
I know that the BBEdit cats are busy making BBEdit 15 and stuff. But it was Patrick Woolsey himself who told me that someone from this group could probably provide a snippet for find or find and replace with JXA..

Thanks,
Jesse



Reply all
Reply to author
Forward
0 new messages