I’m really struggling to understand how scripts call methods in each other.
Calling other scripts methods from the AppDelegate I’ve got down pat, but calling a method in the AppDelegate is frustratingly eluding me.
The caller handler is (and all the variables check out OK)…
on PrintTheDarnCoverPage() try say "print cover sheet caller" display dialog currentMailItemID & return & RTFDName & return & holding_folder & return & ftpPrintFlag & return & printDateTimeName & return & barCodeDateTimeName as text current application's AppDelegate's PrintTheDarnCoverPage:{currentMailItemID, RTFDName, holding_folder, ftpPrintFlag, printDateTimeName, barCodeDateTimeName} on error errmsg display dialog "PrintTheDarnCoverPage error " & errmsg end try end PrintTheDarnCoverPage
and the AppDelegate handler starts with….
on PrintTheDarnCoverPage:{tempID, RTFDName, holding_folder, ftpPrintFlag, printDateTimeName, barCodeDateTimeName}
if RunForOz then say "Printing cover sheet"
Calling the Appdelegate handler does not generate an error, which makes it difficult to find out what I’m doing wrong.
Advice requested please.
Regards
Santa
|