Re: AppleScript In Web Publishing...
Re: AppleScript In Web Publishing...
- Subject: Re: AppleScript In Web Publishing...
- From: Doug McNutt <email@hidden>
- Date: Mon, 5 Mar 2007 09:59:17 -0700
At 09:39 -0600 3/5/07, Peter Bunn wrote:
>I've written a droplet script that writes file://localhost/ links for
>various file types dropped on it, and creates a simple page of links to
>the files... nothing fancy. It also creates thumbnails for image files.
>I've worked out a simple list of table rows, one after the other, but
>again, that's not much more than a list.
On the real web folks typically use CGI (Common gateway interface) scripts for things like that. The script creates HTML on the fly while reading out the data items from a database or something smaller and simpler like a directory listing.
AppleScript can be used to create CGI scripts but, and it's anathema to suggest on this list, perl and php are much more common and capable.
Perl scripts that create HTML tables from text files are ubiquitous and one of them could easily be converted to store the result as an HTML document rather than passing it to, say, apache for delivery to a web user.
It works nicely to use an AppleScript compiled as a droplet to accept dropped files for input to perl or even simple C. Ask off line if you want to go that route. I have some CGI samples in perl that I would be happy to share.
--
Applescript syntax is like English spelling:
Roughly, though not thoroughly, thought through.
_______________________________________________
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