• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: sending data from one AppleScript App to another
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sending data from one AppleScript App to another


  • Subject: Re: sending data from one AppleScript App to another
  • From: John Delacour <email@hidden>
  • Date: Wed, 3 Sep 2003 20:35:24 +0100
  • Mac-eudora-version: 6.1a1

At 11:22 am -0700 3/9/03, Michael Glasser wrote:
Ok... what am I *really* doing...

I am making an AIM bot... not a porn bot or anything like that, just one to respond to people in a semi-"human" way.

I have a script that AIM runs every time it gets a message. I need to keep that one very quick, if not, AIM slows to a crawl.

I found a solution to this... the AIM script sends data to a buffer, currently a TextEdit file. Another script (my Bot script) reads from the buffer, processes the text, and, if needed, sends a response back to AIM.

I am looking into having the buffer be another script... one that is sent data from the AIM script and has data gathered by the Bot script.

Would this be faster? If so, any ideas on the best way to do it?


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. 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
_______________________________________________
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.

  • Follow-Ups:
    • Re: sending data from one AppleScript App to another
      • From: Michael Glasser <email@hidden>
References: 
 >Re: sending data from one AppleScript App to another (From: Michael Glasser <email@hidden>)

  • Prev by Date: Re: sending data from one AppleScript App to another
  • Next by Date: System Date Format
  • Previous by thread: Re: sending data from one AppleScript App to another
  • Next by thread: Re: sending data from one AppleScript App to another
  • Index(es):
    • Date
    • Thread