Difference between revisions of "Scripting and Automation"

From BBEditExtras
Jump to: navigation, search
 
(8 intermediate revisions by 2 users not shown)
Line 4: Line 4:
  
 
* [[Attachment Points]]
 
* [[Attachment Points]]
 
 
'''Source(s):'''  [http://www.downloadranking.com  Scripting and Automation]
 
  
  
Line 33: Line 30:
 
* [https://gist.github.com/3237070 Save each line in the current BBEdit document to its own file]
 
* [https://gist.github.com/3237070 Save each line in the current BBEdit document to its own file]
 
* [https://github.com/workwithnano/bbedit-scripts/blob/master/Update%20Project%20Tags.scpt Update current project's "tags" file]
 
* [https://github.com/workwithnano/bbedit-scripts/blob/master/Update%20Project%20Tags.scpt Update current project's "tags" file]
 
+
* [http://bbedit-hints.tumblr.com/post/40682254266/send-selection-to-bbedit-worksheet Send selection to BBEdit Worksheet]
 +
* [https://gist.github.com/rwilcox/e407ebdd2ed569f685f8 Find starting at the top of a document]
 +
* [https://gist.github.com/rwilcox/988dd34fdfe37290c09f Toggle Distraction Free Writing]
 +
* [https://github.com/ollicle/BBEdit-Extract-Placeholder Extract Placeholder]
  
 
== BBEdit with other applications ==
 
== BBEdit with other applications ==
Line 44: Line 44:
 
* [https://github.com/topfunky/PeepOpen-EditorSupport/blob/234cb1c8e0bb392f9c4947faf06b1f44804c942f/PeepOpen-bbedit/README.md Launch PeepOpen for current project or document]
 
* [https://github.com/topfunky/PeepOpen-EditorSupport/blob/234cb1c8e0bb392f9c4947faf06b1f44804c942f/PeepOpen-bbedit/README.md Launch PeepOpen for current project or document]
 
* [http://www.leancrew.com/all-this/2012/09/bbedit-finder-toolbar-icon/ Finder Toolbar icon script for BBEdit]
 
* [http://www.leancrew.com/all-this/2012/09/bbedit-finder-toolbar-icon/ Finder Toolbar icon script for BBEdit]
 +
* [https://gist.github.com/rwilcox/4714936 Send selection to nvALT] (Note: must be storing your notes as Plain Text Files)
 +
 +
== BBEdit and Unix ==
 +
 +
* [https://github.com/cngarrison/rbbedit Edit a file in BBEdit from SSH on another machine!]
  
 
== Text Selection and Text Navigation Scripts ==
 
== Text Selection and Text Navigation Scripts ==
Line 65: Line 70:
 
* [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]
 +
* [http://bbedit-hints.tumblr.com/post/41277831904/example-of-how-to-create-a-bbedit-text-filter-with Example of creating a text filter with Applescript]
 +
* [http://bbedit-hints.tumblr.com/post/42846746767/finding-and-selecting-text-with-applescript Finding and selecting text in Applescript]
  
 
== More ==
 
== More ==

Latest revision as of 07:02, 26 April 2015

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

BBEdit and Unix

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:

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