Pomodoro, AppleScript and Adium

I downloaded this Pomodoro Timer from the Apple website.
It has support for AppleScript events, so I created a script that automatically sets my Adium status to away (with an auto-reply) while I am working on a Pomodoro and automatically sets it to Available when I have finished.

After much messing around, trying to work out just how the AppleScript pseudo-natural-language works, I ended up with this to set the away status:

-- This goes on one line in Pomodoro Setup -> AppleScript -> Start
tell application "Adium" 
  to set the status of every account whose status type is available 
  to the first status whose title is "Pomodoro In Progress"

and this to set it back to available:

-- This goes on one line in Pomodoro Setup -> AppleScript -> Reset and End
tell application "Adium" 
  to set the status of every account whose status type is away 
  to the first status whose title is "Available"
  • Ugo Landini

    Hi Andy, I included your scripts and a link to this page in the new pomoscript page in http://pomodoro.ugolandini.com.

  • tswicegood

    Excellent! That was exactly what I was looking for and even the same use. Thanks! :-)

  • http://twitter.com/dukeofgaming David Vega

    Pomodairo and Focus Booster are my tools of choice (both at the same time actually)

  • bobes

    Actually, you can just do:

    tell application “Adium” to go away

    and

    tell application “Adium” to go available

  • aj

    this is great, except i cannot get this to work.
    i create an applescript and drag it in to the “start” box etc and it creates the path.
    no go.
    ive types the applescript in to the box.
    no go.
    ive tried locating the applsciprt form the find file dialogue but it wont let me select the file, it is grayed out.
    no go.

    what the hell am i missing?

    and by the way there is no “applescript” tab..
    its Pomodoro -> Prefs -> Script

    please and thanks!

  • ugol

    The scripts must be named .pomo to be selectable

  • josh

    I made a slight modification to set the status message:

    tell application “Adium” to go away with
    message “Pomodoro in Progress”

  • LS

    I tried the above but didn’t work. I tried what Josh and Bobes suggested and it worked!

    tell application “Adium” to go away with message “Pomodoro in Progress”

    tell application “Adium” to go available

    Thanks!