Re: Scripting Bridge running method passing an array

2009-10-30 Thread has
On 30 Oct 2009, at 21:38, Kyle Sluder wrote: On Fri, Oct 30, 2009 at 2:35 PM, has wrote: No, the OP's code is passing a *single* reference that identifies *all* of the speaker objects that match the specified condition. No. Here is the OP's code: NSArray *setTheSpeaker; setTheSpeak

Re: Scripting Bridge running method passing an array

2009-10-30 Thread Kyle Sluder
On Fri, Oct 30, 2009 at 2:35 PM, has wrote: > No, the OP's code is passing a *single* reference that identifies *all* of > the speaker objects that match the specified condition. No. Here is the OP's code: NSArray *setTheSpeaker; setTheSpeaker = [[NSArray alloc] initWithObjects:connectToT

Re: Scripting Bridge running method passing an array

2009-10-30 Thread has
Kyle Sluder wrote On Thu, Oct 29, 2009 at 11:54 PM, Scott 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 "Compute

Re: Scripting Bridge running method passing an array

2009-10-30 Thread Kyle Sluder
On Fri, Oct 30, 2009 at 12:55 PM, Scott wrote: > Through some help I was able to get this resolved. My problem was I > didn't look at SBElementArray closely enough. I thought it was only > used to get objects not pass them back to an application. Makes sense > that Scripting Bridge needs to use it

Re: Scripting Bridge running method passing an array

2009-10-30 Thread Scott
Through some help I was able to get this resolved. My problem was I didn't look at SBElementArray closely enough. I thought it was only used to get objects not pass them back to an application. Makes sense that Scripting Bridge needs to use it's own array's now that I think about it. I was trying t

Re: Scripting Bridge running method passing an array

2009-10-30 Thread Scott
I have read over the developer documents but am still confused. Do I need to look at "classForScriptingClass"? I was playing around with this but it wasn't making a lot of sense of sense in this instance. I could understand if I was trying to send the speaker to an object but I'm trying to run the

Re: Scripting Bridge running method passing an array

2009-10-30 Thread Kyle Sluder
On Thu, Oct 29, 2009 at 11:54 PM, Scott 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") > >  

Re: Scripting Bridge running method passing an array

2009-10-29 Thread Scott
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 On Fri, Oct

Re: Scripting Bridge running method passing an array

2009-10-29 Thread Kyle Sluder
On Thu, Oct 29, 2009 at 7:13 PM, Scott wrote: > - (void) connectTo:(NSArray *)x password:(NSString *)password;  // > Connect to the Airport Express speakers > - (void) disconnectFrom:(NSArray *)x;  // Disconnect from the speakers What kind of objects do these commands take when using them from Ap

Scripting Bridge running method passing an array

2009-10-29 Thread Scott
Hello, I'm just learning Objective-C/Cocoa with limited programming background. I am trying to control an application via AppleScript commands using Scripting Bridge. I am able to do almost everything I want except for two methods I can't get to work. I would like to implement the following method