Difference between revisions of "Scripting and Automation"

From BBEditExtras
Jump to: navigation, search
(added Text selection scripts collection)
Line 6: Line 6:
  
  
==User created scripts==
+
== Automating BBEdit ==
  
 
* [http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1279416727 Send to Arduino]
 
* [http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1279416727 Send to Arduino]
* [http://www.angelwatt.com/words/2011/04/11/bbedit-smart-newline-open-line/ Auto-indent for Python, HTML, CSS, Ruby, and more]
 
 
* [http://t.co/FDxZSOh Turn clipboard contents into plain text] (Automator action. Put in ~/Library/Services, invoke from AppName -> Services menu.)
 
* [http://t.co/FDxZSOh Turn clipboard contents into plain text] (Automator action. Put in ~/Library/Services, invoke from AppName -> Services menu.)
* [http://www.allthecandyintheworld.com/bbedit/scripts.html Delete entire line]
 
* [http://www.allthecandyintheworld.com/bbedit/scripts.html Comment entire line]
 
 
* [http://entable.s3.amazonaws.com/index.html Entable - Line up text into columns] (see also: [http://bbedit-hints.tumblr.com/post/17659257006 a unix filter to do a similar thing]
 
* [http://entable.s3.amazonaws.com/index.html Entable - Line up text into columns] (see also: [http://bbedit-hints.tumblr.com/post/17659257006 a unix filter to do a similar thing]
 
* [http://www.angelwatt.com/coding/zen-coding_bbedit.php Zen Coding]
 
* [http://www.angelwatt.com/coding/zen-coding_bbedit.php Zen Coding]
* [https://github.com/isao/shell/tree/master/bbedit/Scripts Go Here in Terminal]
 
* [https://gist.github.com/2006738 Go Here in iTerm]
 
* [https://gist.github.com/2028536 Go Here in BBEdit's Shell Worksheet]
 
* [https://github.com/isao/shell/tree/master/bbedit/Scripts Git-bbdiff]
 
* [https://github.com/isao/shell/tree/master/bbedit/Scripts Git pull]
 
* [https://github.com/isao/shell/tree/master/bbedit/Scripts Git x]
 
 
* [http://groups.google.com/group/bbedit/msg/a35b1a0d3b4b5578?dmode=source Incrementing values down multiple lines of code]
 
* [http://groups.google.com/group/bbedit/msg/a35b1a0d3b4b5578?dmode=source Incrementing values down multiple lines of code]
* [http://forrst.com/posts/JSLint_Script_for_BBEdit-UQV JSLint]
 
* [https://github.com/topfunky/PeepOpen-EditorSupport/blob/234cb1c8e0bb392f9c4947faf06b1f44804c942f/PeepOpen-bbedit/README.md Launch PeepOpen for current project or document]
 
 
* [http://db79.com/2011/07/29/BBEdit_Post_to_MetaWeblog_AppleScript.html Post to MetaWeblog]
 
* [http://db79.com/2011/07/29/BBEdit_Post_to_MetaWeblog_AppleScript.html Post to MetaWeblog]
* [https://github.com/isao/shell/tree/master/bbedit/Scripts PHP Lint]
 
* [https://github.com/isao/shell/tree/master/bbedit/Scripts PHP Unit]
 
 
* [http://tomingham.org/post/3182188277/reloading-sproutcore-apps SproutCore]
 
* [http://tomingham.org/post/3182188277/reloading-sproutcore-apps SproutCore]
 
* [https://github.com/isao/shell/tree/master/bbedit/Scripts Tabstop cycle]
 
* [https://github.com/isao/shell/tree/master/bbedit/Scripts Tabstop cycle]
Line 36: Line 23:
 
* [https://gist.github.com/2351038 Close and Save front file]
 
* [https://gist.github.com/2351038 Close and Save front file]
 
* [https://gist.github.com/2634456 Download direct to BBEdit]
 
* [https://gist.github.com/2634456 Download direct to BBEdit]
 +
 +
== BBEdit with other applications ==
 +
* [https://github.com/isao/shell/tree/master/bbedit/Scripts Go Here in Terminal]
 +
* [https://gist.github.com/2006738 Go Here in iTerm]
 +
* [https://gist.github.com/2028536 Go Here in BBEdit's Shell Worksheet]
 +
* [https://github.com/isao/shell/tree/master/bbedit/Scripts Git-bbdiff]
 +
* [https://github.com/isao/shell/tree/master/bbedit/Scripts Git pull]
 +
* [https://github.com/isao/shell/tree/master/bbedit/Scripts Git x]
 +
* [https://github.com/topfunky/PeepOpen-EditorSupport/blob/234cb1c8e0bb392f9c4947faf06b1f44804c942f/PeepOpen-bbedit/README.md Launch PeepOpen for current project or document]
  
 
== Text Selection and Text Navigation Scripts ==
 
== Text Selection and Text Navigation Scripts ==
 +
 +
* [http://www.allthecandyintheworld.com/bbedit/scripts.html Delete entire line]
 +
* [http://www.allthecandyintheworld.com/bbedit/scripts.html Comment entire line]
  
 
* [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://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://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/ Auto-indent for Python, HTML, CSS, Ruby, and more]
 
* [http://www.angelwatt.com/words/2011/04/11/bbedit-smart-newline-open-line/ New Line above current with appropriate indentation level]
 
* [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]
 
* [http://www.ranea.org/bbedit_editoractions.html Editor Actions package - packages these scripts up with Join Lines + some others]
Line 52: Line 51:
 
* [http://bbedit-hints.tumblr.com/post/18903617528/applescript-inserting-some-text-as-the-current Inserting Some text at the insertion point]
 
* [http://bbedit-hints.tumblr.com/post/18903617528/applescript-inserting-some-text-as-the-current Inserting Some text at the insertion point]
 
* [http://bbedit-hints.tumblr.com/post/18130219648/applescript-getting-a-list-of-open-documents-in-your Getting a list of open documents in your BBEdit project]
 
* [http://bbedit-hints.tumblr.com/post/18130219648/applescript-getting-a-list-of-open-documents-in-your Getting a list of open documents in your BBEdit project]
 +
 +
== More ==
 +
 +
Don't see what you're after? Try these other wiki pages:
 +
 +
* [[Using BBEdit and (your language)]]
 +
* [[Using BBEdit to make eBooks]]
 +
 +
A BBEdit package also contain the script you're looking for: check out this wiki's list of [[Packages]]

Revision as of 05:46, 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.


Automating BBEdit

BBEdit with other applications

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.

More

Don't see what you're after? Try these other wiki pages:

* Using BBEdit and (your language)
* Using BBEdit to make eBooks

A BBEdit package also contain the script you're looking for: check out this wiki's list of Packages