Thursday, March 27th, 2008 at 15:49 by
Gauthier
Last week end I had 4 days off (I love easter in this part of the world), so I decided to head toward Melbourne, which is the start point of the Great Ocean Road, a 300km scenic coastal drive. Melbourne is really a nice city and I will definitely come again to discover all it has to offer.



The Great Ocean Road was… rocky, but really gorgeous.



Next step: New Zealand, for 2 weeks. I’m leaving tomorrow
Posted in Australia, Photos, Trips |
No Comments »
Thursday, March 13th, 2008 at 20:38 by
Gauthier
I have been using ByteController on my Mac for quite a long time now, it controls well iTunes with both buttons in the menu bar and global shortcuts. It also supports Growl, but I lacked a permanent visual display of the song played, so I do not have to open iTunes to see the song name.
Yesterday I found a small program called SubtleStatus, it displays iTunes artist, song name and album in one of the corner of your screen. It supports transparency and is really unobtrusive. Default setup displays artist, song name and album one after each other, but it also supports AppleScript if you like to tweak things.
As I am also using Cog sometimes, I wanted Subtle to display Cog’s information instead of iTunes’ when it is paused or not running. I wrote a small AppleScript to handle the stuff :
(* Check if iTunes is running and grab current song / artist / album *)
tell application "System Events"
if exists process "iTunes" then
tell application "iTunes"
(* Grab info only if iTunes is playing *)
if player state is playing then
set _title to name of current track
set _artist to artist of current track
set _album to album of current track
set foo to _artist & " - " & _title
return foo
end if
end tell
end if
(* Check if Cog is running and grab current song / artist / album *)
if exists process "Cog" then
(* Cog does not support player state for apple script *)
tell application "Cog"
(* Check if Cog is at least loaded with a file *)
if (exists title of the currententry) then
set _title to the title of the currententry
set _artist to the artist of the currententry
set _album to the album of the currententry
set foo to _artist & " - " & _title
return foo
end if
end tell
end if
end tell
(* When returning an empty string, subtle status will disappear *)
return ""
Update: I added a check to see if Cog is running with a file or not.
Posted in Geek |
No Comments »
applescript, cog, itunes, subtlestatus
Monday, March 10th, 2008 at 22:01 by
Gauthier
32km à pieds, ça use les souliers !
Hier nous sommes allés faire une “petite” marche, théoriquement de 26km, dans le Royal National Park, au sud de Sydney. La coast track comme son nom l’indique borde la côte et offre au marcheur des vues magnifiques. La marche se fait normalement en 2 jours, mais comme le camping était plein, Rodolphe, ancien scout et tongiste professionnel, nous a convaincu de la faire en une journée. Après tout, 26km ça doit se faire en 5h…
La marche était effectivement magnifique, mais quelques erreurs de parcours ont rallongé un peu notre trajet. On estime qu’on a fait un bon 32km en 7h, avec 2 pauses baignade. Mes pieds sont pleins d’ampoules.
Mention spéciale à Rodolphe, Tibal et Suzy qui ont fait la marche en tongs.



Posted in Australia, Photos |
No Comments »
hiking