• 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: Applescript error - NSCannotCreateScriptCommandError
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript error - NSCannotCreateScriptCommandError


  • Subject: Re: Applescript error - NSCannotCreateScriptCommandError
  • From: Steve Palmer <email@hidden>
  • Date: Mon, 19 Jul 2004 16:08:56 -0700

Yes, I'm sure but the breakpoint on the code that returns the tasks isn't being hit.

I guess that at this point I really need some better documentation or more sample code. Specifically I'd like to know more about how AppleScript resolves "set foo to name of current task" where "current task" returns a Task object. Same for "set foo to every task". That would help me fill in the gaps in my knowledge of how to support AppleScript in a Cocoa application.

- Steve


On Jul 19, 2004, at 8:07am, Nick Zitzmann wrote:

On Jul 19, 2004, at 8:52 AM, Steve Palmer wrote:

I tried adding a tasks function that returned an NSArray but I just got an NSInternalScriptError.

Are you sure it's returning an array? If the method is actually returning nil, then that could cause a strange AppleScript error to be raised.

Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


- Steve
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Applescript error - NSCannotCreateScriptCommandError (From: Steve Palmer <email@hidden>)
 >Re: Applescript error - NSCannotCreateScriptCommandError (From: Nick Zitzmann <email@hidden>)
 >Re: Applescript error - NSCannotCreateScriptCommandError (From: Steve Palmer <email@hidden>)
 >Re: Applescript error - NSCannotCreateScriptCommandError (From: Nick Zitzmann <email@hidden>)
 >Re: Applescript error - NSCannotCreateScriptCommandError (From: Steve Palmer <email@hidden>)
 >Re: Applescript error - NSCannotCreateScriptCommandError (From: Nick Zitzmann <email@hidden>)
 >Re: Applescript error - NSCannotCreateScriptCommandError (From: Steve Palmer <email@hidden>)
 >Re: Applescript error - NSCannotCreateScriptCommandError (From: Nick Zitzmann <email@hidden>)
 >Re: Applescript error - NSCannotCreateScriptCommandError (From: Steve Palmer <email@hidden>)
 >Re: Applescript error - NSCannotCreateScriptCommandError (From: Nick Zitzmann <email@hidden>)
 >Re: Applescript error - NSCannotCreateScriptCommandError (From: Steve Palmer <email@hidden>)
 >Re: Applescript error - NSCannotCreateScriptCommandError (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Services Cache problem
  • Next by Date: Re: threads in Xcode
  • Previous by thread: Re: Applescript error - NSCannotCreateScriptCommandError
  • Next by thread: Re: Applescript error - NSCannotCreateScriptCommandError
  • Index(es):
    • Date
    • Thread