• 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
Building a simple socket server with applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Building a simple socket server with applescript


  • Subject: Building a simple socket server with applescript
  • From: Graham Anderson <email@hidden>
  • Date: Sun, 28 Aug 2005 10:09:29 -0700

I would like my Quicktime movie and an applescript background process to communicate on a simple socket on localhost
The functionality is very similar to making a call to a remote PHP script and echoing something back :)


Here is the basic functionality:
QT sends out the localhost http request on port 8181: http://127.0.0.1:8181/?QTcmd2ApplescriptApp=doSomething


1) The Applescript Background App is listening on port 8181...
The socket is initialize and bound to 8181 and is set up to listen, accept a connection, and return info


2) Applescript hears the requests and does something with the incoming string:
GET /? QTcmd2ApplescriptApp =doSomething HTTP/1.1 Accept ............


3)Applescript sends back info on the same socket..... like PHP's echo

4) A QT List Received Event is triggered ...QT does something with the info

I have a similar socket server running on Windows using wsa, NSIS, and QuickTime

Is this possible with applescript? If so, where would I start looking for info on OS X, sockets, and applescript?

many thanks :)
g

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Building a simple socket server with applescript
      • From: Le Stang Jean-Baptiste <email@hidden>
  • Prev by Date: Re: Non-executed repeat loop robs variable of value/definition
  • Next by Date: Re: Non-executed repeat loop robs variable of value/definition
  • Previous by thread: ANNOUNCE: Record & List Tools 1.0.2
  • Next by thread: Re: Building a simple socket server with applescript
  • Index(es):
    • Date
    • Thread