I know you already have an answer but I think it's good to know how to restrict
an AppleScript "replace" in BBEdit to the selected text. I had this problem
myself once.
This is how I'd do it (and it works!)
tell application "BBEdit"
set myDocument to document 1
set selectedText
Rich,
Success, thanks. Guess I needed a screwdriver, not a hammer ;-). BTW, I've
been using BBEdit since v 4.5 in 1998, though the free "It doesn't suck!"
t-shirt is long gone :-(. Not sure how I managed to go this long without
knowing about Clippings; I'll be using these for quite a few other
On 10/14/18 at 3:56 AM, kevin.bold...@gmail.com (Kevin Bolduan) wrote:
I can't do a global search-and-replace and would like a quick
and easy way to type "2rem" (or any other value), select it,
press the keyboard shortcut, and have it change to calc(2rem * .625).
I should think a clipping
I'd like to have a keyboard shortcut that allows me to highlight a
selection and have it be replaced using a grep pattern that uses the
selection. I'm writing some CSS and I need to convert various font-size
declarations as follows:
2rem -> calc(2rem * .625)
I can't do a global