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"

8 thoughts on “Pomodoro, AppleScript and Adium”

  1. 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!

  2. I made a slight modification to set the status message:

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

  3. 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!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>