I'm finally getting around to trying to fix errors that have cropped up
since BBEdit 11 in my Markdown package. Several of the commands are just
short AppleScripts that call text filters, like:
set _me to "" & (path to me)
set AppleScript's text item delimiters to ":"
set packagePath to "" & text items 1 through -3 of _me
set AppleScript's text item delimiters to ""
set markdown to packagePath & ":Text Filters:markdown"
set smarty to packagePath & ":Text Filters:smartypants"
tell application "BBEdit"
«event ¶erlRFtr» markdown with «class o2sl»
«event ¶erlRFtr» smarty with «class o2sl»
end tell
Now, you may wonder what that line with "event garble markdown with
class garble" is, and the answer is: I don't know. I'm pretty sure I
didn't write it that way. What I think that used to be was a line that
read something like "run unix filter markdown with selection."
I saw that the BBEdit 11 release notes include the note "The AppleScript
commands for running #! filters have been removed," which I suspect is
the culprit here. Okay: so what's the new way to accomplish this?
Ideally, it should do what the old script did, which is apply the Unix
script to either selected text or the whole document if nothing is
selected. And, yes, I know I can still just direct people to the "Apply
Text Filters" menu, but a couple of the scripts do marginally more
advanced stuff -- running two scripts in this example, for instance, or
checking to see if you have MultiMarkdown 3 installed before executing
it, and I'd prefer to keep doing things this way if it's still possible.
- Watts
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/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 post to this group, send email to [email protected].