BBEdit Scratchpad Applescript

This is an Applescript for BBEdit that will create a file with the title Scratch_{timestamp} in the folder /tmp/bbedit_scratchpads. These are nice for when you want a temporary file to work in but do not want to be bothered with managing files created with the File menu, e.g., no need to pick a name and place to save "Untitled" documents or find and delete said files when you are done with them.

System Requirements

This script requires the BBEdit Professional HTML and Text Editor for the Macintosh, with the Command Line Tools installed. See http://www.barebones.com/products/bbedit/ and http://web.barebones.com/support/bbedit/manual.shtml for more details.

Installation

Copy the contents of the textarea below to a new Applescript ScriptEditor window, press "Run" to check that it works okay, and, if so, save the file as a script with the filename "00)New Scratchpad.scpt" in the BBEdit scripts folder at /Users/YOUR-USERNAME-HERE/Library/Application Support/BBEdit/Scripts (Scripts menu > Open Scripts Folder). The script may then be exectued via the BBedit Scripts menu > New Scratchpad.

License

Copyright (c) 2008 by Erik Smith. All rights reserved.