Page 1 of 1

Req/Inquiry: %keywords/Applescripts w/ arguments in events

Posted: Sun Aug 21, 2005 7:59 am
by Perez
I know it has come up before, and I wasn't sure how to search trac for it / didn't see anything, so I figured I'd post first:

Are there currently plans for adding support for the %-keywords (%n, %a, etc)? Is there anything like that accessible now? (Is this part of the status system rewrite?)

Also (or possibly instead of), is it possible / could it be possible to call applescripts with arguments, in event notifications? At the moment it seems you can only say 'run an applescript', but not run one and give it an argument, or run ones packaged as .AdiumScripts.

I'm asking becuase at the moment I have alerts that play specific sound files when each of a number of people sign on, and I'd like to make the process more general; I wrote a (shell) script that takes text input and plays the audio I want, and I'd like to be able run it from Adium - ideally, to give it a name/sn argument from Adium, or just say 'whenever anyone signs on, run this script with that sn as the argument'.

Re: Req/Inquiry: %keywords/Applescripts w/ arguments in even

Posted: Sun Aug 21, 2005 7:47 pm
by zaudragon
Perez wrote:Are there currently plans for adding support for the %-keywords (%n, %a, etc)? Is there anything like that accessible now? (Is this part of the status system rewrite?)

Also (or possibly instead of), is it possible / could it be possible to call applescripts with arguments, in event notifications? At the moment it seems you can only say 'run an applescript', but not run one and give it an argument, or run ones packaged as .AdiumScripts.
%n works everywhere other than messages I think. Not sure about the others; try them in your away message/profile.

How about using the send message event with the script{}?

Posted: Sun Aug 21, 2005 11:36 pm
by Perez
Almost, but not quite (thanks, though). %n, %d, and %t all work in away messages, but (a) it shows up as my sn, not the other person's, and (b) I can't get that to a script anyhow - I had been using a message-sending alert to run the script, but the message the alert sends has "%n", unsubstituted.