Re: AppleScript In Web Publishing...
Re: AppleScript In Web Publishing...
- Subject: Re: AppleScript In Web Publishing...
- From: Emmanuel <email@hidden>
- Date: Mon, 5 Mar 2007 15:11:00 +0100
At 6:49 AM -0600 3/5/07, Peter Bunn wrote:
I know almost nothing about the use of AppleScript in print publishing,
so I haven't got a clue how it might be used in web publishing either. I
assume it is, in some capacity...
Can anyone point me to an overview of how AS might be used in the process
of generating complex HTML pages? My guess is AS would be used to fill
in existing templates rather than creating entire pages at a time, but
I'm curious how it's done. A 'simple' example of what I'm asking about
would be a Google News page... no, not the search aspects of it, but the
formatting of the page, and the placement of images and stories.
Just thought there might be some folks here who have some experience in
this area.
Peter, we have developed two sites which use AppleScript to serve
dynamic pages. And, yes, we mostly (there are exceptions however)
fill in existing templates, leveraging on XMLLib.osax to work on the
HTML tree (DOM if you prefer) rather than on the raw text.
These two sites are: <http://www.mwol.com> (a proof of concept), and:
<http://beta.quomodo.com> (the beta of the real project.)
Both use SmileServer and a specific cgi [1]. All in all this makes an
environment not less powerful than the usual PHP/mySQL, and quite a
lot easier to debug, and with actually more available features -
since somehow AppleScript can call any program.
You can download Smile and ask for a trial SmileServer license.
Emmanuel
Satimage-software, the makers of Smile
[1] The cgi's specificity is to make the request into a p-list, and
to send it to a given port, say 22222. On its side, SmileServer's job
is to define an AppleScript handler, say "processrequest" as its
entry point for port 22222. "processrequest(s)" will thus receive the
plist as its first parameter (and an ID to the request as the second
parameter, to be used for asynchronous processing.)
_______________________________________________
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