Re: Scriptable application can not return record data
Re: Scriptable application can not return record data
- Subject: Re: Scriptable application can not return record data
- From: Shane Stanley <email@hidden>
- Date: Sat, 31 Jan 2015 11:28:01 +1100
On 31 Jan 2015, at 9:01 am, Shane Stanley <email@hidden> wrote:
>
> I'd love to see a working example, if you'd care to email one off-list.
So Ron kindly sent me an example, and it looks like we were partly at cross purposes.
You can return a record if you define a "record-type" type in your sdef. This returns a record with fixed properties, as defined in your sdef. So instead of:
<result description="blah blah">
<type type="record"/>
</result>
You say:
<result description="blah blah">
<type type="my info"/>
</result>
and then:
<record-type name="my info" code="AbCd">
<property name="some name" code="EfGh" type="integer"/>
[...]
</record-type>
But you can't return a record with user fields whose properties you define on the fly.
Ron also confirmed that if you define a return type of list, no result is returned.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden