Glue script problem
Matt Neuburg
matt at tidbits.com
Thu Apr 4 11:53:20 PST 2002
On Mon, 1 Apr 2002 11:17:42 +0000, Douglas Wagner <hdmw at mac.com> said:
>Can someone tell me why this glue script doesn't work.
>
>on countMailboxes (accountObj=nil) {
> if (accountObj == nil) {
> accountObj = account[1]}; -->error 'account' undefined
> with objectModel, Mail, eventInfo {
> return (core.count (id, accountObj, mailbox))}};
>countMailBoxes()
>
>Note:
>system.verbs.apps.Mail.eventInfo.account is 'mact'
>system.verbs.apps.Mail.eventInfo.mailbox' is 'mbxp'
>system.verbs.apps.Mail.appInfo.id is 'emal'
>system.verbs.apps.Mail.id is 'emal'
>
>I've also get error 'eventInfo' not defined if the account[1] line is
>commented out.
The problem is that "mail" was an unfortunate choice of name. Try jumping
to "mail" and you'll see what I mean. Read my book (online) to learn about
how Frontier resolves names. m.
--
matt neuburg, phd = matt at tidbits.com, http://www.tidbits.com/matt
pantes gar anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
More information about the Frontier-Users
mailing list