Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppleScript CGI



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.