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 09:01:53 +1100
On 31 Jan 2015, at 5:04 am, Ron Reuter <email@hidden> wrote:
>
> Perhaps I’m misunderstanding the problem, but I’m having no problem making an ASOC-only app scriptable and
> implementing a handler that returns a record. Am I missing something?
Perhaps we're missing something. I have code like this:
property parent : class "NSScriptCommand"
on performDefaultImplementation()
set aDict to current application's NSDictionary's dictionaryWithDictionary:{aRes:"This is Test"}
return aDict
And the sedef entry says:
<result description="blah blah">
<type type="record"/>
</result>
And the log shows:
[10186:7475423] Error while returning the result of a script command: the result object...
{
aRes = "This is Test";
}
...could not be converted to an Apple event descriptor of type 'record'. This instance of the class '__NSDictionaryI' doesn't respond to -scriptingRecordDescriptor messages.
I'd love to see a working example, if you'd care to email one off-list.
--
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