Slow scripts in .84

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
User avatar
dzhim
Harmless
Posts: 24
Joined: Sat Dec 04, 2004 4:38 pm
Location: Chicago, IL
Contact:

Slow scripts in .84

Postby dzhim » Tue Aug 30, 2005 4:06 am

Starting with .84 (or perhaps .83), all the AppleScripts now take a few seconds--so outgoing messages get reordered and their timestamps get screwed up.

10:58:47 PM agasthya: 1
10:58:49 PM agasthya: 2
10:58:51 PM agasthya: 3
10:58:52 PM agasthya: 4
10:58:53 PM agasthya: 5
10:58:54 PM agasthya: 6
10:58:46 PM agasthya: Now Playing: No Surprises by Radiohead sending.
10:58:55 PM dzhim: haha
10:58:56 PM agasthya: 7


So he sent the "/music" message at 10:58:46 (based on the timestamp from his logs), but it didn't actually get sent until 8 seconds later (based on all the other messages that were sent before it). Other scripts do that too.

User avatar
The_Tick
Cocoaforge Admin
Posts: 4642
Joined: Thu Dec 02, 2004 6:06 am
Contact:

Postby The_Tick » Tue Aug 30, 2005 4:23 am

The /music script requires polling itunes, which can take a while. Does this happen with any other faster scripts?

User avatar
Adam Iser
Crema
Posts: 427
Joined: Thu Dec 02, 2004 1:36 am

Re: Slow scripts in .84

Postby Adam Iser » Tue Aug 30, 2005 7:16 am

Previously, all outgoing messages would stall for a few seconds while the script was executed. The new way is better imo (especially when you toss slow scripts into the mix) :)

User avatar
dzhim
Harmless
Posts: 24
Joined: Sat Dec 04, 2004 4:38 pm
Location: Chicago, IL
Contact:

Postby dzhim » Wed Aug 31, 2005 10:29 pm

Previously, all outgoing messages would stall for a few seconds while the script was executed. The new way is better imo (especially when you toss slow scripts into the mix)

Previously, the /music script stalled for a few seconds the first time you used it -- on subsequent executions it was quick. Now, there's a short delay every time, so I have to disagree with you, even ignoring the rearranged messages and incorrect timestamps.

The /music script requires polling itunes, which can take a while. Does this happen with any other faster scripts?

Yes. Even the following, very simple, very fast script has a delay of a second or two:
on substitute()
return "http://dzhim.homeip.net/~jim/" as string
end substitute


Return to “Adium”

Who is online

Users browsing this forum: No registered users