• 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: Andrew Oliver <email@hidden>
  • Date: Wed, 2 Aug 2006 11:07:59 -0700


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

Hey everyone,

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...

Thanks in advance!!!!

Simple:

property numTimesRun: 0

on run
   set numTimesRun to numTimesRun + 1
end run

Save this as an application and you're done (of course, I'm assuming you want more than that at the end of the day.

Andrew
:)
_______________________________________________
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


References: 
 >Help with apple script (From: Support Enfocus Software <email@hidden>)

  • Prev by Date: Help with apple script
  • Next by Date: Re: Help with apple script
  • Previous by thread: Help with apple script
  • Next by thread: Re: Help with apple script
  • Index(es):
    • Date
    • Thread