• 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: Doug McNutt <email@hidden>
  • Date: Mon, 1 Sep 2003 13:02:55 -0600

At 11:08 -0700 9/1/03, Michael Glasser wrote:
>Is there a way to have the AIM script send data directly to another app? Currently the other app I have run in the script editor, but I could have it run as a stand alone application.

It's certainly possible for an AppleScript to write directly to a file. Presumably the second could read from the same file.

In Darwin one can use UNIX pipes to send data. One application writes to standard output and a command line uses the | symbol to redirect the data to another application or script which is reading standard input. If there is nothing to read the reading process blocks until there is.

So two shell scripts controlled by two AppleScripts with "do shell script". One shell script passes data to the other which returns it to AppleScript. I'm betting there will be something that won't work though. Will an AppleScript wait for a blocked shell script? If so does it block itself or does it use up cycles in a tight loop?

--
--> There are 10 kinds of people: those who understand binary, and those who don't <--
_______________________________________________
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.

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

  • Prev by Date: Remove Final C/R?
  • Next by Date: Re: Remove Final C/R?
  • Previous by thread: sending data from one AppleScript App to another
  • Next by thread: Re: sending data from one AppleScript App to another
  • Index(es):
    • Date
    • Thread