• 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
Why won't this call a method in AppDelegate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why won't this call a method in AppDelegate?


  • Subject: Why won't this call a method in AppDelegate?
  • From: Brian Christmas <email@hidden>
  • Date: Wed, 17 Dec 2014 11:09:09 +1100

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



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Why won't this call a method in AppDelegate?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: ASObjC Runner, embedded in app bundle
  • Next by Date: Re: Why won't this call a method in AppDelegate?
  • Previous by thread: Re: ASObjC Runner, embedded in app bundle
  • Next by thread: Re: Why won't this call a method in AppDelegate?
  • Index(es):
    • Date
    • Thread