• 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: Scripting Bridge running method passing an array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Bridge running method passing an array


  • Subject: Re: Scripting Bridge running method passing an array
  • From: Kyle Sluder <email@hidden>
  • Date: Fri, 30 Oct 2009 00:02:49 -0700

On Thu, Oct 29, 2009 at 11:54 PM, Scott <email@hidden> wrote:
> Thanks for the response Kyle. I will ask Rogue. This is how you send
> commands via AS
>
>        tell application "Airfoil"
>
>                -- Connect to Airport Express
>                connect to (every speaker whose name is "Computer")
>
>        end tell

Ah, this would be a problem… your code is trying to pass an NSArray
with an NSString in it, whereas the command wants an NSArray
containing references to "speaker" objects.  You're going to need to
read the Scripting Bridge documentation a bit more thoroughly.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Scripting Bridge running method passing an array
      • From: Scott <email@hidden>
References: 
 >Scripting Bridge running method passing an array (From: Scott <email@hidden>)
 >Re: Scripting Bridge running method passing an array (From: Kyle Sluder <email@hidden>)
 >Re: Scripting Bridge running method passing an array (From: Scott <email@hidden>)

  • Prev by Date: Re: Seemingly Documentation confusion?
  • Next by Date: xml object memory issue
  • Previous by thread: Re: Scripting Bridge running method passing an array
  • Next by thread: Re: Scripting Bridge running method passing an array
  • Index(es):
    • Date
    • Thread