Lion changes

I had the same problem and changed the isEqualToString line to the plain old AppleScript method

if ident = “theStatus” then

Works fine for me.