[Adium-devl] AppleScript status bug (Trac #8687)
David Symonds
dsymonds at gmail.com
Mon Dec 31 06:11:45 UTC 2007
Hi all,
Forgive this intrusion if this is not the appropriate forum for my message.
It seems like Adium's AppleScript class for saved statuses still isn't
working right. After Evan apparently fixed #8687 in [22075], I grabbed
the latest SVN revision (r22078) to check it out. It still isn't fully
fixed, and I think the problem has only been shifted slightly.
As an example, the following AppleScript works perfectly, and does
what you'd expect: [#1]
tell application "Adium"
set acc to first account whose title is "dsymonds at gmail.com"
get display name of acc
end tell
However, applying that to statuses doesn't: [#2]
tell application "Adium"
set stat to first status whose title is "Home" and type is away
get message of stat
end tell
This fails with an error saying: "Adium got an error:
NSReceiverEvaluationScriptError: 4"
Oddly enough, rephrasing it slightly works just fine: [#3]
tell application "Adium"
get message of first status whose title is "Home" and type is away
end tell
It seems that the reference to the saved status in #2 isn't being
properly returned, so it can't be queried later.
It could be completely unrelated, but the 'id' property of the status
class is declared as 'text', whereas the 'id' properties of other
classes (window, account) are declared as 'integer'. Could that be the
reason? The chat class is a notable exception: its 'id' property is
also 'text'.
I'd love to have these little kinks worked out before release, since I
want to rely upon them working correctly for my own application
(MarcoPolo; http://www.symonds.id.au/marcopolo/).
Dave.
More information about the devel
mailing list