Difference between revisions of "Scripting and Automation"

From BBEditExtras
Jump to: navigation, search
(User created scripts)
(added Text selection scripts collection)
Line 37: Line 37:
 
* [https://gist.github.com/2634456 Download direct to BBEdit]
 
* [https://gist.github.com/2634456 Download direct to BBEdit]
  
 +
== Text Selection and Text Navigation Scripts ==
 +
 +
* [http://www.angelwatt.com/words/2010/07/31/bbedit-textwrangler-home-key-behavior/ IDE style go to start of the line behavior (Go to the start of the text on a line or the start)]
 +
* [http://daringfireball.net/2003/09/select_word_script_for_bbedit Select Word script for BBEdit]
 +
* [http://www.angelwatt.com/words/2011/04/11/bbedit-smart-newline-open-line/ Smart Newline (Indentation Aware)]
 +
* [http://www.angelwatt.com/words/2011/04/11/bbedit-smart-newline-open-line/ New Line above current with appropriate indentation level]
 +
* [http://www.ranea.org/bbedit_editoractions.html Editor Actions package - packages these scripts up with Join Lines + some others]
 +
* [https://github.com/rwilcox/Source.bbpackage Source package - includes scripts to select an entire string]
 +
 
== Applescript Snippets for BBEdit ==
 
== Applescript Snippets for BBEdit ==
  

Revision as of 05:36, 29 May 2012

Scripts in BBEdit can be executable Unix files, AppleScript files, text factories, or Automator workflows. These are run simply by loading the item and calling it directly, without providing any inputs. (Naturally, AppleScript scripts and Automator actions can query the application, and #! scripts have some information passed to `argc` and `argv` as usual.)

The Scripts menu (and palette) contains all eligible items from the Scripts folder, which can be found in ~/Library/Application Support/BBEdit/Scripts.


User created scripts

Text Selection and Text Navigation Scripts

Applescript Snippets for BBEdit

These snippets illustrate techniques for doing stuff in BBEdit with Applescript. They are not meant to be full scripts, but show techniques that you might need for scripts you write.