Re: Applescript for the Internet
Re: Applescript for the Internet
- Subject: Re: Applescript for the Internet
- From: Timothy Bates <email@hidden>
- Date: Sat, 13 Jan 2001 14:49:32 +1100
Diane asked about cgi scripting for Macintosh
IMHO, the best thing for cgi creation is php3. This runs under OS-X (and any
other win9X or Unix), and together with MySQL (which also runs under OS-X)
is capable of Amazon-level performance.
to get drag and drop installs of these packages go to
<
http://homepage.mac.com/LightyearDesign/MacOSX/Packages/>
(and do send a nice thank you email to the author, who has done us a real
service putting these together - I wish Apple would do it.
However, php3 is not AppleScript (though it is a very approachable embedded
script). So ... to keep the power of embedding right in your html (no more
tedious permissions and separate files and such like), AND the power of
AppleScript, scrape together 25 bucks and go direct to
<
http://www.vampiresoft.com/Products/Internet/OpenScript.html>
Marco's fantastic WebStar compatible (which Apple's personal server is)
plugin allows you to write AppleScript in line with you html, just letting
the server know when you are going in and out of AppleScript by using the
<applescript></applescript> tag. For instance
<h1> hi Diane </h1>
<form name="example" method="post" action="www.myhome.come/handler.html">
<p>On a scale of 1 to 10, I like AppleScript <br>
<applescript>
--now we are writing applescript inside a
--webpage and the server will execute it on the fly!!
set outString to ""
repeat with n from 1 to 10
set outstring to outstring & "
<input type=\"checkbox\" name=\"checkbox\" value=\"" & n & "\">"
end repeat
return outstring
</applescript>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
Dr Timothy Bates <
mailto:email@hidden>
Macquarie Centre for Cognitive Science (MACCS)
Macquarie University
Ph 61 (2) 9850 8623
Fx 61 (2) 9850 6059