• 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 apple script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with apple script


  • Subject: Re: Help with apple script
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 2 Aug 2006 11:09:19 -0700

On Aug 2, 2006, at 11:01 AM, Support Enfocus Software wrote:

I am a newbie to applescript and need to write a stand alone app with it.

I need a script that will add 1 integer every time the script is run.

So if it starts at 1 the next time it is run it will show 2 etc...

You do that by making the number a property.

property increment : 1
display dialog increment
set increment to increment + 1

If you recompile the script, it will reset the number to 1; otherwise it will keep adding 1 to the number forever--or until it exceeds the maximum integer value, whichever comes first.

-- Michelle

--
"Our enemies are innovative and resourceful, and so are we. They never stop thinking about new ways to harm our country and our people, and neither do we." --George W. Bush, Aug 5, 2004.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Help with apple script
      • From: kai <email@hidden>
References: 
 >Help with apple script (From: Support Enfocus Software <email@hidden>)

  • Prev by Date: Re: Help with apple script
  • Next by Date: Re: Applescript-users Digest, Vol 3, Issue 391 (out of office)
  • Previous by thread: Re: Help with apple script
  • Next by thread: Re: Help with apple script
  • Index(es):
    • Date
    • Thread