Adium

Opened 14 years ago

Last modified 9 years ago

#2864 new enhancement

Pass alias, name, message etc to applescript on event

Reported by: dezoe Owned by: applmak
Milestone: Good ideas for later Component: AppleScript
Version: Severity: normal
Keywords: applescript Cc:
Patch Status:

Description

I'd like to pass username or message to an applescript on events. %n, %a, %m & %t are available for 'Speak specific text' - couldn't these vars be passed to an applescript run by the 'Run an applescript'-action?

Change History (8)

comment:1 Changed 14 years ago by Eric Richie

Keywords: applescript added
Milestone: Sometime after 1.0

comment:2 Changed 12 years ago by Robert

Component: NoneScripting
Patch Status: None
pending: 0
Resolution: fixed
Status: newclosed

Applescripting was greatly improved in 1.2, I'd say this has been done.

comment:3 Changed 11 years ago by Joel

This was never fixed. See e.g. #11363.

comment:4 Changed 11 years ago by Robert

Resolution: fixed
Status: closedreopened

comment:5 Changed 11 years ago by Robert

Owner: changed from nobody to Matt Handley
Status: reopenednew

comment:6 Changed 11 years ago by Alan

I would really like to see this. Currently there is no easy way to access messages via AppleScript. Some pretty cool things could be done with this.

comment:7 Changed 11 years ago by Robert

Type: defectenhancement

comment:8 Changed 9 years ago by gardnermj

+1. Running a script when an event happens is nearly useless without the script being able to see at least (in the case of message-related events) the message sender and message text. For the simplest implementation, maybe just pipe the key/value pairs in some easy-to-parse format to the script's STDIN?

Note: See TracTickets for help on using tickets.