Ted Leung on the air
Ted Leung on the air: Open Source, Java, Python, and ...
Thu, 21 Oct 2004
Getting Things Done with QuickSilver and OmniOutliner

I read Merlin's tip on using QuickSilver's append to file command to manage a Getting Things Done inbox list. My lists are outlines in OmniOutliner, but I wanted to be able to do the same thing. Below is an AppleScript that you can invoke from QuickSilver, which will take the contents of the clipboard and append it to the children of a topic named "@Inbox". I've installed it in a directory that is part of my QuickSilver catalog, and the activation is as follows:

  1. Trigger QuickSilver
  2. Hit "." and type the text of the new inbox item into the text input window
  3. Do Command-A Command-C to select that text and paste it onto the clipboard
  4. activate the script to create the new inbox item.

Here's the code for the script:

-- can copy to clipboard and have script get from there

on appendClipboardToRow(doc, t)
	tell application "OmniOutliner"
		repeat with r in rows of doc
			if topic of r is t then
				exit repeat
			end if
		end repeat
		--	set r to row 1 of doc
		set l to last child of r
		set n to make child at after l -- really want to do after
		set topic of n to the clipboard
	end tell
end appendClipboardToRow

tell application "OmniOutliner"
	set d to document "Next Actions.ooutline"
end tell

appendClipboardToRow(d, "@Inbox")

It's not ideal that I have to load the text into the clipboard but I couldn't figure out how to hook up the text in the QuickSilver input box and the AppleScript. In an ideal world, I could enter text into the text box, hit tab to select the "run shell script with standard input" command which would use the text as the standard input to a script (you could tab one more time and supply script arguments to be fancy). Unfortunately no such command exists.

So here's a question for the group/web mind. Is there a better way to do this?

[12:20] | [computers/operating_systems/macosx] | # | TB | F | G | 11 Comments | Other blogs commenting on this post
Sort of a left turn from OmniOutliner and QuickSilver, but Gus' VoodooPad 2.0beta has a nifty feature of "strike out and move to bottom of the page" which I'm using for my lists pretty effectively. (control-command-delete)
Posted by Joe at Wed Oct 20 23:25:16 2004


Maybe you should try osasubr. I have zero experience with applescript, but I'm working on it. I'm pretty sure this is the most used way to get command line arguments into an applescript (I remember the subroutine thing)
Posted by Leland Johnson at Fri Oct 22 02:02:16 2004









You can subscribe to an RSS feed of the comments for this blog: RSS Feed for comments

Add a comment here:

You can use some HTML tags in the comment text:
To insert a URI, just type it -- no need to write an anchor tag.
Allowable html tags are: <a href>, <em>, <i>, <b>, <blockquote>, <br/>, <p>, <code>, <pre>, <cite>, <sub> and <sup>.

You can also use some Wiki style:
URI => [uri title]
<em> => _emphasized text_
<b> => *bold text*
Ordered list => consecutive lines starting spaces and an asterisk

Name:


E-mail:


URL:


Comment:


Remember my info?


twl JPG

About

Ted Leung FOAF Explorer

I work at the Open Source Applications Foundation (OSAF).
The opinions expressed here are entirely my own, not those of my employer.

Creative Commons License
This work is licensed under a Creative Commons License.

Now available!
Professional XML Development with Apache Tools : Xerces, Xalan, FOP, Cocoon, Axis, Xindice
Technorati Profile
PGP Key Fingerprint
My del.icio.us Bookmarks
My Flickr Photos


Syndicate
RSS 2.0 xml GIF
Comments (RSS 2.0) xml GIF
Atom 0.3 feed
Feedburner'ed RSS feed

< October 2004 >
SuMoTuWeThFrSa
      1 2
3 4 5 6 7 8 9
10111213141516
17181920212223
24252627282930
31      

Archives
2006
2005
2004
2003

Articles
Macintosh Tips and Tricks

Search
Lucene
Blogs nearby
geourl PNG

Categories
/ (1567)
  books/ (33)
  computers/ (62)
    hardware/ (15)
    internet/ (58)
      mail/ (11)
      microcontent/ (58)
      weblogs/ (174)
        pyblosxom/ (36)
      www/ (25)
    open_source/ (145)
      asf/ (53)
      osaf/ (32)
        chandler/ (35)
        cosmo/ (1)
    operating_systems/ (16)
      linux/ (9)
        debian/ (15)
        ubuntu/ (2)
      macosx/ (101)
        tips/ (25)
      windows_xp/ (4)
    programming/ (156)
      clr/ (1)
      dotnet/ (13)
      java/ (71)
        eclipse/ (22)
      lisp/ (34)
      python/ (86)
      smalltalk/ (4)
      xml/ (18)
    research/ (1)
    security/ (4)
    wireless/ (1)
  culture/ (10)
    film/ (8)
    music/ (6)
  education/ (13)
  family/ (17)
  gadgets/ (24)
  misc/ (47)
  people/ (18)
  photography/ (25)
    pictures/ (12)
  places/ (3)
    us/ (0)
      wa/ (2)
        bainbridge_island/ (17)
        seattle/ (13)
  skating/ (6)
  society/ (20)



[Valid RSS]

del.icio.us linkblog

www.flickr.com

Blogroll

java.blogs
Listed on BlogShares

Locations of visitors to this page
Where are visitors to this page?


pyblosxom GIF