43 Folders

43 Folders feed subscription icon - Shiny! Drowning in email? Try Inbox Zero to learn sane tips for dealing with high-volume email. And don’t miss the free Inbox Zero video. »

Login or register

Register for free on 43 Folders to comment on articles, post to our forum, customize your visits, and much more. Current users can login now.

Quicksilver: AppleScript to quickly add Entourage Tasks

Entourage - Fast Task.scpt

A hacker who wishes to remain anonymous has answered my prayers by creating a modest one-line AppleScript that lets you pipe input from Quicksilver into a new Entourage Task with zero cruft—no Category, no Project, no date, and no reminder. Perfect for fast capture any place, and something I’ve craved for over a year.

To install:

Entourage-Fast-Task

  1. Download the script, “Entourage - Fast Task.scpt
  2. Copy it to ~/Library/Application Support/Quicksilver/Actions/
  3. Restart Quicksilver (CTRL-CMD-Q)

To use (just one example):

  1. Invoke Quicksilver (usu. CTRL-space)
  2. Type “.” to get the variable input field
  3. Type “Test task
  4. TAB to the second pane
  5. Type until “Entourage - Fast Task” shows up
  6. Hit Return

Jump over to Entourage and you should have a nice new task sitting in your list. Note that the Quicksilver input, as ever, can come from practically anyplace; you can select text in Safari and “Send to Quicksilver” (CMD-Esc in most locations), etc.

Like I say, if you want all the “trimmings,” you should enter Tasks in Entourage as usual, but this is just terrific for capturing stuff quickly without changing modes. A minor godsend as far as I’m concerned.

(As ever with all my Quicksilver tips, I’m sure I’ve forgotten some critical element that makes this work on your end; if the Setup guide doesn’t answer your question, post a comment)


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Kucic.com » Blog Archive » Great Tool for the Ma's picture

[...] I stumbled across an...

[…] I stumbled across an application called quicksilver today while looking for some way to get tasks from entourage into an excel spreadsheet. This application takes organization and task simplification to a whole new level. Here is an introducation to Quicksilver via Macbreak. Guess Macbreak is now another feed I need to track in iTunes.  Here is a link about integrating Applescript into Quicksilver. Also ran across a website called codefetch. This site will warrent further checking when I have coding needs! […]

Merlin Mann's picture

Here’s a question for you...

Here’s a question for you AppleScript folks. If I wanted to pass the text to Entourage with a certian category attached to it (so I could, in this example, emulate an inbox), it seems like this should work for line 3…

tell application “Microsoft Entourage” to make new task with properties {name:t, category:”inbox”}

…but I’m getting no luck.

What would that line need to be to work correctly?

Would be cool, because then you could have a custom view that shows just “inbox” tasks—effectively creating a box of tasks that need to be processed regularly.

TIA

marm0t's picture

There has GOT to be...

There has GOT to be a band called Zero Cruft.

Merlin Mann's picture

"Hello, Cleveland!"...

“Hello, Cleveland!”

Steve Nelson's picture

It didn't work until I...

It didn’t work until I moved the script into ~/Library/Application Support/Quicksilver/Actions/ (per the Quicksilver docs at http://quicksilver.blacktree.com/docs/?page=Scripts ) instead of: ~/Library/Application Support/Quicksilver/Actions/ (per your instructions above)

Merlin Mann's picture

Thanks, Steve. Fixed in the...

Thanks, Steve. Fixed in the post.

Ryan Nelson's picture

Holy Crap! so *THATS* how you...

Holy Crap!

so THATS how you create your own actions in QS! I swear, i’ve been looking for that howto forever. (really, the QS documentation is it’s biggest weakness. I realize, though, that it’s god-like powers probably defy description, though.)

armed with this tidbit as a start, I can now hook directly to the Backpack API:

install this script, as described in the parent post, into ~/Library/Application Support/Quicksilver/Actions/ : (i’ve linked to the txt, ‘cause commenting messes up the formatting) http://www.ryan.net/misc/backpack/applescript.txt

…and install this shell script in someplace of your choice (and make sure the applescript has the proper path) (again, i’ve linked to the txt, ‘cause commenting messes up the formatting) http://www.ryan.net/misc/backpack/shellscript.txt

…and blam!

…i can type into quicksilver and put to-do items on my list, using the API, and not the roundabout “mail it onto backpack” quicksilver methods posted various places already.

woo!

Merlin Mann's picture

Note: you can also assign...

Note: you can also assign a key trigger to add this functionality with even less clicking. Here’s what the resulting panes look like:

http://pix.merlinmann.com/FastTaskTriggered.jpg

PaulT's picture

Can a script like this...

Can a script like this be created to post to iCal to-do’s as well? Would that be difficult?

Joe Hildebrand's picture

To assign a category in...

To assign a category in Entourage, try this (make sure the inbox category is created first):

using terms from application “Quicksilver” on process text t tell application “Microsoft Entourage” set cat to item 1 of (every category whose name is “inbox”) make new task with properties {name:t, category:cat} end tell end process text end using terms from

Joe Hildebrand's picture

For iCal, try this: using terms...

For iCal, try this:

using terms from application “Quicksilver” on process text t tell application “iCal” set cal to (item 1 of (every calendar whose writable is true)) make new todo at end of todos of cal with properties {summary:t} end tell end process text end using terms from

Jeff P.'s picture

This iCal script posted by...

This iCal script posted by Joe works great for adding to-do’s to iCal. One question though—I hate that it opens iCal if it’s not already open. Any way to avoid this?

Applescript Clueless — Jeff

Craig Canapari's picture

I don't seem to have...

I don’t seem to have an “Actions” folder— only a text file. How to proceed?

Jeff P.'s picture

I didn't have an Actions...

I didn’t have an Actions folder previously either; just create one with that name and put the script file in it. This won’t interfere with the already installed actions, don’t worry.

Joe Hildebrand's picture

Jeff P.: No. There's...

Jeff P.: No. There’s no way to not launch iCal. You could make the script check to see if iCal is running when it starts, and if it isn’t, close iCal when it’s done.

Merlin: how did you get that trigger to prompt you for text?

itchy's picture

Merlin, I might be completely...

Merlin,

I might be completely off on this one, but the linked applescript seems to be blank (showing up as 0 bytes in finder, blank in Script Editor and BBedit.

Any thoughts?

thanks and keep up the good work.

Scott Palmer's picture

Springboarding off a springboard, this...

Springboarding off a springboard, this script automatically sets a due date and a reminder of one day from now for your task in iCal. This helps me keep track, and won’t let me toss it in and forget it. I have 2 scripts, one that sets the reminder and one that doesn’t.

using terms from application “Quicksilver” on process text t tell application “iCal” set cal to (item 1 of (every calendar whose writable is true)) set newTodo to make new todo at the end of todos of cal tell newTodo set summary to t set due date to current date set myReminder to make new display alarm at the end of display alarms of newTodo tell myReminder set trigger date to ((current date) + 86400) end tell end tell end tell end process text end using terms from

Merlin Mann's picture

Sorry about that, Itchy. Works...

Sorry about that, Itchy. Works ok from here.

Here’s the guts, if you want to DIY. :)

using terms from application “Quicksilver” on process text t tell application “Microsoft Entourage” to make new task with properties {name:t} end process text end using terms from

itchy's picture

Works great now. thanks for...

Works great now. thanks for the quick response and the great script.

G's picture

Using the original as a...

Using the original as a starting point here is a slightly more complicated version that adds a “choose from” dialog for categories (use arrow keys and return/enter for keyboard control) and support for LaunchBar. Just cut and paste into Script Editor and save as a script:

(* Note: This was written and tested on Tiger with Entourage 2004, LaunchBar 4, and Quicksilver beta 42. *)

—If invoked from Quicksilver using terms from application “Quicksilver” on process text theName my main(theName) end process text end using terms from

—If invoked from LaunchBar on handlestring(theName) my main(theName) end handlestring

—The main functionality of this script on main(theName) —First we need the name of the front app before QS or LB were summoned tell application “System Events” set frontApp to (name of (processes whose frontmost is true)) as text end tell —get the categories from Entourage tell application “Microsoft Entourage” set catList to the name of every category end tell —choose the category from the current app tell application frontApp set selectedCategory to (choose from list catList with title “Select Category”) as string end tell —create the note tell application “Microsoft Entourage” set chosenCategory to category selectedCategory set newNote to make new task with properties {name:theName, category:chosenCategory} end tell end main

Jon Swartz's picture

Anyone have a link to...

Anyone have a link to a reference guide for Entourage Applescript? It looks like Microsoft used to make one available - see http://www.webmastermac.com/article.php/20040117014023822, “Microsoft Entourage AppleScript Reference” - but the link no longer works and I can’t find the guide anywhere.

Or are people just guessing field names, and copying/pasting from other scripts, when they write scripts against Entourage? :)

My particular problem right now is that I can’t seem to populate the “notes” field for a task from an entourage script. I tried the obvious

{name:theName,notes:theNotes}

but notes ends up blank.

TIA for any help you can provide!

G's picture

The property you are looking...

The property you are looking for is called content. Example: content:someString

As for the ref docs use the Entourage’s AppleScript dictionary, from Script Editor: File -> Open Dictionary

KGTD keeps getting better | 43 Folders's picture

[...] The marquee feature for...

[…] The marquee feature for us Quicksilver flying monkeys is the addition of an Applescript for adding to a KGTD inbox from anywhere. I swear by these sorts of scripts (and currently use about 7 of them to generate Category-based Tasks in Entourage). Note that in the image above, you’re seeing where I’ve created a Quicksilver trigger (F8) for the script plus its action via “KGTD Inbox > Process Text…” For what it’s worth, this is a bit like putting your steroids on steroids. […]

 
EXPLORE 43Folders THE GOOD STUFF

An Oblique Strategy:
Discard an axiom


STAY IN THE LOOP:

Subscribe with Google Reader

Subscribe on Netvibes

Add to Technorati Favorites

Subscribe on Pageflakes

Add RSS feed

The Podcast Feed

Inbox Zero

The original 43 Folders series looking at the skills, tools, and attitude needed to empty your email inbox — and then keep it that way. Don’t miss the free video of Merlin’s Inbox Zero presentation.

Get Started with ‘GTD’

David Allen’s popular productivity book and the system on which it’s based help turn ‘stuff’ into actions that support valuable outcomes.