{"id":17836,"date":"2017-04-27T14:25:12","date_gmt":"2017-04-27T18:25:12","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=17836"},"modified":"2017-04-27T14:25:12","modified_gmt":"2017-04-27T18:25:12","slug":"one-off-text-filtering-in-bbedit","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2017\/04\/27\/one-off-text-filtering-in-bbedit\/","title":{"rendered":"One-off Text Filtering in BBEdit"},"content":{"rendered":"<p><a href=\"http:\/\/leancrew.com\/all-this\/2017\/04\/one-off-text-filtering-in-bbedit\/\">Dr. Drang<\/a>:<\/p>\n<blockquote cite=\"http:\/\/leancrew.com\/all-this\/2017\/04\/one-off-text-filtering-in-bbedit\/\">\n<p>Although I&rsquo;m far from a Unix wizard, I do find myself thinking of transformations in terms of command-line utilities rather than Text Factory actions. If only BBEdit would let me just type out a pipeline to run the selected text through. Surprisingly, it&rsquo;s not all that hard to give it that ability.<\/p>\n<p>[&#8230;]<\/p>\n<p>As you can see, most of Any Filter is an AppleScript command that displays a dialog box asking for and collecting the command. The final line is just the execution of that command. Because this is saved as a Text Filter, BBEdit knows to feed it the selected text (or the entire current document) and replace that text with Any Filter&rsquo;s output.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Dr. Drang: Although I&rsquo;m far from a Unix wizard, I do find myself thinking of transformations in terms of command-line utilities rather than Text Factory actions. If only BBEdit would let me just type out a pipeline to run the selected text through. Surprisingly, it&rsquo;s not all that hard to give it that ability. [&#8230;] [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[159,154,30,1381,318],"class_list":["post-17836","post","type-post","status-publish","format-standard","hentry","category-technology","tag-applescript","tag-bbedit","tag-mac","tag-macos-10-12","tag-terminal"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/17836","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=17836"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/17836\/revisions"}],"predecessor-version":[{"id":17837,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/17836\/revisions\/17837"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=17836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=17836"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=17836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}