• 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: help with a script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >help with a script (From: Brett VanBenschoten <email@hidden>)

  • Prev by Date: Re: [ANN] OSA Menu 1.2.3d2 TEST
  • Next by Date: Re: help with a script
  • Previous by thread: help with a script
  • Next by thread: Re: help with a script
  • Index(es):
    • Date
    • Thread