Difference between revisions of "Scripting and Automation"

From BBEditExtras
Jump to: navigation, search
Line 62: Line 62:
 
* [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]
  
 
== More ==
 
== More ==

Revision as of 06:37, 23 January 2013

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:

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