re:to restate: check list routine
re:to restate: check list routine
- Subject: re:to restate: check list routine
- From: Ken Dobson <email@hidden>
- Date: Thu, 15 Mar 2001 18:24:09 -0500
on 3/15/01 12:19 PM, email@hidden at
email@hidden wrote:
>
Message: 1
>
Date: Wed, 14 Mar 2001 12:43:51 -0600
>
From: Rick Plummer <email@hidden>
>
Reply-To: email@hidden
>
Organization: Artcraft, Inc. Imaging Dept.
>
To: email@hidden
>
Subject: to restate: check list routine
>
>
I would like to generate a list of serial numbers for a run-only script.
>
Then have a routine to check the list for a match, before running.
Don't know if you mean random numbers or a set of specific numbers from a
given starting point , but either way it would be easy enough to store them
in a property list
property thelist : {}
if length of thelist is less than 1 then
set thenumber to 1014356
repeat 15 times
set newnumber to thenumber + 1
set the end of thelist to newnumber
set thenumber to newnumber
end repeat
end if
if thelist contains 1014358 then
beep 3
end if