30 May 2008 - 21:05AppleScript - Exporting Omnifocus Perspective to HTML

Right then… No posts on here for about a year. Not much will change in the near future, and I’m also not going to be making any more icons either. Leopards 512px icon resources look amazing, but unfortunately mean that it takes much more effort to make an icon look good at higher resolutions, effort I don’t want to make. So I’ll be mothballing the icons category. Anyway, back to the reason for this post.

I’ve been getting into OmniFocus recently and wanted a way to view my tasks on my iPhone on the go. What better than the HTML export - but exporting a perspective and uploading the file was just taking too many clicks. The following applescript may help - point Automator at the created file using your uploader of choice and you’ll be set. The trick to exporting OmniFocus tasks lies in exporting a pre-made perspective and opening that ‘document’ to do the export with. So make yourself a perspective of what you’d like exported, save that, and use it in the AppleScript. I’m sure you can work it out.

tell application "OmniFocus" to tell default document
open "Disk:Users:yourusername:Library:Application Support:OmniFocus:Perspectives:perspectivename.ofocus-perspective"
end tell
tell application "OmniFocus" to tell default document
save in "Users:yourusername:Desktop:filename" as "HTML"
end tell

UPDATE 3rd July 2008 - removed last 2 extra lines of code left from a bad copy/past from Automator.

Hope this saves someone the 15 mins of googling it took me to knock this up. Enjoy.

No Comments | Tags: applescript, code, omnifocus

22 June 2007 - 9:14iTunes backup with Bandwagon

A quick post - Bandwagon, which offers automatic backup of iTunes song files and associated library data and syncing across computers has just released a new ftp version of their software. In return for letting you know about it - it actually looks super useful - I can get 6 months free to try it out, and bring back a full review for you. Check it out.

[UPDATE] I’m 2.06GB out of 45 GB backed up after 3 days. So far so good.

5 Comments | Tags: downloads, software

15 May 2007 - 11:33Create files for Nike+

Just wanted to do a quick post on a new site that I have been building over the last few weeks. Nikeplusedit has been created so that you can create nike+ run files from scratch to upload into Nike+ when you have missed a run with your Nano, your battery died, or whatever really. Check it out, and leave me some feedback if you find it useful/crap.

No Comments | Tags: admin, nike+

8 May 2007 - 23:11Make your Mac and Sony Ericsson M600i (or P990i) friendly

Sorry for the lack of updates. I’d like to say it has been because I have been ridiculously busy at work and just haven’t had the time to post, but the opposite has been very much true - work has been particularly uninspiring, to the point where I just don’t want to sit and write at a computer for a while about techy stuff. Anyway, some inspiration has hit me this morning, so I’m going to bash out a post on making your Mac work with your M600i in a friendly way. It’s also worth noting that the P990i also runs on UIQ3 like the M600i, so all the steps below also apply, as do the problems outlined with the M600i communicating with the Mac.

Sony Ericsson M600iTo explain a bit more, the Sony Ericsson M600i is a particularly nice phone, but along with the P990 it really doesn’t play with well the Mac. Out of the box it’s not possible to sync contacts or calendars, or even mount the internal memory or memory card on your desktop. Basically, it’s a pretty closed system. So, what follows is a quick round-up of how to accomplish basic transfer and syncing capabilities, and ways to go beyond that if you really want.

6 Comments | Tags: article, m600i, mac, phone

4 March 2007 - 15:38Quick and dirty Applescript integration of GPSPhotoLinker and Google Earth

In order to geotag my photos, I used to use a homebrewed Automator workflow that used the currently selected photo in iPhoto, and opened it using GeoTagger (an applescript based app from Craig Stanton) which grabs the current coordinates of your view in Google Earth and embeds the coordinates into the EXIF info of your photos. For some reason it would take an age to launch the first time around, and was generally unreliable (the workflow that is, not Geotagger).

When geotagging photos using track logs, the only real choice is GPSPhotoLinker. I love the fact that GPSPhotoLinker also embeds city, state and country info into your photos as well as regular lat and lon coordinates, but it will only take input into photos as hand-keyed text when not using GPX track logs; i.e. there is no integration with any external mapping programs. After several weeks of hand typing coordinates out of Google Earth and into GPSPhotoLinker, I decided an Applescript was in order to do the job for me, and sorted something out last weekend which, by using UI scripting (i.e. it manipulates menu items and enters text on your behalf), grabs the current co-ordinates from Google Earth and inputs them into the ‘Manually Enter Coordinates’ dialog in GPSPhotoLinker, and then presses the Apply Button. This saves me at least 20 seconds a photo, which makes it worth it for me, and by using the Keyboard pane in System Preferences you can assign it a hot key for instant access in iPhoto.

If you are happy not embedding the extra info into your photos, and GeoTagger works for you, then I’d stick with it. Otherwise, if you were having trouble with it, want a different way of adding GPS info into your EXIF headers, or would like to add the extra data into your Photos that GPSPhotoLinker offers, then take a look at this script.

Usage:

  1. Drag the photo(s) you want to tag into GPSPhotoLinker’s Manual Mode (from iPhoto or wherever else)
  2. Find the position the photo was taken in Google Earth
  3. Make sure the photo or photos are selected in GPSPhotoLinker
  4. Run the script
  5. You’re done.

Download the script here. Credit is given to Craig Stanton to the first part of the script which gets the co-ordinates from Google Earth.

Or, the code is below if you want to integrate into your own workflow in some way:

tell application "Google Earth"
set viewInf to GetViewInfo
set coords to {latitude of viewInf, longitude of viewInf}
end tell
set long to (text item 2 of coords)
set lat to (text item 1 of coords)
activate application "GPSPhotoLinker"
tell application "System Events"
tell process "GPSPhotoLinker"
-- GUI Scripting statements:
click menu item "Manually Enter Coordinates…" of menu 1 of menu bar item "Special" of menu bar 1
set value of text field 1 of window "Manual Coordinate Entry" to lat as text
set value of text field 2 of window "Manual Coordinate Entry" to long as text
click button "Apply" of window "Manual Coordinate Entry"
end tell
end tell

No Comments | Tags: GPS, applescript, downloads, geotagging, google earth, software

23 February 2007 - 17:10Nike+iPod Widgets

This is the next instalment in the ‘widget focus’ series. By the way, what the hell was I thinking when I thought of that name… could I get any geekier? Widget focus? wtf? What a loser I can be!

Having covered skiing and basecamp, I thought it was about time for running…

On the Nike+ website they have recently released widgets for tracking your current goals on Nike+. I’m going to assume you have at least heard of Nike+, but if not go check it out, it really is quite a cool way to move you away from a computer screen and get some exercise. Anyway, the widgets they have provided are, in classic web 2.0 style, in beta- but work fairly well. They take up a fair bit of screen space, but other than that they look nice with a funky ‘wet floor’ style reflection going on. The only problem I had with them is that you can’t have more than one running at a time - well, you can, but the second one defaults to whatever goal was showing on the first one when you reboot OS X or whatever, which is pretty pointless.

In use, you flip them over and the widget asks for your login details, as you’d expect. After logging in the widget gives you a dropdown of the goals that you currently have active. I noticed that when going to download them from the Nike+ website, they only showed up when the country selected was the US, so you may have to change your country settings temporarily.

Available for download in both Yahoo Widget Engine and OS X dashboard flavours, they are a really nice and quick way of keeping up to date on your current running goals in Nike+. Go check them out.

Nike+ for Yahoo Widget Engine
The Nike+ widget running under Yahoo Widget Engine on Windows…

Nike+ Widget
… and running under OS X.

No Comments | Tags: nike+, widget

22 February 2007 - 14:58My (amateur) photography workflow - Part 1

This is a post I have been meaning to write up for a while, and have been putting off as I think it could get quite big, quite quickly. That’s no excuse though, so I thought I’d split it up into several posts in order to keep things easier for me to write, and for you to read. Without further ado, here’s part 1. I’ll keep links to the following parts as they get posted below:

Firstly, a brief introduction. I like to take photos, lots of them in fact. So far this year I’m up to a couple of hundred shots that I want to keep. I also like having things neat, tidy and in their place, and this applies equally to my iPhoto library too, which is growing at a steady rate of knots and currently stands at about 3,500 photos taken over 3 or 4 years. Not loads, but enough to start losing nice shots in which is an ever increasing problem as more photos get added.

Second, I’m on a Mac. Sorry PC users, that’s the way it is round here and the way it will continue to be. That’s not to say that any of the processes that I through or tips that I throw out aren’t relevant, I just won’t know the best way of doing on a PC, sorry.

Third, these processes/this workflow is not intended to be ‘better’ than anyone elses, or provide any advantages over your own - it’s just mine. If you find any of the tips helpful then I’m really happy; if not then no big deal, hopefully you got to feel smug as your own way of doing things must suit you better. On with the show…

This post is going to deal with everything that I do at the time of taking a photo (with the exception of actually taking it, as I’m no pro, so don’t really have a leg to stand on when it comes to ‘real’ photography!). As I explained before, organisation of the photos back in my library is important to me, so whenever I’m out with a camera I like to mentally record what’s going on around me, and more specifically where I am geographically so that I’m able to tag the photo in iPhoto and ‘geotag’ the photos when they get back to my mac. It’s the geotagging part of processing the images that I found especially interesting, as I find playing around with the photos, showing them to friends/family etc. when placed on a maps such as Google Maps or Google Earth.

The basics - it really makes your life easier to have your camera setup properly before taking any photos, mainly in respect to timezone and current time. Some digital cameras have both settings, but all have an option to change the current date and time. As this information is embedded into the photograph and is used when referencing the photos against a location at a certain point in time (more on this later), it’s pretty essential that it’s as accurate as you can get it.

In order to geotag your photo further down the track when you get home, clearly you’ll need to know the location of the photo. There’s essentially two ways of doing this - using a track log from a GPS of some kind, or remembering (roughly) where you are in relation to your surroundings to then get a more precise location when you get home. Now, you may think I’m talking complete crap here - of course you remember where you took a photo, right? Well, that’s true, but as time goes by it will become harder to remember where less memorable photos were taken, which for me is one of the benefits. of geotagging your photos- so that you can come back to them at a future date, and not have to rack your brain as to where it was taken.

So, having been on a three month tour of South East Asia, after you return home one beach pretty much looks like another. Having some kind of hard record as to where you where and when means that you can Google (or search on Google Earth) that place, find the location and geotag that photo. There are of course limitless ways you can do this; but for me noting down a date and place on paper has got to be one of the easiest. Alternatively, get a map (tourist, something more accurate, guide book, whatever) of where you have been and briefly annotate it with dates and times.

If you want a digital way of doing it, many digital cameras (well, from my experience every Canon I have had) offer a feature where you can annotate any image with a brief audio recording. I’ve yet to use this, but that could also prove very useful for tagging later down the track if you have a large enough memory card. Finally, logging your rough journey around a city with times, street names etc. around the time that you shoot using an internet enabled mobile phone, and a service like Backpack, would also do the trick.

The idea is to build up some references to know where you have been and when, so that upon returning to process your images you can apply relevant tags, descriptions and location info. Whether you do that in your head or in some other form is up to you. For me it depends on the length of time between taking the photo and when I’m likely to be processing it on my computer - the longer this is the more likely I am to write something down.

In addition to this, if you are serious about getting location metadata attached to your photos (as well as viewing tracks of your travels/ski runs/walks/bikes etc) then investing in a cheap GPS is a must. You can pick up something like a Garmin etrex fairly cheaply on ebay (~£50 in the UK), or for something for photography specific, check out the Sony GPS-CS1, and my review of it here. The GPS will log your position every few seconds to a simple text file which you can copy back to your Mac when you get home, and you can then convert the file to something that would be viewable on Google Earth. By matching the location recorded at the time a photo was taken, software can then embed the location (latitude, longitude, city, state etc, and possibly even altitude) into the photo’s EXIF headers.

In the real world, it’s a combination of both of the above that works for me. Having the GPS on and attached to part of my backpack for times when I really won’t know where I have been that day, as well as mentally or otherwise recording places and times that I took photos both work for me for Geotagging my photos further down the track. In the next few posts I’ll cover how to actually use the information that you have recorded to get the precise location embedded in your photos as easily as possible, the way I like to tag photos in iPhoto, sharing them online with this information using Flickr, and other ways of showing off your photo creations to the world.

I’m aware that some of the content in this post might seem a bit, well, obvious. I really wanted to go over the first steps you might need to take in order to start tagging your photos more completely, but if you’ve found it annoying or wish to let me know any criticisms you may have, please do so in the comments!

No Comments | Tags: article, mac, metadata, photography, travel

4 February 2007 - 10:49Making your Mac app ‘Dockless’.

Sometimes you just don’t want a specific application on your mac to be showing in your Dock. One that’s been bugging me for the last week or so is the app provided by IPEVO for their Skype USB phone. The app is good - it connects with Skype as you would expect, but it has to be running the whole time for the damn thing to work, which means it shows up when you hit Command-Tab to cycle between running programs, and is available in the Dock too.

Considering I don’t need to change the settings in this program pretty much ever, this is fairly pointless. However, a quick bit of googling got me to the following hack - break the app open by right clicking on it then selecting ‘Show Package Contents’, navigate to the Info.plist file and open it in your preferred text editor. Then add the following lines at the end of the keys and strings:

<key>NSUIElement</key>
<string>1</string>

And Bob’s your Uncle. One thing to bear in mind - this also removes any way of selecting the application when open, other than double clicking it in the finder, and removes any menus for that app when in focus. As such it’s best to keep a backup copy hanging around so that you can open that, make any changes to preferences etc as need be, close it and reopen the hacked version for day to day use.

NB - don’t blame me if this screws anything up.

No Comments | Tags: hack, software

2 February 2007 - 20:01Make Keywording in iPhoto easy.

I just wrote a review about Keyword Manager, an iPhoto plugin which I’ve found truly indispensable for keeping my keywords in iPhoto up to date and accurate, whilst saving time (and keystrokes). It’s pretty ground breaking for my iPhoto Library actually, signs of organisation are showing…

Keyword Assistant Assigner Panel

Read the review…

No Comments | Tags: iPhoto, photography, review, software

25 January 2007 - 12:07Review: Sony GPS-CS1 (with the inevitable mac-bias).

In advance of a post detailing my current photography workflow at The Apple Blog, here’s the first of a few reviews on products and software involved. The Sony GPS-CS1 is a fairly recently released gadget from Sony that logs your current location via GPS to a text file in it’s internal memory, for fun and games when you get back to your PC. Although currently it only works natively on Core 2 Duo MacBooks, (of which I’m a fortunate owner), it should work natively on all Macs soon. I personally love it and would thoroughly recommend it for photography or GPS geeks.

Check out the full review…

No Comments | Tags: GPS, gadgets, photography, reviews