Re: Folder action query 2: properties
Re: Folder action query 2: properties
- Subject: Re: Folder action query 2: properties
- From: Jon Pugh <email@hidden>
- Date: Thu, 11 Dec 2003 07:44:48 -0800
At 4:08 PM +0000 12/10/03, peter boardman wrote:
>
--
>
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?
Folder Actions apparently doesn't save scripts after running them. I'd call this a bug.
Jon
_______________________________________________
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.