AppleScript Snippets
- AutoBackup - Automatically makes a backup of the FaceSpan documents dropped on it, then opens them. If you don't have FS just pick some other app when it asks. (It's almost generic but I never went and made it generic.)
- Continue - A simple example of how the continue command works.
- Date to String Routines - Everyone seems to ask for these. Here's a set.
- DeExpander - Closes a folder's twisties in list view. This might require 8.5+ (I'm not sure).
- ESG MathLib 1.1 - A script library that provides a number of math functions. This version is a large rewrite; it includes logarithms, arcsin and arccos, and documentation.
- Map - In the same vein as Stack, this script includes two script objects that you can use to map keys to data. (It's one answer to the popular question: How do I make records at runtime?)
- Eudora Reference Maker - Returns a list of references to messages in Eudora 3. It was a learning tool.
- EveryOffsetOf - Returns the offset of every instance of one string in another. I've used this instead of the Text Item Delimiters at times.
- ExistsApp - Routines to detect if a given application is on the system, running, and responding.
- Find Intersecting Point - Calculates the intersecting point on a circle of a line at a specified angle. If you're looking for a Vanilla Sine or Cosine routine, this has one for you.
- Find Number In Text - Does a quick scan of a string to see if it can extract a number from it. Useful for stripping spaces from text input.
- GetURL and Wait - Downloads a file using Netscape and waits for the download to finish before continuing.
- OSAX Checker - Returns or selects all the OSAXen in your "Scripting Additions" folder that have a specified name in the version information. You'll have to change some things for non-US systems.
- Password Utils - Two routines for encoding and decoding passwords.
- Permutate - Takes a list and returns all permutations of the items in the list.
- Stack - A script object which acts like a stack. Also includes ways to directly access the list inside (though you shouldn't really be using them).
- TimeCode Utils - Translates a specified TimeCode time around. May be useful if you're playing with time.
- UnScientificNotate - Two functions to go from Scientific Notation to strings, plus a rounding routine.
- Version Converter - Three functions that convert between "8.6", {8, 6, 0}, and 2144.
- XOR - Exclusive OR routine for positive integers.