Re: Script Editor Crashing.....
Re: Script Editor Crashing.....
- Subject: Re: Script Editor Crashing.....
- From: Dave <email@hidden>
- Date: Wed, 16 Mar 2016 16:16:19 +0000
Hi Shane,
Great, thanks for the Clarification.
Is there a way in AppleScript-ObjC to dump to NSLog? Is there a way to monitor AppleEvents while it is running from a host Cocoa App?
All the Best
Dave
> On 16 Mar 2016, at 10:54, Shane Stanley <email@hidden> wrote:
>
> On 16 Mar 2016, at 9:38 PM, Dave <email@hidden> wrote:
>
>> So if I follow correctly, I should change all “as string” clauses to “as text”?
>
> To be on the safe side under 10.10 and using ASObjC, yes.
>
>> For some reason I thought that text and string were different
>
> They were once, quite a while back. AppleScript has had many types of string over the years.
>
>> and that I needed to use “as string” to make it work with the AppleScript-ObjC Bridge? Is this correct?
>
> No.
>
>> Also is there anywhere that documents what the different types map to from AS to Obj-C and vice-versa?
>
> A slip of paper will cover it. Text/NSString, boolean/BOOL and NSNumber, list/NSArray, real and integer/NSNumbers or various number primitives, records/NSDictionaries, and as of 10.11, dates/NSDates and files/NSURLs.
>
>> For instance is "as record” an NSDictionary?
>
> NSDictionary sort of maps to a record. It only works if the dictionary labels are strings, and going the other way they have to be user properties. There are also some gotchas with missing value, which used to be treated as nil rather than NSNull in some cases.
>
> --
> 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
_______________________________________________
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