Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Usage  >  Tips and Tricks  >  Thread
   
 
Create a new action from any document
 
aathanor
Posted: 18 January 2007 06:48 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  5
Joined  2007-01-03

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:))

Profile
 
Reinier Balt
Posted: 19 January 2007 02:19 PM   [ Ignore ]   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  551
Joined  2006-10-05

Nice! I would almost like to switch to apple for this grin

Using Outlook you can save your email to a .msg file. double-clicking it will open it in Outlook so you can process it further from there. I’ve looked at Evolution. It saves to ISO 8859 mail text format (according to file-command), but it cannot be opened by double clicking (mime settings?). Don’t know what is possible under OS X though.

You could place this file on the webdav server. Or, you can try to save the email that is filtered using my email-script on the webdav server automagically! It is received in ISO 8859 format…

Reinier

Profile
 
   
 
 
‹‹ How do you deal with daily tasks?      How do you handle Tracks and Email separately? ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.2 (20091002)
Script Executed in 0.1242 seconds

Atom Feed
RSS 2.0