Collection of old AppleScripts, written between 1997 and 2000. Unsupported and untested on current versions of Mac OS X.
The following scripts enhance the text editor BBEdit. Most deal with operations on selections, making it easy to perform time-saving operations on highlighted text. They will work with BBEdit 5, and probably will work with the last 4.5 release. I have not updated them to support BBEdit 6 or higher, which have different scripting implementations!
Some more up-to-date scripts.
Download BBEdit Scripts archive.
- Clean Up Text - removes line breaks, then hard wraps the text into form. Deals with selection only, if possible. Otherwise, zaps the whole document.
- Delete Whitespace, Trailing - clips off any trailing whitespace (tabs and spaces, really) from document. Will deal with the selection only if there is one...
- Insert Current Date & Time - will insert current date and time where cursor/selection is, or beep at you failing that.
- Insert Current Date & Username - will insert current date and time and username where cursor/selection is, or beep at you failing that.
- Javac Compile - for compiling stuff in Java from BBEdit. If javac isn't running, window 1 is passed to javac; otherwise, javac is told to try to compile whatever is current... (at least, in theory. Something wacky appears to be going on sometimes...)
- Selection, Delete - select something, run this script, watch all occurrences vanish from document. Need to figure out how to quit gracefully if the selection isn't defined. Case Sensitive, but will not look for whole words.
- Delete regex from Document - select something, run this script, watch all occurrences vanish from document. Need to figure out how to quit gracefully if the selection isn't defined. Case sensitive, but not word-seeking.
- Selection, Find Next - given a selection, will find the next occurrence thereof in document. Case Sensitive.
- Selection, Go To Function - select the name of a function in your document. Running this script should then take you to the function in question.
- Selection, Repeat... - given a selection, will append n many clones of the selection following the selection. Complains if number entered isn't.
- Selection, Replace With... - given a selection, run this script, type in a replacement, and all occurrences of that selection will be replaced. Meant as a shortcut for us lazy folks. Case Sensitive.
Download Folder Action Scripts archive.
- close - open window - prevents open window from closing.
- close - reopen window - prevents closed window from remaining open.
- SyncWindow - automatic window contents refreshing.
Download Idyll or see Idyll.scpt directly.
A /loadable ircle script that aids role playing games over Internet Relay Chat (IRC). Idyll provides prepared text dumping into a channel (or to a nick) and dice rolling support. Requires the RegEx Commands Scripting Addition. The OS X and RegEx Commands e-mail thread covers solutions to using regular expressions in AppleScript on Mac OS X.
Utilitarian scripts for the IRC client ircle on Mac OS.
Download Ircle Scripts archive.
- b.scpt - Usage: /b nick message. Kicks, then smart bans the nick mentioned.
- c.scpt - For keyboard using folks who want to jump around in the mouse-only connection list. Usually, this script will be followed with a command-G to toggle the status of the connection.
- dicer.scpt - Replaced by the slower, larger, and more functional Iydll. A /loadable Ircle script that performs dice rolling functions.
- drag.scpt - Allows ircle to interact with DragThing. /drag will just bring DragThing to the front, or you can specify a dock name or number to jump directly to as an optional first argument.
- gethosts.scpt - Exports host names of all users for either the current channel or the first argument into a specified file.
- getinfo.scpt - Exports nick, username, and hostname of all users for either the current channel or the first argument into a text file. Uses Tab separated values.
- j.scpt - Better /join for Ircle; allows one to supply an optional second argument specifying which connection to point the join request at.
- k.scpt - Usage: /k nick message. Nick and message are optional, as can operate on the userlist selection.
- mail - From ircle, will allow you to instantly switch to or open Eudora (or replace with the mail agent of your choice) and do things.
- reveal.scpt - Reveals ircle on disk. Good when you want to go poking around in the logs or scripts folder.
- vol.scpt - Sets the system sound level from ircle.