At 14:52 -0700 10/17/2012, Oliver Taylor wrote: >I've got a simple ruby text filter that underlines text (in >Markdown/Setext style): [... code elided ...] > >And I want to attach a script to the menu item so that if there's no >selection the line is selected, then the text filter runs. Here's the >applescript: [... code elided ...] > >I've named the script "Apply Text Filter*Setext Single" (which corresponds >to the text-filter name).
I regret this arrangement won't work since you can only attach scripts to intrinsic commands, not text filters or other external items. Thus, the solution I'd suggest is to use an AppleScript filter to both test & adjust the selection and apply the desired transform. Regards, Patrick Woolsey == Bare Bones Software, Inc. <http://www.barebones.com/> -- -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> 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>
