My First Applescript
Well… I spent a week at Apple Connect 2010 and learned a buttload!!
So, when I got home… what’d I do… wrote an Applescript :)
You see, I used this App called Omnifocus. All in all, a kick ass App for keeping yourself organized. The problem as I see it with this app, and this is just for me, is that it was overcomplicating something that should be rather simple.
I just wanted something to keep track of my things… essentially, a to do list with due dates and priorities. Google’s Tasks is too simple for what I wanted and, the iPhone client for it is even worse.
So, I discovered another app called Things
It’s the same concept as Omnifocus… breaking down everything in to projects with tasks.. but… much simpler to use… AND more easily facilitates something like “Buy Milk”… you don’t need to create a project of grocery shopping, with a task item of remembering the milk, with the context of Grocery store, under the folder Personal and then again under another folder of errands.
Things let’s me throw in the simple things, assign a due date (as well as a follow up date)… I can just “Tag” things (for those who know I’m a huge fan of the label vs folder setup) with labels.. thus allowing something to be an errand, personal, important and at the grocery store.
So.. what does this have to do with Applescript?
Well… I had to move everything over…. There’s no pretty export and import between these two…
So, enter Applescript. This… as I understand it now, is why programmers all pipe up calling Applescript useless, difficult to work in, etc…
Applescript is not a programming language. It wasn’t meant to make applications out of… It was also meant to be very simple, easy to use and user friendly.
This is why, I’m told (and I can see why having done programming in the past), programmers don’t like Applescript.
Applescript IS however an automation language.
You don’t build programs from Applescript, you write script to perform a repetitive task for you.
Rather than me copying and pasting a hundred some odd entries from Omnifocus in to Things… I wrote a script, in under an hour (and it was my first script…. so….) to do it all for me. I transferred every piece of information that was relevant over. (Admittedly, I cheated a little since even in Applescript, Omnifocus was proving to be more complicated than need be… so I exported all the data to a CSV and then did it)
In conclusion, Applescript is going to make my life on OS X much easier…. I won’t be writing full blown applications, but I’ll certainly be able to get the mundane and repetitive done much quicker.
Here’s a copy of the script for the nosey folk :)





