• 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
Folder action query 2: properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Folder action query 2: properties


  • Subject: Folder action query 2: properties
  • From: peter boardman <email@hidden>
  • Date: Wed, 10 Dec 2003 16:08:02 +0000

This may be a silly question, but I'm still trying to understand these... This
script - taken from the AppleScript Language Guide - displays 1, 2, 3, and
so on.

--
property currentCount : 0
increment()

on increment()
set currentCount to currentCount + 1
display dialog "Count is now " & currentCount & "."
end increment
--

but this script shows 1 each time it runs:

--
property currentCount : 0

on adding folder items to this_folder
set currentCount to currentCount + 1
display dialog "Count is now " & currentCount & "."
end adding folder items to
--

So why doesn't the property get remembered when the script runs the
second way?

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

  • Prev by Date: Re: Panther and AppleScript property not retained - why?
  • Next by Date: Re: Panther and AppleScript property not retained - why?
  • Previous by thread: Re: Chack keys pressed
  • Next by thread: Re: Folder action query 2: properties
  • Index(es):
    • Date
    • Thread