script AppDelegate
property parent : class "NSObject"
property pMessageDictionary : missing value
property pRecipientDictionary : missing value
-- IBOutlets
property theWindow : missing value
on applicationWillFinishLaunching:aNotification
set my pMessageDictionary to current application's NSMutableDictionary's dictionaryWithDictionary:{aMessage:"yes"}
set my pRecipientDictionary to current application's NSMutableDictionary's dictionaryWithDictionary:{aRecipient:"no"}
set x to my newOutlookMessageDictionary()
current application's NSLog("newOutlookMessageDictionary() returned %@", x)
set y to my newOutlookRecipientDictionary()
current application's NSLog("newOutlookMessageDictionary() returned %@", y)
end applicationWillFinishLaunching:
on newOutlookMessageDictionary()
--say "newOutlookMessageDictionary"
copy the pMessageDictionary of me to myMessageDictionary
return myMessageDictionary as record
end newOutlookMessageDictionary
on newOutlookRecipientDictionary()
--say "newOutlookRecipientDictionary"
copy the pRecipientDictionary of me to myRecipientDictionary
return myRecipientDictionary as record
end newOutlookRecipientDictionary
end script
2015-11-18 09:51:19.209 Throw 2 ASObjC[19157:23104994] newOutlookMessageDictionary() returned {
aMessage = yes;
}
2015-11-18 09:51:19.210 Throw 2 ASObjC[19157:23104994] newOutlookMessageDictionary() returned {
aRecipient = no;
}