Books UPX Alpha Tcl R Tools TexMf Sanskrit Home

Extensions

Books

Tcl/Tk - Apprentissage et référence

(in french)


UTILITIES FOR TCL

This page provides various general purpose Tcl extensions. They are very much related to the Mac OS. The extensions are compiled shared libraries. 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

 

Binary releases (old and recent) of Tcladdressbook are available at SourceForge 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 Subversion control. You can browse the repository online.

 

 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 Subversion

 

 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

 

Binary releases (old and recent) of Tclresource are available at SourceForge in the download area of the project.

 

 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 Subversion control. You can browse the repository online.

 

 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

 

Binary releases (old and recent) of TclAppleScript are available at SourceForge in the download area of the 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 Subversion control. You can browse the repository online.

 

 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

 

Binary releases (old and recent) of TclGestalt are available at SourceForge in the download area of the project.

 

 Source code

 

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

The code is under Subversion control. You can browse the repository online.

 

Date: 2013-09-20 10:51:29