• 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
Re: AppleScript-ObjC XCode compile errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript-ObjC XCode compile errors


  • Subject: Re: AppleScript-ObjC XCode compile errors
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 18 Nov 2015 09:52:41 +1100
  • X_v_e_cd: 496a75b9a5e67261a34c615e0f41a4a7
  • X_v_r_cd: 3bacd79f802a7d0904db8047d9fd4705

On 18 Nov 2015, at 3:31 AM, Dave <email@hidden> wrote:

Why should one give an error and one be ok? Script Explorer thinks it’s ok, but XCode barfs

If there's a compile error in Xcode, the error gives the range of the problematic code. Does that help you track it down?

This works fine in Xcode here:

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;
}


-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >AppleScript-ObjC XCode compile errors (From: Dave <email@hidden>)

  • Prev by Date: Re: applescripting sub mailboxes in Mail
  • Next by Date: Re: POSIX vs Macinotosh Path Strings
  • Previous by thread: AppleScript-ObjC XCode compile errors
  • Next by thread: POSIX vs Macinotosh Path Strings
  • Index(es):
    • Date
    • Thread