Showing posts with label geekbrief. Show all posts
Showing posts with label geekbrief. Show all posts

Sunday, 15 March 2009

Don't repeat: Automate


There is almost always a way to do something on a computer, but it often requires a bit of experimentation. Once you do find a solution, then it often involves quite a lot of clicking around. Menu shortcut keys can help a bit, but for tasks that you are going to do a lot, then you need to automate.

I've been a long-term fan of automation. I know that the animated diagrams in my first CD-ROM for my 'Sound Synthesis and Sampling' book definitely could not have been done without AppleScript and KeyQuencer [Dead link inside. For historical record only. Sorry]. It is a great shame that Alessandro Levi Montalcini's KeyQuencer did not make it to OSX, and that the binarysoft web-site domain has now been taken over by a generic software company that could not be more different to the one that produced KeyQuencer. I'm not including a link to the new binarysoft domain because it really isn't relevant at all...

So when Cali Lewis's engagingly wonderful Geekbrief podcast featured Apple's laconic Sal Soghoian talking about AppleScript and Automator recently, it reminded me that I hadn't found an alternative to KeyQuencer. So I did some more research...

And I found Keyboard Maestro!

Why do I need another piece of automation software for Mac OSX when I've already got the bundled AppleScript and Automator? Because long experience has taught me that there's always something you can't do easily in just about any automation software, and that you need more than one to be able to solve all problems.

For example, I wanted to be able to sort out folders full of various versions of files, all with similar filenames, but with various different endings. The kind of loose fragments that tend to accumulate when I'm writing a book. Because these aren't organised formally, then most automation won't work, but what I wanted was something that would let me select the first part of the filename, and turn it into a folder with that name, so that I could then move the fragments into that folder and hence, organise all my jottings.

I tried Automator, and couldn't figure out how to move the contents of the clipboard into a folder name. If Automator doesn't provide the fields to do something, then there's not very much you can do about it. In AppleScript, there's a different problem. But Keyboard Maestro made it very easy, and in just a few minutes of experimentation, I had an F7 key that now creates folders using selected text from a filename.

This general principle: 'if you can't do it one way, try another', is one of those engineering solutions that has been with me from a very early age. This might be why I fill hard drives with software Tools and Utilities...

I'm also very aware that it may well be possible to do this example (and many other tasks) in AppleScript and Automator and... But this often requires time and knowledge, and if I find a quick solution in an alternative then that is fine by me. If anyone wants to share alternative solutions then that will be warmly welcomed and publicised here in this blog!

Tuesday, 21 October 2008

Audio blogs = Podcasts


Not exactly a great revelation there, but for me there's a big difference in how I consume them...

Blogs are something that I'll visit because I follow them (usually because the blogger writes interestingly on relevant subjects) or because I find them from a search for something specific, in which case a really good one might end up as one I will read...

Podcasts are different (Mr Completely Obvious, the not-very-superhero, returns for a brief visit!) because I listen to them as I walk to work. So they are part of the transition from home to work. This is something which was drummed into me many years ago as the key to life, the universe, and quite a lot of other things too: separate home and work, and find something that marks that transition. So in my case, listening to a variety of podcasts does this, and it has worked very well for me.

Just as the books in a bookcase, or the CDs by the CD-player, reveal a lot about their owner (Mr Completely Obvious appears and vanishes again, rapidly...), so do podcasts. To make the link between blogs and podcasts complete, here are the main podcasts to which I subscribe:
The 'Good Doctor' and his DJ companion travel through the internet as digitised audio, in a film review programme that has opinion, rants, and humour throughout - but no connection to any other programme that might sound superficially similar to my opening phrase.
Admittedly there's not enough of them but what few there are are wonderful, qunintessential Fry. Of course, there's no way you could ever have enough! (Cough from Mr Completely Obvious here, of course)
SciAm is definitely my preference over the UK's 'New Scientist'.
Swoopy and Derek explore the sceptical side of science.
I used to write regularly for Sound On Sound magazine, so this is a way of listening in to them remotely. I still subscribe to the magazine as well, of course!

There's one other, but it is a video podcast, and so can't be safely viewed whilst walking! (Rustles can be heard in the background from an almost-superhero...)
The amazingly full-of-life Cali Lewis breathlessly entertains, enthuses and informs! A sort of geekier and less motor-sport-oriented US version of UK Gadget Show presenter Suzi Perry, perhaps?

(Other podcasts are available, as the disclaimer goes... )

(Of course, my Mr Completely Obvious has no connection with any other super heroes called Mr Obvious, Captain Obvious, Mr Readily Apparent, and so on...)

So there you go. You've now looked at my innermost books and CDs, and I hope it has been useful!