Re: [Slightly OT] Scripting Bridge in Leopard
Re: [Slightly OT] Scripting Bridge in Leopard
- Subject: Re: [Slightly OT] Scripting Bridge in Leopard
- From: has <email@hidden>
- Date: Thu, 1 Nov 2007 18:40:48 +0000
On 1 Nov 2007, at 13:21, Rob Stott wrote:
Cheers for the response. In answer to your question, I've been
trying to work through the example using iTunes and Objective-C 2.0
here;
http://developer.apple.com/documentation/Cocoa/Conceptual/ScriptingBridgeConcepts/index.html#/
/apple_ref/doc/uid/TP40006104
(Under 'Using Scripting Bridge'). Just nothing I do based on the
tutorial works or even compiles. I'm clearly doing something dumb
(I'm fairly new to Obj-C and, obviously, Scripting Bridge). I was
kind of wondering whether anyone had a working example so I could
compare theirs to my ham-fisted effort!
I might have time to worth through the Apple tutorial at the weekend,
in which case I'll forward a copy afterwards assuming Bill or someone
else doesn't respond first.. If you want to try to troubleshoot
yourself in the meantime you'll need to provide more information about
what you've done so far and what the error is.
Given that you're fairly new to ObjC you might want to work through
the general ObjC tutorials to get up to speed there before tackling
Scripting Bridge if you've not already done so.
Another option would be to use Python or Ruby rather than ObjC,
avoiding the need to create a full Xcode project and recompile your
code every time you want to make a change. Both come with interactive
command-line interpreters (man python, man irb), or there's various
free and paid third-party apps you can use if you prefer working in a
more Script Editor style. You'll still need a passing familiarity of
ObjC in order to understand PyObjC/RubyCocoa, but you don't need to be
competent in it in order to use them. There are several Python and
Ruby-based examples of Scripting Bridge usage on Apple's site.
Lastly - and goes without saying really - check out the links in my
sig if you fancy exploring some third-party Python/Ruby/ObjC
alternatives to Scripting Bridge. Perl fans will also be pleased to
hear that Leopard includes an updated version of Mac::Glue that now
works on Intel as well as PPC Macs (the version of Mac::Glue included
in Tiger was broken on i386).
HTH
has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden