Why doesn't this Smart Quotes macro work?

I just built the macro below. When I type the following:
Hey, here's me testing a "smart quotes" thing
and then trigger the macro, I expect it to replace the straight quotes with smart quotes. But the pasted-in text is just the same as the original text, in both Chrome and BBEdit.

What am I doing wrong?

Replace your second "Select menu" action with a "Copy" action, like this:

This works for me (al least in BBEdit and TextEdit).

Yes, that works for me too! Thanks.

What’s your understanding of why it succeeds with KM’s Copy action and fails with the application’s menu item?

Also, a feature request: It would be good if the “Smart Quotes” filter would properly smarten single quotes and apostrophes too!

Currently it’s not clear to me why your first version doesn’t work.

First I thought the second Menu action was too fast, because when testing it with TextEdit KM gave me a notification that the Copy menu was disabled. I added a Pause before the Select All / Copy action, the notification went away, but it still didn’t work.

This has been discussed here.

In short: Smartening single quotes is not as easy as smartening double quotes because of the apostrophes (see the examples in the linked thread).

However, as mentioned in the thread, there are existing solutions that work well in 98% of the cases. And as you can see by my last post in that thread, I also think that one of these solutions should be implemented – despite not being perfect (in some edge cases).

1 Like