Question about handler
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.