Building a simple socket server with applescript
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