• 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: PHP and Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PHP and Applescript


  • Subject: Re: PHP and Applescript
  • From: Brian Johnson <email@hidden>
  • Date: Sat, 9 Feb 2008 21:39:57 -0800 (PST)


On Sat, 9 Feb 2008, Grace Finn wrote:

I originally tried this with acgi dispatcher and it worked OK, but I could not get Windows users to stop looking for the acgi file. Someone told me to try php instead.

I don't understand. You put an HTML form on the web. It uses a .php script or an .acgi 'script' to turn that into commands to the robot .. either way the mechanism is visible in the form action. They're roughly equivalent, except that it seems your robot-control app is AE aware, so you have to turn commands into AppleEvents somewhere along the way. I'd stick with AS. If you can run it directly from AS (without the web), you can begin to 'webify' it by moving actions into your .acgi. I think it'll be much saner than php.


You'll see random probes of all sorts on your server if you're looking at log files. These should tell you that it's important not to (for example, take raw text input off a form and hand it off to PHP's exec function)

If you've used acgi Dispatcher you've seen James Sentman's 'itunes.acgi' script. That's basically a remote control for a music-player robot, yes? It doesn't make much sense to let folks world-wide control your iTunes playback, but it works. Assuming your robot plays in front of a webcam or some such, it should be possible to do something similar.

  -b.johnson, dept of architecture, university of washington, seattle
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: PHP and Applescript
      • From: has <email@hidden>
References: 
 >Re: PHP and Applescript (From: "Gary (Lists)" <email@hidden>)
 >Re: PHP and Applescript (From: Grace Finn <email@hidden>)

  • Prev by Date: Setting properties in Address Book
  • Next by Date: Re: Setting properties in Address Book
  • Previous by thread: Re: PHP and Applescript
  • Next by thread: Re: PHP and Applescript
  • Index(es):
    • Date
    • Thread