Scripting Intaglio

Click on a menu title above for a detailed explanation of that menu's commands.
All graphic operations in Intaglio can be performed via AppleScript. In addition, any graphic operation performed within Intaglio is recorded to AppleScript. This means you don't have to remember the exact syntax for any particular operation, you can just turn on recording in AppleScript and perform the operation in Intaglio to get a script that will perform that operation again. If you wish you can modify this script to perform a slightly different operation or repeat it several times.

Scripts can be executed directly from within Intaglio and can be added to the script menu for easy access.

Tips and Tricks

  • If you don't know how to express something you want to do in AppleScript turn on recording in the Script Editor and perform a similar operation in Intaglio. You actions will be translated to a new script in the Script Editor that you can adjust to perform exactly what you want it to do.

  • AppleScript defines the term "move" to mean "change the order" of an object. For example, "move the last graphic to the beginning" will bring the rearmost graphic of the current document to the front of all graphics in that document. Intaglio uses the term "translate" to mean "change the location" of an object. For example, "translate the first path by {20.0, 0.0}" will shift the location of the front-most path 20 points to the right.

  • When recording a script, Intaglio refers to objects by a unique ID rather than by another means such as the object's order. This allows Intaglio to always keep track of the specific object even if it moves, but it also means that the script created will only run if that object continues to exist. For example when recording, you might get the script "set stroke width of graphic id 1 of document id 1 to 10.0". Note this refers to a graphic and a document both having an id of one. This script will only set the stroke width of the first graphic created in the first document opened when running Intaglio. If the document is closed or the first graphic is deleted the script will fail. For more flexibility you could modify this script to read "set the stroke width of path 1 to 10" which would set the stroke width of the front-most path of the current document.

  • There are several infrequently used settings in Intaglio that can only be accessed by running a script. Example scripts for many of these settings are provided in the "Samples" folder included with Intaglio. If you require regular access to some of these settings, consider adding the script to the script menu for easy access.

    These settings include:
    • Display Resolution — the resolution of the computer screen (in dots/inch). The Macintosh assumes all screens are 72 dpi but this hasn't been true for some time. Use this setting to adjust the size of graphics displayed on the screen with what you will see on a printer. If you set the display resolution of a document, that value will be used on any computer where the document is displayed. If you don't set the display resolution of the document, or set it to zero, the display resolution stored in the preferences for each Intaglio user will be used.
    • Initial Window Position — is the position on the screen where new document windows will be placed if no other document windows are open. If one or more document windows are already open, all new windows will be staggered from the open window(s). The default value (-1, -1) causes initial windows to use the standard Macintosh placement mechanism.
    • Line Direction — is a property of a text block that may override the default system line direction.
    • Undo Levels — allows you to control the number of operations saved to be undone. The default value zero, causes all operations to be saved until the document is closed.