Re: sending data from one AppleScript App to another
Re: sending data from one AppleScript App to another
- Subject: Re: sending data from one AppleScript App to another
- From: Michael Glasser <email@hidden>
- Date: Wed, 3 Sep 2003 18:07:55 -0700
On Wednesday, September 3, 2003, at 12:35 PM, John Delacour wrote:
I know nothing about bots or buffers or AIM but it seems to me all you
need is to mess with some text and that could be done in a single
script.
I started off doing it in a single script that AIM called... the
problem is it makes AIM go VERY slow and then crash... so all I can do
is have a script that quickly sends the data (text, name, time, chat
room) somewhere else to be processed (a buffer). Currently I send it
to TextEdit... a BotScript grabs the data from the buffer, processes,
and, sometimes, sends a reply. If it gets behind, it can clean out the
buffer (and lose data). As fas as I know, this is not possible in a
single script that would work within AIM. I may be wrong... would
happy to be so if it would make my life easier.
If, for some reason I can't divine, you need an applet, then do it
like this:
run Your_Script
script Your_Script
copy "hello" to _sometext
tell my Your_StayOpen_Applet to processText(_sometext)
-- that will be tell app "Your Applet"
set _changedtext to result
display dialog _changedtext
end script
script Your_StayOpen_Applet
on processText(s)
set s to s & " :-)"
return s
end processText
end script
JD
AIM would still be waiting for the "Your_StayOpen_Applet" to do what it
needs to do. What I need to do is...
AIM Script (sending to) -> Buffer <- Bot Script (getting from Buffer,
sending to AIM if needed) [-> AIM]
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.