Re: How can I pass a counter result out of a script object
Re: How can I pass a counter result out of a script object
- Subject: Re: How can I pass a counter result out of a script object
- From: Bill Metzinger <email@hidden>
- Date: Sat, 15 Nov 2003 00:24:15 -0500
On Friday, November 14, 2003, at 10:00 PM, Mark Clyma wrote:
The "gfileUpdated" variable holds the
number of files updated (the number of ".php" files whose "xml" tag
line
was deleted). When I try to display the variable at the end of the
script I always end up with zero (0).
property gFileExtToSave : {".php"}
property gTagToDelete : "<?xml version=\"1.0\" encoding=\"US-ASCII\"?>"
property gfileUpdated : 0
on open (theFiles)
script foo
property FileList : {}
property gfileUpdated : 0
on open theFile
Mark,
You're declaring gfileUpdated to be 0 every time script foo fires.
Take that out and you got it.
Bill
} There are 10 kinds of people in the world.
} Those who understand binary and those that don't.
_______________________________________________
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.