TaskPaper and Tasko sync scripts

Posted February 18, 2008 by Zsolt Benke in tasko taskpaper applescripts download sync script

Hi guys, I just wrote three applescripts to send your text from TaskPaper to an existing paper in Tasko or download a paper from Tasko directly to your TaskPaper document. I tested it under 10.5.2 with TaskPaper 1.0.3.

IMPORTANT: if you send a text to an exising Tasko paper, the script will overwrite the content of it.

How-to install:

  1. Download zip from here http://www.wyctim.com/stuff/taskosync.zip

  2. Copy scripts to the TaskPaper Script Folder ("TaskPaper/AppleScript Logo/Open Scripts Folder" menu)

  3. Go to your Tasko account, open the Settings tab and find your User ID number on the bottom of the page. Open the scripts in Script Editor, and replace the 0 in the first line (set userIdnum to 0) to your User ID number.

  4. Go back to your Tasko Settings, and under the User ID number you found your Token key (very long string). In the second line of the scripts (set tokenString to "your apikey"), replace the your apikey text with this string. Do not delete the commas. Save all 3 scripts.

  5. Open up TaskPaper and under the Scripts menu you found some new interesting command. Try it :)

If anybody have question, just ask me in this topic.

Update: I found a little bug. Please download the pack again.

PS: sorry for my english, I hope you can understand it. :)

tones - February 17, 2008 2:16 PM

Awesome - works perfectly for me (OSX 10.5.2/TP 1.0.3)

Many thanks for these scripts, T.

Peter Koechley - February 17, 2008 10:19 PM

Hi, thanks for making these scripts. I'm excited to start syncing.

But I downloaded these scripts and tried to make them work, and they didn't seem to work. I'm using 10.5.2 and TP 1.0.3, but when I added a task to either the Taskpaper-based list or the web-based list and then sync, nothing happened.

I made the changes, then selected the script under the script menu in Taskpaper.

Do the two lists need to have the same name?

Is the fact that I have a two-digit user id an issue?

Please advise, Peter

Zsolt Benke - February 18, 2008 5:01 AM

Hi Peter!

The list name not problem, but I don't know, why do you have two digit user ID. Are you replaced the api key in scripts?

Try to open the scripts in Script Editor and run from here. If you got an error please copy to here.

or

try to redownload the scripts, maybe you have the bug, what I found at yesterday.

Young Hoo - February 18, 2008 5:58 AM

Hi Zsolt,

Good to see you here : ) Thanks for great job.

But user id in Tasko is just auto incremented unique id, so it's just a number, not 3 digits fixed one. Actually, my account id is 1 : )

Zsolt Benke - February 18, 2008 6:37 AM

Hi Young!

Ok, I updated the first post. :)

Peter Koechley - February 18, 2008 6:47 AM

Thanks! It worked for me after I ran the scripts first in Script Editor. Now I can run them just from Quicksilver and they run fine.

It'd be nice if the scripts autoselected the name of the first list, so I could just hit return without having to select the paper first.

Best, Peter

Zsolt Benke - February 18, 2008 7:09 AM

You can easily modify the scripts for yourself. I want some new features to these scripts (some configuration option in the source, folder monitoring etc.), this is just the 1.0 first try. :)

Hilko - March 11, 2008 5:59 PM

The synching scripts themselves work fine, but I have another strange problem.

After I sync my tasks FROM Tasko TO taskpaper, there's a strange behavior that has something to do with the line breaks (I think):

Whenever I press the 'done' shortcut, it puts the @done on the NEXT line. What this means is that rather than marking the task as done, it gives it a comment on the next line saying '@done'.

On lines that were already marked as @done, when I press the archive shortcut key, it is supposed to add @project(), and move it to my archive. Instead, it does the previously mentioned thing: it adds @project() to the NEXT line, and then moves the task itself. I'm left with an orphaned @project().

Any ideas on what might cause this rather irritating behavior, and how I might solve it?

(other than that, kudos for taskodone! I'm using it on my iphone and when I don't have my computer at hand)

jesse - March 13, 2008 8:25 AM

This does sounds like a line ending issue. For now TaskPaper needs just '\n' line endings to work correctly. Eventually TaskPaper should be smarter and handle all types, but until then you'll need to clean up the line endings with some other text editor to get rid of this problem.

I don't know what it is, but if you are already using a script to do the synching, I'm sure there must be some unix command line utility that can clean up the lines for you as part of the script... can anyone help?

Peter Koechley - March 13, 2008 9:10 AM

Here's the way to solve a similar problem in the "Add To Taskpaper" script. I used this fix and it worked perfectly there, so maybe it has some application in these other AppleScripts?

http://code.google.com/p/add-to-taskpaper-scrip...

Peter

Topic's comments