• 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: Question about handler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about handler


  • Subject: Re: Question about handler
  • From: Robert Poland <email@hidden>
  • Date: Fri, 2 Apr 2004 08:51:55 -0700

You can set pictureCount as a global variable. Do this at the top of the script:

global pictureCount

The values of global variables are saved between runs so it is a good idea to initialize them to clear any retained values that might mess up your calculations. You are doing this in the open handler already so this shouldn't be a problem.

- Ken

Is there a way to clear a variable like in C?
i.e. global pictureCount ()

Tia,
--
Bob Poland - Englewood, CO
http://www.ibrb.org/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Question about handler
      • From: Graff <email@hidden>
References: 
 >Question about handler (From: stephan <email@hidden>)
 >Re: Question about handler (From: Graff <email@hidden>)

  • Prev by Date: Re: Get System Info - How
  • Next by Date: ANNOUNCE: Property List Tools 1.0
  • Previous by thread: Re: Question about handler
  • Next by thread: Re: Question about handler
  • Index(es):
    • Date
    • Thread