Re: Lists to XML ?
Re: Lists to XML ?
- Subject: Re: Lists to XML ?
- From: Shane Stanley <email@hidden>
- Date: Tue, 28 Mar 2017 14:56:08 +1100
On 28 Mar 2017, at 2:33 pm, Jean-Christophe Helary <email@hidden> wrote:
>
> ? How do you calculate that ?
You look up the header file for the class, and you'll see the enums match their CF equivalents. So you look them up, and they have values like (IUL << 5), which means binary 00100000 or 32. Add them together, and you get your answer. It's a bit more complicated because some are calculated as the sum of others.
I cheated and ran it in Objective-C :-)
(For anyone interested, every framework should contain a file called [frameworkName].bridgesupport, inside a folder called BridgeSupport. It's an XML file, and among other things it lists all the frameworks enums and their equivalent values. For example, "<enum name='NSXMLDocumentTidyHTML' value='512'/>". These are what ASObjC loads and relies on when running scripts.)
> I send a mail to the developer and suggested that the validator does not say "invalid" and proceed with the validation. Thank you for the confirmation.
Good plan -- that sort of thing makes you wonder quite how they are doing their validation.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
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