Re: help with a script
Re: help with a script
- Subject: Re: help with a script
- From: Greg Strange <email@hidden>
- Date: Sun, 19 Nov 2000 11:47:40 +0000
on 11/19/00 5:42 PM, Brett VanBenschoten at email@hidden
wrote:
>
Here's the deal- I'm a newbie who's never done any Applescripting, but I
>
think I understand the gist of it. I'm trying to find / create a script that
>
will generate a sequential number each time it's run, i.e., it will create
>
the number "205" the first time it's run, "206" the 2nd time it's run, etc.
>
>
Does anyone know if this can be done? If it can, could someone offer me some
>
help or point me to where I can learn to do it?
Using properties:
--Begin script
property seqNum : 0
set seqNum to seqNum + 1
--end script
Properties survive over runs of a script. So running this script will
continually increase seqNum.
Hope that helps.
Greg Strange
--
...[Zeus] has led us on to know,
that Helmsman lays it down as law
that we must suffer, suffer into truth.
-Aeschylus, Agamemnon