Skip to content

Instantly share code, notes, and snippets.

@xhan
Created December 6, 2010 08:01
Show Gist options
  • Save xhan/730001 to your computer and use it in GitHub Desktop.
Save xhan/730001 to your computer and use it in GitHub Desktop.
Update Adium status
tell application "Adium"
go available with message "test again" -- or away or invisible
end tell
@xhan
Copy link
Author

xhan commented Dec 6, 2010

NSAppleScript *appleScript = [[NSAppleScript alloc] initWithSource:@"tell application "Adium" to tell first account to make new chat with contacts {first contact} with new chat window"];
NSDictionary *errorDictionary;
NSAppleEventDescriptor *eventDescriptor = [appleScript executeAndReturnError:&errorDictionary];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment