I'm trying to connect Adium to Filemaker via Applescript ... this works, but not 100%. I have difficulties fetching the chat message content in Applescript. I looked everywhere on Google and this forum, but can't find any working examples. Who can help ?
This is what i have so far :
Code: Select all
tell application "Adium"
activate
tell the active chat of the first interface controller
set chatternaam to chat name
set chatid to ID
end tell
--set theText to the plainText message of first chat
--display dialog theText
end tell
tell application "Adium"
activate
--if theText = "log" then
if "a" = "a" then
tell application "FileMaker Pro Advanced"
activate
go to database "adium"
go to layout "adium"
create new record
set data field "wie" of last record to chatternaam
set data field "wie_id" of last record to chatid
end tell
--send (active chat of the first interface controller) message "Filemaker Record added"
end if
end tell
What's the correct applescript code for getting the message from the chat window ?
BTW ... i use version 1.0beta12
Livio