• 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: Scriptable application can not return record data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Scriptable application can not return record data
      • From: Shane Stanley <email@hidden>
References: 
 >Scriptable application can not return record data (From: Takaaki Naganoya <email@hidden>)
 >Re: Scriptable application can not return record data (From: Shane Stanley <email@hidden>)
 >Re: Scriptable application can not return record data (From: Takaaki Naganoya <email@hidden>)
 >Re: Scriptable application can not return record data (From: Ron Reuter <email@hidden>)

  • Prev by Date: Re: Scriptable application can not return record data
  • Next by Date: Re: My ASObjC app keeps crashing.
  • Previous by thread: Re: Scriptable application can not return record data
  • Next by thread: Re: Scriptable application can not return record data
  • Index(es):
    • Date
    • Thread