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

Re: Building a simple socket server with applescript


  • Subject: Re: Building a simple socket server with applescript
  • From: Le Stang Jean-Baptiste <email@hidden>
  • Date: Sun, 28 Aug 2005 20:59:43 +0200

If you're interested by XNet, I've been working on a couples of problems and now I've a non-blocking spcket reading function implemented in XNet. XNet is 'kind of a ' proof of concept to show that the core of the applescriptabiilty of an application can be taken from the application and can so be in a separated framework. If this version interest you I can either send it to you or upload it.

Do not hesitate to ask me to have answers about how it is working, or if you think that something could be better.

++ Jean-Baptiste
On Aug 28, 2005, at 7:09 PM, Graham Anderson wrote:

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 (Applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40lestang.org


This email sent to email@hidden



_______________________________________________ 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>
References: 
 >Building a simple socket server with applescript (From: Graham Anderson <email@hidden>)

  • Prev by Date: Re: degrading script performance in Mail
  • Next by Date: Re: Building a simple socket server with applescript
  • Previous by thread: Building a simple socket server with applescript
  • Next by thread: Re: Building a simple socket server with applescript
  • Index(es):
    • Date
    • Thread