XModules

XModules is a library of AppleScript modules. An AppleScript module is just a script bundle which can be loaded as a script object using "load script" commnad.

To load modules, using ModuleLoader is remommended. See ModuleLoader's manual about benefits and usage of ModuleLoader. ModuleLoader can resolve locations of modules and can load dpended modules hierarchically.

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

ModuleLoader

ModuleLoader is a module loading system. It allows you to load a module with spcifing only its name.

The standard way to load a module/libray in AppleScript may be using load script command. But in the case of this command, you must give a full path to a module. And the path is maintain by your self. ModuleLoader can search the module from predefined locations and update dpendencies by only its name.

2.0 -- 2009-11-26
Manual
Download
Requirements
  • Mac OS X 10.5 - 10.6

AppleScriptDoc

AppleScriptDoc is a formatter of reference manual of AppleScript modules.

AppleScriptDoc generates HTML files from markuped comments in the source code. The markup rules of comments are similar to JavaDoc or HeaderDoc. The reference manual can be setup into a script bundle as Help Book which can be shown in HelpViewer.

1.3 -- 2009-11-09
Read Me
Manual
Download
Source Code
Requirements

Data Collection

XList

XList provides a wapper object to treat AppleScript's list as iterator, stack and queue.

XList will fill many missing features of AppleScript's list.

1.3 -- 2008-03-20
Read Me
Manual
Download
Dependencies

XDict

XDict is a module of AppleScript to provides associative list type data collection. The associateve list is a collection of pairs of keys and values.

1.5 -- 2008-12-04
Read Me
Manual
Download
Dependencies

Text Manipulation

XText

XText is a wrapper object of AppleScript's text object. XText provides object oriented interface to manipulate text and some advanced features.

The parent of instances of XText is AppleScript's text object. Therefore ...

  • Properties of AppleScript's text can be obtained form a XText instance in same way to normal AppleScript's text object (string and Unicode text).
  • An instance of XText is immutable like string or Unicode class object.
1.1 -- 2008-03-19
Read Me
Manual
Download
Dpendencies

XCharacterSet

XCharacterSet is an AppleScript module to provids a object which represent a character set. You can build a character set object using variety methods to specify a group of characters and passing a list of characters to the object.

You can check whether characters of a text are members of the XCharacterSet instance or not.

1.1 -- 2009-04-02
Read Me
Manual
Download
Dpendencies

File Manipulation

XFile

XFile is a module of AppleScript to provides unified object oriented interface to file operation (moving, removing, geting attributes and so on).

Functions of file operations of AppleScript world is given by Scrpting Additions, Finder, System Events and shell commnads. Functions is distributed and cumbersome. XFile wraps these components and introduces a file object for unified object oriented interface.

1.2.2 -- 2009-11-09
Read Me
Manual
Download
Dpendencies

PathAnalyzer

PathAnalyzer is an AppleScript module to obtain various infomation with analyzing a path to a file or a folder.

Without asking Finder, following infomation can be obtain from various reference types(alias, file specification, path string, furl class and Finder's object specifier).

  • a reference to the folder containing the item
  • a name of the folder
  • a reference to the disk containing the item
  • file name
  • path extension
  • whether the item is a folder or not
1.7.2 -- 2008-11-27
Read Me
Manual
Download
Dpendencies

PathConverter

PathConverter is an AppleScript module to convet path forms between a relative path and an absolute path each other. Both path styles of POSIX and HFS can be dealt with PathConverter.

1.4 -- 2008-03-20
Read Me
Manual
Download
Dpendencies

Application Scripting

FileSorter

FileSorter is an AppleScript module to sort a list of files of folders according to their view sorting order in the Finder.

3.0.4 -- 2009-11-06
Read Me
Manual
Download
Dependencies

InsertionLocator

InsertionLocator is an AppleScript module to obtain insertion/selected location in Finder with smarter way than Finder does.

Finder's insertion location property always means the top level folder of Finder window. This behavior is not enough in same cases, for example expanded subfolder shown in a list view window can not be the insertion location.

InsertionLocator allow following behaviors.

  • If a file is selected, the container of the file can be insertion location.
  • The selected folder can be insertion location.
  • The only selected folder which is expanded subfolder in the list view window can be insertion location.

These behaivor can be customizable to meet your application.

1.2.7 -- 2009-11-05
Read Me
Manual
Download
Dependencies

FrontAccess

FrontAccess is an AppleScript module to obtain infomation for application process and its frontmost document using GUI Scripting. FrontAccess can help building a script which does not depend on a certain application.

The features of FrontAccess are..

  • Obtain the file reference of the frontmost document of the frontmost application process.
  • Save and close of the frontmost document of the frontmost application process.
  • Obtain infomation about the frontmost application process.
1.0.2 -- 2009-04-29
Read Me
Manual
Download
Requirements
Dependencies

Development

GUIScriptingChecker

GUIScriptingChecker is an AppleScript module to check availability of "GUI Scripting".

To enable "GUI Scripting", the status of access for assitive devices in System Preferences must be ON. But default status is OFF. Therefore you should check availability of "GUI Scriting" at the beginning of the script which depends on "GUI Scripting".

"GUIScriptingChecker" take on boring routine task instead of you.

1.1 -- 2009-10-19
Read Me
Manual
Download
Requirements

ShowHelpBook

ShowHelpBook is an AppleScript module to register/display a help book of current bundle in Help Viewer. The porpose of ShowHelpBook provide a function to display a help book in own bundle to AppleScript applets, droplets and script bundles.

About setting up a help book into a bundle, see Apple's developer documents or HelpBook.osax's manual.

Main tasks are dealt with HelpBook.osax. ShowHelpBook provides error handling and recovering Info.plist.

1.0 -- 2007.06.09
Read Me
Manual
Download
Requirements

Miscellaneous

XAccessor

XAccessor is an AppleScript module to generate an accessor object to access properties of script object or record and global variable with specifing its name with a text.

  • get/set a value of a propety of script object or record specifed with its name with a text.
  • get/set a global variable specified with its name with a text.
1.1 -- 2007.08.22
Read Me
Manual
Download
Dpendencies

XHandler

XHandler is an AppleScript module to execute a handler with specifying its name with a text. This module allows to change a handler to execute at run time

Also XHandler can be used for chain of responder pattern and method forwarding.

1.2 -- 2008-02-28
Read Me
Manual
Download
Dpendencies

SortEngine

SortEngine is a sort routine which have the quick sort and the bubble sort algorithm. And the behaivoir can be coustomied with object oriented interface.

2.0 -- 2008.02.02
Read Me
Manual
Download
Dpendencies

Deprecated

UniqueNamer

UniqueNamer is an AppleScript module to obtain a unique file name in a specified folder.

If an item which have same name to given candidate exists, UniqueNamer generates a name to which numbers is appended at the end of the base name. For example:

hello.1.text、hello.2.text . . .

Also UniqueNamer can generate a compatible name to the classic enviroment (Mac OS 9 or before). The length of file name is limited under 31 bytes in the classic enviroment.

UniqueNamer is useful for following purposes :

  • Generating a name of temporary files
  • Copying or Making a file without asking a user enter a file name.
  • Avoid opening a save-dialog, which interrupts workflows.
1.6.3 -- 2007.07.25
Read Me
Manual
Download
Dpendencies

StringEngine

StringEngine is a collection of text handling routines of AppleScript. Almost routines for usual tasks are included as follows.

  • replacing text
  • splitting text with a delimiter
  • joinning as a list of texts with a delimiters
  • Converting styled text into plain text
  • exchanging new line characters
  • stripping blank spaces
  • formatting text
  • managing AppleScript's text item delimiters
1.8.2 -- 2007.07.05
Read Me
Manual
Download
Dpendencies

This page was last built on Thu, Nov 26, 2009 ; 3:26:23 PM . Thanks for checking it out!