[Adium-devl] AppleScript status bug (Trac #8687)

Matt Handley applmak at gmail.com
Mon Dec 31 15:13:07 UTC 2007


That's most likely happening because AS is becoming confused as to  
which version of Adium's dictionary shoulod be used or receive the  
apple events. Make sure to quit both trunk and release versions of  
adium, as well as script editor before you do any testing. Launch  
only the version you want to target, and then script editor.

Matt

On Dec 31, 2007, at 8:59 AM, Evan Schoenberg wrote:

>
> On Dec 31, 2007, at 12:11 AM, David Symonds wrote:
>
>> 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
>>
>
> I can't run either of these, before or after r22078, because  
> Applescript complains:
> "Adium got an error: Can’t make type into type specifier."
>
> What are you doing to get around that / do you have any idea what's  
> wrong?
>
>> 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'.
> It could be completely related - that's a good catch.  Try changing  
> it to "integer" and let us know if it fixes the problem :)
>
> Cheers,
> Evan
> _______________________________________________
> Adium-devl mailing list
> Adium-devl at adiumx.com
> http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20071231/6fc653a0/attachment-0001.html>


More information about the devel mailing list