Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updating gem

  • Loading branch information...
commit 21e49c1a5d497603fb6a6581b748ed0a662b7102 1 parent cda3aee
@ttscoff authored
View
53 README.txt
@@ -4,9 +4,7 @@
== DESCRIPTION:
-[appscript]: http://appscript.sourceforge.net/
-
-A CLI for OmniFocus. I had an AppleScript/Ruby monstrosity that actually worked with TaskPaper, The Hit List, Things and OmniFocus, but that one got out of hand. I took the good parts of it, concentrated on OmniFocus and converted it to [appscript][]. The result is OTask.
+A CLI for OmniFocus. I had an AppleScript/Ruby monstrosity that actually worked with TaskPaper, The Hit List, Things and OmniFocus, but that one got out of hand. I took the good parts of it, concentrated on OmniFocus and converted it to `appscript`. The result is OTask.
== FEATURES/PROBLEMS:
@@ -14,19 +12,19 @@ A CLI for OmniFocus. I had an AppleScript/Ruby monstrosity that actually worked
* TextMate style fragment matching for projects and contexts
* Include notes inline or by piping in
* Optional Growl notifications
-- - -
+
* No repeating tasks
== SYNOPSIS:
OTask uses a custom syntax to allow entry of the various elements of an action in one line of text. The following formats can be used anywhere in the line, with the exception of the flag (!) which must be the last character on the line, preceded by a space.
- * @context (fragment, no spaces)
- * \#project (fragment, no spaces)
+ * @context (fragment, no spaces)
+ * #project (fragment, no spaces)
* due(due date) (can be shortened as d(date))
* start(start date) (can be shortened as s(date))
* (notes)
- * ! (sets task as flagged)
+ * ! (sets task as flagged)
Contexts and project specifiers should not include spaces. The algorithm that is used will find the best match for the string you give it, so you only need to include enough of it to distinguish it from other contexts or projects. For example, if I were going to put an action directly into my Markdown QuickTags folder, I could just use "#mdqt" and it will find it. "@corr" will get me the "correspondence" context.
@@ -39,6 +37,47 @@ Dates are entered in natural language format. You can type "tomorrow," "in 3 day
-V, --verbose Verbose output
-g, --growl Use Growl for feedback
+### Example usage
+
+ $ otask "Write a letter to mom"
+
+This will put a task into your inbox with the name "Write a letter to mom." Nothing else will be set, it will wait there for you to pick it up.
+
+ $ otask -g "Pick up the kids from school @err #single due(today 3pm) !"
+
+This creates a new task in a project called Single Tasks, with a context of "errands", a due date of 3pm on the current day, and flags the task.
+
+The task will go to your inbox by default, and--if provided--project and context will be set. Your settings for automatic cleanup will determine what happens after that. Task elements not specified are left unset.
+
+The `-g` parameter gives us our feedback via Growl, which is handy if you're calling it from a background script or application launcher like Quicksilver or LaunchBar.
+
+ $ otask "Brainstorm for the morning meeting (Bill had some ideas, it might be worth checking in with him this afternoon) d(tomorrow 8am) #hipstartup @think"
+
+This will create a task with a note. Everything in parenthesis is removed from the task name and placed into the notes of the action, sans parenthesis. Note that the due date prefix can be shortened to just "d," (and the start date prefix can be just "s").
+
+OTask looks for notes in parenthesis, but it can also receive piped input from other applications as a note for the task. If you wanted to include text from a file, the output of a command or the plain-text contents of your clipboard, you can just pipe the output into the command, specifying the rest of the options as usual.
+
+ $ pbpaste | otask "Notes from the morning meeting @ref"
+
+That would take the current contents of your clipboard and make them the attached note on the "Notes from the morning meeting" task (with the context "reference").
+
+#### Calling from LaunchBar (et al.)
+
+You can do this with any app that can run a script with input, or call it from automated scripts if you could think of a reason to. Below is the AppleScript for a LaunchBar action. Create a new script in AppleScript Editor and paste the code in. Edit the path in the last function to point to wherever you put the otask script. Save the AppleScript as OTask.scpt in `~/Library/Application Support/LaunchBar/Actions`.
+
+You'll find the Action in LaunchBar after it indexes. Type 'ota' (or as much as you need to get it to come up) and then press space bar. Use the syntax shown above to write out your action and its elements, but leave out the 'otask' part and any parameters. Hit return and Growl (you have it [installed, right?](http://growl.info)) will tell you what's up.
+
+ on handle_string(actionString)
+ if (length of actionString is not 0) then
+ my runRubyScript(actionString)
+ end if
+ open location "x-launchbar:hide"
+ end handle_string
+
+ on runRubyScript(action)
+ set res to do shell script "$HOME/scripts/otask.rb -g \"" & action & "\""
+ end runRubyScript
+
== REQUIREMENTS:
* rb-appscript
View
2  lib/otask.rb
@@ -1,3 +1,3 @@
class Otask
- VERSION = "1.0.0"
+ VERSION = "0.2.0"
end
View
BIN  pkg/otask-0.2.gem
Binary file not shown
View
53 pkg/otask-0.2/README.txt
@@ -4,9 +4,7 @@
== DESCRIPTION:
-[appscript]: http://appscript.sourceforge.net/
-
-A CLI for OmniFocus. I had an AppleScript/Ruby monstrosity that actually worked with TaskPaper, The Hit List, Things and OmniFocus, but that one got out of hand. I took the good parts of it, concentrated on OmniFocus and converted it to [appscript][]. The result is OTask.
+A CLI for OmniFocus. I had an AppleScript/Ruby monstrosity that actually worked with TaskPaper, The Hit List, Things and OmniFocus, but that one got out of hand. I took the good parts of it, concentrated on OmniFocus and converted it to `appscript`. The result is OTask.
== FEATURES/PROBLEMS:
@@ -14,19 +12,19 @@ A CLI for OmniFocus. I had an AppleScript/Ruby monstrosity that actually worked
* TextMate style fragment matching for projects and contexts
* Include notes inline or by piping in
* Optional Growl notifications
-- - -
+
* No repeating tasks
== SYNOPSIS:
OTask uses a custom syntax to allow entry of the various elements of an action in one line of text. The following formats can be used anywhere in the line, with the exception of the flag (!) which must be the last character on the line, preceded by a space.
- * @context (fragment, no spaces)
- * \#project (fragment, no spaces)
+ * @context (fragment, no spaces)
+ * #project (fragment, no spaces)
* due(due date) (can be shortened as d(date))
* start(start date) (can be shortened as s(date))
* (notes)
- * ! (sets task as flagged)
+ * ! (sets task as flagged)
Contexts and project specifiers should not include spaces. The algorithm that is used will find the best match for the string you give it, so you only need to include enough of it to distinguish it from other contexts or projects. For example, if I were going to put an action directly into my Markdown QuickTags folder, I could just use "#mdqt" and it will find it. "@corr" will get me the "correspondence" context.
@@ -39,6 +37,47 @@ Dates are entered in natural language format. You can type "tomorrow," "in 3 day
-V, --verbose Verbose output
-g, --growl Use Growl for feedback
+### Example usage
+
+ $ otask "Write a letter to mom"
+
+This will put a task into your inbox with the name "Write a letter to mom." Nothing else will be set, it will wait there for you to pick it up.
+
+ $ otask -g "Pick up the kids from school @err #single due(today 3pm) !"
+
+This creates a new task in a project called Single Tasks, with a context of "errands", a due date of 3pm on the current day, and flags the task.
+
+The task will go to your inbox by default, and--if provided--project and context will be set. Your settings for automatic cleanup will determine what happens after that. Task elements not specified are left unset.
+
+The `-g` parameter gives us our feedback via Growl, which is handy if you're calling it from a background script or application launcher like Quicksilver or LaunchBar.
+
+ $ otask "Brainstorm for the morning meeting (Bill had some ideas, it might be worth checking in with him this afternoon) d(tomorrow 8am) #hipstartup @think"
+
+This will create a task with a note. Everything in parenthesis is removed from the task name and placed into the notes of the action, sans parenthesis. Note that the due date prefix can be shortened to just "d," (and the start date prefix can be just "s").
+
+OTask looks for notes in parenthesis, but it can also receive piped input from other applications as a note for the task. If you wanted to include text from a file, the output of a command or the plain-text contents of your clipboard, you can just pipe the output into the command, specifying the rest of the options as usual.
+
+ $ pbpaste | otask "Notes from the morning meeting @ref"
+
+That would take the current contents of your clipboard and make them the attached note on the "Notes from the morning meeting" task (with the context "reference").
+
+#### Calling from LaunchBar (et al.)
+
+You can do this with any app that can run a script with input, or call it from automated scripts if you could think of a reason to. Below is the AppleScript for a LaunchBar action. Create a new script in AppleScript Editor and paste the code in. Edit the path in the last function to point to wherever you put the otask script. Save the AppleScript as OTask.scpt in `~/Library/Application Support/LaunchBar/Actions`.
+
+You'll find the Action in LaunchBar after it indexes. Type 'ota' (or as much as you need to get it to come up) and then press space bar. Use the syntax shown above to write out your action and its elements, but leave out the 'otask' part and any parameters. Hit return and Growl (you have it [installed, right?](http://growl.info)) will tell you what's up.
+
+ on handle_string(actionString)
+ if (length of actionString is not 0) then
+ my runRubyScript(actionString)
+ end if
+ open location "x-launchbar:hide"
+ end handle_string
+
+ on runRubyScript(action)
+ set res to do shell script "$HOME/scripts/otask.rb -g \"" & action & "\""
+ end runRubyScript
+
== REQUIREMENTS:
* rb-appscript
View
2  pkg/otask-0.2/lib/otask.rb
@@ -1,3 +1,3 @@
class Otask
- VERSION = "1.0.0"
+ VERSION = "0.2.0"
end
Please sign in to comment.
Something went wrong with that request. Please try again.