XModules

XModules is a collection of AppleScript library. XModules is a Class Library not just a collection of handlers.

An AppleScript library is just a script bundle which can be loaded as a script object using :

All of libraries have manuals in own bundles as Help Books. To display the manual, install OpenHelpBook and run the library from Script Menu. The refeneces of libraries in HelpBooks are generated by AppleScriptDoc.

Getting Started

XModulesCore

A starter kit of AppleScript library XModules.

ModuleLoader

Yet another modern library system for AppleScript.

OpenHelpBook

Display a help book in a bundle with Help Viewer.

Utilities

Compiled Script file Show Help

Display a help book in a budle (e.g. application bundles) with Help Viewer.

AppleScriptDoc

A document generator for AppleScript libraries.

File Manipulation

PathInfo

Object oriented file references.

XFile

Object oriented file refereces and file operation (moving, removing, geting attributes and so on).

PathConverter

Convet a path form between a relative path and an absolute path.

Text Manipulation

XText

Object oriented interface to manipulate text and some advanced features.

XCharacterSet

Objects representing character sets.

XRegex

Substring and replacing using regular expression.

HTMLElement

Represents and generates HTML by object oriented programming.

Finder Scripting

FinderSelection

Obtain items meeting specified conditions from selected items in Finder.

FileSorter

Sort a list of files of folders according to their view sorting order in the Finder.

InsertionLocator

Obtain insertion/selected location in Finder with smarter way than Finder does.

Data Collection

XList

A wrapper object to treat AppleScript's list as iterator, stack and queue.

XDict

An associative list type data collection.

Application Scripting

Compiled Script fileTerminalCommander

Find a terminal by working directory and custom title and execute shell commands on it

Compiled Script file InferiorTerminal

Prepare a reserved terminal to execute commands send from AppleScripts

FrontAccess

Obtain information for application process and its frontmost document using GUI Scripting

XAppProcess

Send key events to background application processes. Activate, hide and unhide processes.

XActivate

Activate an application process bringing only one window forwad.

GUIScriptingChecker

Check availability of "GUI Scripting".

Miscellaneous

XPreferences

Help saving and loading settings(preferences) of AppleScript applications

XAccessor

Access properties of script object or record and global variable with specifing its name with a text.

XHandler

Execute a handler with specifying its name with text.

SortEngine

Sort routines of the quick sort and the bubble sort algorithm.

XDate

Convert a date object into text with various formats.

LapTime

Measure execution time of AppleScript in accurary of a few milliseconds

XModifierKeys

Obtain status of modifier keys

Deprecated Modules