• 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: How can I pass a counter result out of a script object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: How can I pass a counter result out of a script object
  • Next by Date: Re: How can I pass a counter result out of a script object
  • Previous by thread: Re: How can I pass a counter result out of a script object
  • Next by thread: Re: How can I pass a counter result out of a script object
  • Index(es):
    • Date
    • Thread