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. 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. start(start date) (can be shortened as s(date))Ĭontexts and project specifiers should not include spaces.due(due date) (can be shortened as d(date)).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. OTask uses a custom syntax to allow entry of the various elements of an action in one line of text. If you’re still on board, here are the docs, and the script is on GitHub. You can install each by using gem install gemname, and you may have to run the command with sudo, depending on your system’s permissions. You also need the gems ‘chronic’ and ‘amatch’. I still haven’t figured out if that’s part of the default OS X install or not, but if you have Developer tools, you’ve got it. You need a few things before this will even think about running for you. I took the good parts of it, concentrated on OmniFocus and converted it to appscript in short time. I had an AppleScript/Ruby monstrosity that actually worked with TaskPaper, The Hit List, Things and OmniFocus, but that one got out of hand. It’s frustrating that I can’t just hand you this script without a list of requirements and dependencies, but I’m going share it anyway, just to show off some of the appscript’s capabilities. I frequently use system calls to osascript to do this, and I’ve shied away from scripting bridges in the past because they make things much harder to share and distribute. I thought it might be time to dig this up and post it.Ī reader named Tony left a comment on my Duplicating Safari browsing sessions post, recommending that I try out appscript for my AppleScript bridging needs. I’ve been sitting on this one for a while, until I got a request from Patrick regarding an OmniFocus CLI and LaunchBar. This is just faster and better for me when I’m working with less-than-optimal amounts of sleep. You can accomplish the same with an ls *.ext, spot the file and open filename.ext. This is a script born of laziness (so many good ones are, though). If you run oft with no arguments, it will read a (partial) extension from a prompt. You can cancel, select a single file or “Open ALL” from that menu. If there is more than one result, it gives you a numeric menu to select the file you want to open. I don’t always know the name of the project in the folder, but if I run oft xco it will open it without my having to search. My most obvious use case is Xcode projects, where I may have dozens (and dozens) of files, but there’s only one. When run, it looks in the current directory for files with extensions that match (or partially match) the first argument and opens them. It’s called oft, which stands for Open File Type, and can be used as a standalone shell script or as a function in your. Here’s another simple Bash function that I’ve used so much recently I thought I should share.
0 Comments
Leave a Reply. |