ASTDG ASS examples rewritten in ASOC
ASTDG ASS examples rewritten in ASOC
- Subject: ASTDG ASS examples rewritten in ASOC
- From: Matt Neuburg <email@hidden>
- Date: Fri, 04 Sep 2009 18:01:09 -0700
- Thread-topic: ASTDG ASS examples rewritten in ASOC
Pls forgive the cross-post; this should not be the venue for discussing ASOC
(AppleScriptObjC bridge). I'm just cross-posting here because for some
reason discussion on that topic bled over into this list earlier this week.
So, this is just to mention that the two AppleScript Studio examples from my
book, AppleScript: The Definitive Guide (p. 27 and pp. 437-451 plus pp.
472-479) have been rewritten as AppleScriptObjC bridge projects. If you're
conversant with Xcode and want to examine the code, you can download the
examples and do so. This might give you a sense of what it takes to get
going with ASOC in Snow Leopard.
** DiskLister is a minimal hello-world app. It does nothing of any value
whatever: it just lists your disks. However, this shows how simple it is to
populate a table (basically one short line of code).
** SearchTidBITS is also quite simple, but it demonstrates a lot of
fundamental techniques and abilities, including:
* Calling into another scripting language (Ruby)
* Calling into your own Objective-C code (and back again)
* Internet interaction
* Populating a table, user interaction with a table
* Bindings and outlets
* Scriptability via AppleScript!
The application doesn't do a lot (it's deliberately simple, an example), but
I think it's remarkable how much it does do with very little code.
WARNING! Because this is just an example, and because it depends upon Ruby,
it fails unless the user (you) has Ruby set up correctly. In particular
there is a dependency on nokogiri. If you haven't installed nokogiri
already, say "sudo gem install nokogiri" in the Terminal.
For a screen shot of SearchTidBITS in action, and download links, go to my
home page (URL in my sig) and click AppleScript Things on the left. Then
scroll down a little to screen shot and the download info above it (or just
search on "ASOC"). m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
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