Ticket #13460 (closed enhancement: fixed)
AppleScript an getting the status message of a contact
| Reported by: | assetburned | Owned by: | applmak |
|---|---|---|---|
| Milestone: | Adium 1.4 | Component: | AppleScript |
| Version: | 1.4b15 | Severity: | normal |
| Keywords: | Cc: | ||
| Patch Status: |
Description
I was wondering why exactly it is possible to get the status type of a contact (onnline, invisible...) but not the status message.
If I try for example this script
tell application "Adium" set Suserlist to name of (every contact whose status type is not offline) repeat with AnItem from 1 to (count Suserlist) set Sstatus to status type of (first contact whose name is (item AnItem of Suserlist)) as string if Sstatus is "available" then display dialog ((item AnItem of Suserlist) & " is available") -- do something else if Sstatus is "away" then display dialog ((item AnItem of Suserlist) & " is away") -- do something else if Sstatus is "invisible" then display dialog ((item AnItem of Suserlist) & " is invisible") -- do something end if end repeat end tell
I get a popup for every contact with the status, but if I add this line (inside of the repeat) the script editor tells me it wouldn't be possible to get the status message.
set Sstatusmessage to status message of (first contact whose name is (item AnItem of Suserlist))
If that is wrong then what is the correct way to address this information and why should it be different from addressing the status type?
Change History
Note: See
TracTickets for help on using
tickets.

