• 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
Re: Applescript CGI Counter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript CGI Counter


  • Subject: Re: Applescript CGI Counter
  • From: Michelle Steiner <email@hidden>
  • Date: Sat, 14 Apr 2001 09:22:24 -0700

On 4/14/01 7:07 AM, List Guy <email@hidden> wrote:

>when the counter is incremented, the applescript will copy the image
>three.jpg to the "counter" folder renaming "three.jpg" to "ones.jpg" and
>replacing the old "ones.jpg" image. Of course, you'll need to keep a
>separate property or text file that tracks the proper counter value, but
>this way your web page will always include the correct html code.

But how does the counter get incremented? I know how to write a script
that will read a number, save it to a disk file, incriment it, and save
it back, but how does that script get triggered whenever a page is
accessed?

>Now:"So, the return value is all the html code that would display a web
>page?"
>
>Yes. Always. Whatever the server returns is the full html page. With
>languages like Perl & Applescript, the html code must be embedded in the
>script; with languages like PHP and VBS, the language is embedded in the
>html code.

I've seen methods where there's a simple line in the HTML code (like what
Ted Wood showed in his reply) that merely inserts text into the a line,
without having to assemble the page in parts; that's all that I'm trying
to do.

I can't believe that it has to be as complex as some of the responses
I've been getting make it out to be.

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Follow-Ups:
    • Re: Applescript CGI Counter
      • From: Jeffrey W Baumann <email@hidden>
  • Prev by Date: Re: CGI?
  • Next by Date: Re: Passing params to network script object-HELP!
  • Previous by thread: Applescript CGI Counter
  • Next by thread: Re: Applescript CGI Counter
  • Index(es):
    • Date
    • Thread