TaskInsight Help

Introduction

Getting Started

Create and Edit Tasks

Timeline View

Search Tasks

Sort Tasks

Speech Commands

Import and Export Text

Document Settings

Tips

Keyboard Shortcuts

Toolbar Configuration

AppleScript Support

Support Online

System Requirements

Acknowledgements

TaskInsight: AppleScript Scripting

AppleScript Support

AppleScript can be used to change properties of TaskInsight documents, such as various Document Settings, task properties and task views. Tasks can be created and modified with AppleScript. Sample AppleScript scripts for TaskInsight can be downloaded from the Imaja TaskInsight web site.

To see the AppleScript dictionary describing TaskInsight's objects and properties, open TaskInsight with the AppleScript Editor application. One way to do this is to drag and drop the TaskInsight application icon to the AppleScript Editor application icon in the Finder or the Dock. TaskInsight is normally installed into your Applications directory. Another way to open the dictionary with Open Dictionary in the File menu in the AppleScript Editor application.

A number of demonstration and utility AppleScript scripts are available at the TaskInsight web site at http://www.imaja.com/taskinsight.

Sample AppleScript
Change Some Properties of the Topmost Document

The following AppleScript sets various properties of the frontmost TaskInsight document.

tell application "TaskInsight"
    with timeout of 60 * 60 seconds
    tell document 1
        set grid line width to 1
        set show dates in timeline to true
        set show today line to true
        set show grid lines to true
        set list view row padding to 1
        set timeline left margin to 250
        set timeline right margin to 250
        set timeline vertical spacing to 10
        set intercell horizontal spacing to 5
        set intercell vertical spacing to 5
    end tell
    end timeout
end tell

                

Sample AppleScript:
Create a TaskInsight Document and Add Events

The following AppleScript creates a new untitled document and adds some events and sets their properties. Then it switches to the Timeline view, makes the text larger zooms in on the time scale.

tell application "TaskInsight"
    with timeout of 60 * 60 seconds
        set theDoc to make new document
        tell document 1
            set theTask to make new task at end
            set task text of theTask to "Add basic support for AppleScript"
            set start date of theTask to date "Wednesday, June 15, 2011 9:00:00 AM"
            set due date of theTask to date "Wednesday, June 22, 2011 5:00:00 PM"
            set label of theTask to "scripting"
            set priority of theTask to 1

            set theTask to make new task at end
            set task text of theTask to "Write sample AppleScript scripts"
            set start date of theTask to date "Wednesday, June 22, 2011 9:00:00 AM"
            set due date of theTask to date "Saturday, June 25, 2011 5:00:00 PM"
            set label of theTask to "scripting"
            set priority of theTask to 2

            set theTask to make new task at end
            set task text of theTask to "Add script help and sample script library"
            set start date of theTask to date "Sunday, June 26, 2011 9:00:00 AM"
            set due date of theTask to date "Thursday, June 30, 2011 5:00:00 PM"
            set label of theTask to "scripting"
            set priority of theTask to 3

            view as timeline
            make text larger
            make text larger
            zoom in
            go to today
        end tell
    end timeout
end tell
                

www.imaja.com/taskinsight/

Copyright © 2011-2015 - imaja - greg jalbert. All rights reserved.