Folder action query 2: properties
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.