(on panther 10.3.2 updated current)
so polling iChat with a script such as:
tell application "iChat"
set bla to every account of every service
return bla
end tell
returns:
{{application “iChat”, application “iChat”, application “iChat”, application “iChat”, application “iChat”, application “iChat”, application “iChat”, application “iChat”, application “iChat”, application “iChat”, application “iChat”, application “iChat”, application “iChat”, application “iChat”, application “iChat”, application “iChat”, application “iChat”}, {application “iChat”}}
which is incomplete information of the account objects handled by iChat. (you can do a similar type of thing with Mail and it will return lists like {account “loki-test” of application “Mail”, account “cataphora” of application “Mail”} - which is correct)
this wouldn’t be so bad if it was a simple object → string conversion error and i was still getting back fully functioning objects. however, if i do:
tell application "iChat"
set foundWalkor to "no"
set bla to every account of service "AIM"
repeat with ugh in bla
if (name of ugh is "walkor") then
set foundWalkor to "yes"
end if
end repeat
return foundWalkor
end tell
i get “no”, but running:
tell application "iChat"
set foundWalkor to "no"
set killme to (name of every account of service "AIM")
if ("walkor" is in killme) then
set foundWalkor to "yes"
end if
return foundWalkor
end tell
which returns “yes” and therefore, i believe, points to iChat correctly internally processing the applescript but returning broken objects…
anyone else able to verify this / know of a solution / know if apple knows of this / … etc?
thanks,
loki