Page 1 of 1

Questions About Scripting Support

Posted: Sun Feb 06, 2005 1:58 am
by Chris Biagini
Why in Adium scripts is it necessary to check if the "other" application is running before targeting it? Rather than doing this in every script, why not have Adium itself handle errors? I don't intend this as a criticism, I'm genuinely curious.

Also, is there any way to get the result of an arbitrary script into the message *before* sending it? I was poking around to get the "insert link" feature to work in OmniWeb, and I noticed that the structure to do this is basically already there. The ability to substitute keywords in messages is really cool, but it's hard to tell exactly what's going to actually happen when you send the message.

Thanks for a great app, by the way. Adium has come really far!

Re: Questions About Scripting Support

Posted: Sun Feb 06, 2005 2:29 am
by BlueRevolution
Chris Biagini wrote:Why in Adium scripts is it necessary to check if the "other" application is running before targeting it? Rather than doing this in every script, why not have Adium itself handle errors? I don't intend this as a criticism, I'm genuinely curious.
the issue is not of errors but of the target application launching when it is told something. a common example is the built-in iTunes scripts, which will launch iTunes in order to find out what you're listening to atm.

as far as I know, the problem is with AppleScript and not Adium. in some cases it does make sense to automatically launch the application if it isn't running, at least from the standpoint of AppleScript in its purest form (not being used as a script embedded within Adium).

Re: Questions About Scripting Support

Posted: Sun Feb 06, 2005 2:40 am
by Chris Biagini
the issue is not of errors but of the target application launching when it is told something. a common example is the built-in iTunes scripts, which will launch iTunes in order to find out what you're listening to atm.
D'oh! How dumb of me to not think of that. :)