resources for Alpha resources in Tcl tex and metafont resources macintosh port of devnag personal bibliography the tools page the main page

Extensions

  • Tcladdressbook: to manipulate the OSX AddressBook in Tcl.
  • Tclresource: an enhanced version for MacOSX of the resource Tcl command. Handles datafork resource files and adds useful subcommands.
  • TclAppleScript: implements on MacOSX the AppleScript Tcl command as a loadable extension
  • Tclgestalt: implements the ToolBox Gestalt() function in Tcl. Versions for OS8/9 Classic and for OSX.
  • Mac TclXml: a port to MacOS 8/9 of the TclXml package including the 'tclxml', 'tcldom', 'tcldompro', 'tclexpat', 'tclxml2' and 'tclxslt' extensions.
  • Mac tDOM: a port to MacOS 8/9 of the 'tDOM' XML package for Tcl.
  • Mac TclPro Libs: a port to the Macintosh of the TclPro extensions 'tclparser', 'tclcompiler' and 'tbcload'. Versions for OS8/9 and for OSX.

Scripts

  • extractAete.tcl: extract the AETE resource of an application and produce a human readable text file
  • aeteToXML.tcl: extract the AETE resource of an application and translate it to the XML format.

Books

Tcl/Tk - Apprentissage et référence

(in french)

Home

Back to the main page

 

UTILITIES FOR TCL

This page provides various general purpose Tcl extensions and scripts. The scripts are simple standalone scripts which can be run with Wish or Tclsh. Though they can be run on any platform they are very much related to tasks which are specific to Mac OS. The extensions are compiled shared libraries for the Macintosh. The source code is publicly available.

See also the Alpha Utilities page for Tcl resources written for the Alpha text editors.

 Tcladdressbook

 Description

 

Tcladdressbook is a Tcl extension defining a new Tcl command called addressbook which lets you manipulate the OSX AddressBook.

Under OSX (versions 10.2 or greater) every user has a single addressbook which all applications are allowed to share. The addressbook command has many subcommands such as addressbook create, addressbook persons, addressbook record, addressbook set etc. used to invoke the various actions to perform.

Note that this extension is useful only on Macintosh platforms with OSX System. Version 10.2 (aka Jaguar) or greater of the system is required.

See also the Tcladdressbook's Home Page.

 

 Usage

 

To load the extension in a Tcl script or from the Tcl console, use a 'package require' command, like this:

		package require addressbook
		    

Tcladdressbook is distributed with a help file containing the exact reference of all the subcommands in man format:

    man tcladdressbook
or in Html format

See also the Quick Start file which is a tutorial with basic usage examples.

 

 Download

Click here to download the most recent version of Tcladdressbook

TclAddressBook1.1.4.hqx

Binary releases (old and recent) of Tcladdressbook are also available on the SourceForge site in the download area of the project.

 

 Source code

Tcladdressbook is an open source project. Its code is publicly available and can be found on the SourceForge site.

The code is under CVS control. You can retrieve the latest stage of development using any CVS client. See instructions here.

You can also browse the cvs repository online.

 

 Bug reports and contributions

Bugs can be officially reported via the Bug Tracker of the project. You can also address feature requests and propose patches.

Code contributions (Tcl scripts making use of the Tcladdressbook extension) are very welcome. There is a Contribs directory for them in the Tcladdressbook project on SourceForge.

 

 TclResource

 Description

 

The resource Tcl command, defined on Macintosh platforms, used to be a built-in command on MacOS 7/8/9 but it is not anymore part of the Tcl language on OSX. This loadable extension makes it available now on OSX.

The command has been largely modified and enhanced: it can deal with datafork resource files and has several new useful subcommands:

  • resource attributes
  • resource fork
  • resource id
  • resource name
  • resource update

The command is fully backwards compatible with the original built-in resource command. The extension can be used with any Tcl interpreter on OSX such as Wish, tclsh or the AlphaX text editor.

The Tclresource project is an open source project. The source code is publicly available and it is distributed under the same license than Tcl itself. The main page for the Tclresource project is on SourceForge. You can retrieve the sources via CVS

 

 Usage

 

To load the extension in a Tcl script or from the Tcl console, use a 'package require' command, like this:

		package require resource
		    

Please read the documentation in the Help file. It is also included in the package.

 

 Download

 

Tclresource1.1.1.hqx (66k)

for use with MacOSX 10.2 or greater.

 

 Source code

 

Tclresource is an open source project. Its code is publicly available and can be found on the SourceForge site.

The code is under CVS control. You can retrieve the latest stage of development using any CVS client. See instructions here.

You can also browse the cvs repository online.

 

 Bug reports and contributions

 

Bugs can be officially reported via the Bug Tracker of the project. You can also address feature requests and propose patches.

 

 TclAppleScript

 Description

 

The TclAppleScript extension lets you communicate with the AppleScript OSA component to run AppleScripts from Tcl.

The AppleScript Tcl command, defined on Macintosh platforms, used to be a built-in command on MacOS 7/8/9 but it is not anymore part of the Tcl language on OSX. This loadable extension makes it available on OSX.

The command has been slightly modified in order to accomodate with particularities of the OSX system. It is fully backwards compatible though with the original built-in AppleScript command. The extension can be used with any Tcl interpreter on OSX such as Wish, tclsh or the AlphaX text editor.

The TclAppleScript project is an open source project and has now moved to the SourceForge site (see below).

 

 Usage

 

To load the extension in a Tcl script or from the Tcl console, use a 'package require' command, like this:

		package require Tclapplescript
		    

Please read the documentation in the Help file. It is also included in the package.

 

 Download

 

Tclapplescript1.0.hqx (33k)

for use with MacOSX 10.2 or greater.

Check for the most recent binaries on SourceForge in the download area of the TclAppleScript project.

 

 Source code

 

TclAppleScript is an open source project. Its code is publicly available and can be found on the SourceForge site.

The code is under CVS control. You can retrieve the latest stage of development using any CVS client. See instructions here.

You can also browse the cvs repository online.

 

 Bug reports and contributions

 

Bugs can be officially reported via the Bug Tracker of the project. You can also address feature requests and propose patches.

 

 TclGestalt

 Description

 

A Tcl extension implementing the ToolBox Gestalt() function. For more details, read the manual page.

 

 Usage

 

Load the library as usual with a 'package require' instruction like this:

    package require gestalt

It provides a new Tcl command called [gestalt] with the following syntax:

    gestalt selector

The selector is a four-char code. Use any of the admissible selector values (see the doc for various examples).

 

 Download

 

For use on Mac OS X: Tclgestalt.hqx (18k)

Source code: TclgestaltSrc.hqx (132k)

 

As a convenience, the old version for Mac OS 8 or 9 is still available:

TclgestaltClassic.sit (13k)

 

 MacTclPro Libs

 Description

 

This package contains the TclPro 'tclparser', 'tclcompiler' and 'tbcload' libraries compiled for the Macintosh. They can be used with any Tcl 8.4 interpreter such as Wish, tclsh or the text editors Alpha8 on MacOS Classic or AlphaX on MacOSX.

  • 'tclparser' provides the ability to parse Tcl instructions and scripts. It is used mainly by the TclPro debugging package and the TclPro checker package.
  • 'tclcompiler' lets you compile tcl scripts and applications into a bytecode representation for distribution, so that it keeps your users or customers from seeing and modifying your source code. Compiled scripts can be evaluated and executed by the tbcload command defined in the tbcload package.
  • 'tbcload' lets you evaluate scripts compiled with the 'tclcompiler' library.

 

Different versions of the libraries are available:

  • for system 8 or 9 as shlibs to put in the Extensions folder
  • for system OSX as dylibs to put in the Library or ~/Library folder

 

 Usage

 

To load them in a Tcl script or the Tcl console, use a 'package require' command, like this:

			 package require parser
			 package require compiler
			 package require tbcload
		    

Please read the info in the Readme file coming with this package.

 

 Download

 

MacTclProLibs-Classic.hqx (237k)

for use with MacOS 8 or 9.

MacTclProLibs-OSX.hqx (241k)

for use with MacOSX.

 

 MacTclXML

 Description

 

This is a complete port to the Macintosh of the TclXml package. It includes the 'tclxml', 'tcldom', 'tcldompro', 'tclexpat', 'tclxml2' and 'tclxslt' extensions compiled as shared libraries and the libraries of Tcl scripts coming with them. This version is for MacOS8/9 Classic: for MacOSX there is a port made by Daniel Steffen in the BI Tcl Distribution for OSX.

This package can be used with any Tcl 8.4 interpreter such as Wish, tclsh or the text editor Alpha8.

The TclXML project is a collection of tools and libraries for handling XML documents with the Tcl scripting language. It has Tcl, C based XML parsers, DOM interfaces and XSLT. The main page for the TclXML project is on SourceForge.

 

 Usage

 

To load them in a Tcl script or from the Tcl console, use a 'package require' command, like this:

			 package require xml
			 package require dom
			 package require xslt
		    

Please read the docs coming with this package.

 

 Download

 

MacTclXml2.5-Classic.hqx (1M)

for use with MacOS 8 or 9.

 

 Mac tDOM

 Description

 

This is a port to the Macintosh of the tDOM extension for XML data processing with Tcl. tDOM lets you manipulate XML within Tcl scripts. It has been built with the latest sources from CVS (as of 03/02/21).

This extension can be used with any Tcl 8.4 interpreter such as Wish, tclsh or the text editors Alpha8 on MacOS Classic or AlphaX on MacOSX. The distribution also provides the 'tnc' extension coming as a complement to tDOM.

tDOM was created and written by Jochen Loewer. The official tDOM homepage page is here. See also at tdom.org

 

 Usage

 

To load tDOM in a Tcl script or from the Tcl console, use a 'package require' command, like this:

			 package require tdom
			 package require tnc
		    

Please read the docs coming with this package.

 

 Download

 

MacTdom.0.7.7-Classic.hqx (422k)

for use with MacOS 8 or 9.

MacTdom.0.7.7-OSX.hqx (409k)

for use with MacOSX.

 

 extractAete.tcl

 Description

 

Translate the 'aete' (Apple Event Terminology) resource of an application into a human readable text file. This script can be run with Wish or Tclsh.

There is also a version for Alpha (version 7 and version 8).

 

 Usage

 

Please read the info in the file's header.

 

 Download

 

extractAeteWish.tcl.sit.hqx

 

 aeteToXML.tcl

 Description

 

Translate the 'aete' (Apple Event Terminology) resource of an application to XML format (eXtended Markup Language). This script can be run with Wish or Tclsh.

There is also a version for Alpha (version 8 or greater).

 

 Usage

 

Please read the info in the file's header.

 

 Download

 

aeteToXmlWish.tcl.sit.hqx

 

 

Send your comments to bdesgraupes@orange.fr

$Date: 2006/09/04 09:17:45 $