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

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
Perez
Frappa
Posts: 150
Joined: Sun Dec 05, 2004 8:51 pm
Contact:

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

Post 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'.
naib.webhop.org | PGP: 0xEC479127
User avatar
zaudragon
Growl Team
Posts: 1852
Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:

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

Post 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{}?
Blog | X(tras)
Communists code without classes.
Perez
Frappa
Posts: 150
Joined: Sun Dec 05, 2004 8:51 pm
Contact:

Post 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.
naib.webhop.org | PGP: 0xEC479127
Post Reply