• 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
AppleScript CGI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppleScript CGI


  • Subject: AppleScript CGI
  • From: Nelson Byrne <email@hidden>
  • Date: Sun, 28 Dec 2003 11:53:08 -0800

On web page http://www.apple.com/applescript/guidebook/sbrt/pgs/sbrt.12.htm there is an example of linking an AppleScript application to a web page.

I tried doing exactly what they said, but had two problems.

1) The page says to save the AS with name "test.cgi", location "Sites", file format "application", Option Stay Open.

But that's not possible: when I try I get an error popup that says "You cannot save this document with extension '.cgi' at the end of the name. The required extension is '.app'. You can choose to use both, so that your file name ends in '.cgi.app'."

I chose both. This caused another problem in that the HTML (copied from the same page) calls for the name to be "test.cgi", so I changed the HTML to point to "test.cgi.app".

When I access the HTML from Safari I see a cute little gadget with a list that lets me pick one of a few colors. When I do so, though, I get a page that says

"Method Not Allowed

The requested method POST is not allowed for the URL /~xxx/test.cgi.app. (where xxx is my ID)

So what am I doing wrong?

OS 10.3.2

Regards,

Nelson Byrne
_______________________________________________
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.

  • Follow-Ups:
    • Re: AppleScript CGI
      • From: Graff <email@hidden>
  • Prev by Date: Re: file name manipulation
  • Next by Date: Re: AppleScript CGI
  • Previous by thread: Odd behavior with Satimage's "backup" command
  • Next by thread: Re: AppleScript CGI
  • Index(es):
    • Date
    • Thread