There are already a number of scripts and hints about creating new actions from an email or about linking into Yojimbo items in the notes field.
The script attached below tries to go one step further and to solve two problems:
- create a new action from any document on your hard disk
- retrieve the document from the note wherever you are when you connect to Tracks
This is very important for people with a 2+ machines setup (office +home +on_the_road, for example), because it happens a lot to have files connected to your projects scattered to different machines and locations.
I didn’t wanted to mess with Tracks database, so that I’ve decided that I’ll store all the docs on a webDAV server, in one folder, on the same machine with the Tracks app. Only the link to the uploaded doc will be stored into the Notes field of the new action.
The script does a number of things:
- checks if the Dav volume is mounted and it mounts it if not
- formats the link to the uploaded document by replacing spaces with
- uploads the file
- creates a new action, named to your liking, with a link to the uploaded document inside the notes field
- Growls notification
You need to read Reinier’s post here: http://www.rousette.org.uk/projects/forums/viewthread/75/ and to change the Tracks API so that notes can be added in the new action.
There are parts of the script wich are other people’s work, all the credits go accordingly. I am sure it can be improved, I am not a programmer. One way to go is to store emails as files on the webdav server
You can download it here:
http://jovialfish.com/aathanor/action_from_doc.scpt
(I will archive the script later on, until then please do not use Safari to download the script because you can’t:))
