AppleScript

With Things 1.1, Applescript integration is now fully supported.

Placing user contributed scripts in the Wiki seemed clunky to me, so I’m making a place on this site to place the best scripts along with full installation instructions and possible screencasts on using each of them.

Guide

Cultured Code published the Things AppleScript Guide after 1.1. It is available and is a complete reference and point of example for the basic building blocks of interacting with Things via AppleScript.

Installing and running scripts

The Things AppleScript Guide doesn’t currently contain information about how to write, install, or run a script. Until that’s added, here’s a brief description:

To enable the system Script menu:

Launch /Applications/AppleScript/AppleScript Utility.

Select “Show Script menu in menu bar” if it’s not already selected.

Quit AppleScript Utility.

A scroll icon appears in your menu bar (if it wasn’t there already); that’s the script menu.

To use a script from this site:

Copy the source code of the script by highlighting it all and hitting CMD-C

Click on the magnifying glass in the upper right and type “Script Editor”

Paste the script

To run the script, click the Run button.

To write your own script:

In /Applications/AppleScript on your Mac, launch the Script Editor application.

Type a script, or paste in source code that you’ve copied from elsewhere.

Run the script by clicking the Run button. Correct any errors.

Repeat step 3 until the script works.

To run a script from using a keyboard shortcut (from within Things or elsewhere):

Download or write a script.

Use a keyboard shortcut utility to assign a keyboard shortcut to running the script.

To install a script in the system Scripts menu:

Save the script if you haven’t already done so.

Copy the .scpt file to ~/Library/Scripts/Applications/Mail (or other folder as appropriate for the application where you want the script to appear).

In Mail (or other application), open the Scripts menu and select the new script.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>