• 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
Question about handler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about handler


  • Subject: Question about handler
  • From: stephan <email@hidden>
  • Date: Fri, 02 Apr 2004 09:44:43 -0500

Hello all,

Is there a way to pass the info for a variable from one handler to an other
one. I need to be able to count the number of file beeing process.

Example:


on open objectList

set pictureCount to 0

repeat with objectRef in objectList
set pictureFileRef to objectRef
processAFile (pictureFileRef)
end repeat

finalizeProcess ()
end open objectList



on processAFile (pictureFileRef)

copy file pictureFileRef to folder x
set pictureCount to pictureCount + 1

end processAFile



on finalizeProcess ()

display dialog "Number of images copied is:" pictureCount

end finalizePorcess

Thanks!

--

Stephan Adam

Stephan Adam Consultant inc.
Solutions d'automatisation
www.saconsultant.com

email@hidden
Cell. : (514) 944-6139

Membre associi, Filemaker Solutions Alliance
Associate Member, Filemaker Solutions Alliance
_______________________________________________
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.


  • Follow-Ups:
    • Re: Question about handler
      • From: Graff <email@hidden>
  • Prev by Date: Batch PDF Conversions
  • Next by Date: Saving Entourage Attachment solution
  • Previous by thread: Re: Batch PDF Conversions
  • Next by thread: Re: Question about handler
  • Index(es):
    • Date
    • Thread