![]() |
||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||
List & Record Tools 1.0.5Download Version 1.0.5 (176K) The List & Record Tools Scripting Addition allows AppleScript to perform set logic on AppleScript lists and to manipulate the contents of AppleScript records. With List & Record Tools you can dynamically access record properties not known at compile-time. Credits/LegalTHIS SOFTWARE IS PROVIDED AS-IS, WITHOUT WARRANTY OF ANY KIND. THE AUTHOR DISCLAIMS ANY DAMAGES THAT MAY RESULT FROM THE USE OR MISUSE OF THIS SOFTWARE. THIS SOFTWARE IS COPYRIGHT © 2006 LATE NIGHT SOFTWARE LTD. & MARK ALLDRITT. YOU MAY USE AND/OR DISTRIBUTE THE SOFTWARE WITHOUT RESTRICTION. IF YOU BUNDLE THE SOFTWARE WITH ANY COMMERCIAL OFFERING, YOU MUST DISPLAY THIS COPYRIGHT NOTICE IN THE SOFTWARE'S DOCUMENTATION AND/OR ABOUT BOX. System RequirementsThe List & Record Tools scripting addition requires Mac OS X 10.3.9 or later. Installation InstructionsTo install the List & Record Tools scripting addition on Mac OS X systems:
Getting StartedTo view the List & Record Tools dictionary (that lists all the commands and their options) just drop the List & Record Tools.osax file onto your favorite script editor. The following are some brief examples illustrating how the List & Record Tools scripting addition can be used. Record ProcessingOne of AppleScript's major limitations is that it cannot dynamically access items in records – record keys must be known at compile time. The List & Record Tools scripting addition provides a series of commands for accessing records in a dynamic fashion. AppleScript records can contain properties and user properties. A property is defined by an application through its dictionary and is represented internally via a 4-character code. A user property is defined within AppleScript. For example, name is a term defined by AppleScript and many applications. The code {name:"Mark"} creates a record containing a property with the 4-character code 'pnam' and the value "Mark". The term myAge is not defined in any dictionary and creates a user property when used in a record: (e.g. {myAge:42}). Accessing Properties4 commands are provided for working with properties. You can get, set, or delete properties in a record, and you can get the 4-character IDs of all the properties in a record:
Accessing User Properties4 commands are provided for working with user properties. You can get, set, or delete user properties in a record, and you can get the names of all the user properties in a record. NOTE: AppleScript converts user property names to lower case, unless the |Name| notation is used.
List ProcessingThe List & Record Tools scripting addition provides three commands for treating AppleScript lists as sets. These commands were originally part of the now discontinued LNS Scripting Additions. We have received frequent requests to provide them for Mac OS X. Set Intersection (return all items that are common to two lists)Here's an example involving integers where the command returns only those integer values common to both lists:
This command can handle other data types such as strings, dates, etc.
For strings, it honors AppleScript's considering case, whitespace, hyphonation. Set Difference (return items that are not common to two lists)Here's an example involving integers where the command returns only those values that are not common to both lists:
This command can handle other data types such as strings, dates, etc. For strings, it honors AppleScript's considering case, whitespace, hyphonation. Set Union (return all unique items from both lists)Here's a simple example involving numbers where the command returns unique values from both lists:
Like the intersection and difference commands, this command honors AppleScript's considering case, whitespace, hyphonation. Change History/Release Notes1.0.5 June 7, 2006
1.0.4 April 21, 2006
1.0.3 March 31, 2006
1.0.2 August 28, 2005
1.0.1 February 7, 2005
|
||||||||||||||||||||||||||||||||||||||||||||||