Re: Help please with ASS and Snow Leopard
Re: Help please with ASS and Snow Leopard
- Subject: Re: Help please with ASS and Snow Leopard
- From: Shane Stanley <email@hidden>
- Date: Fri, 11 Sep 2009 11:22:12 +1000
- Thread-topic: Help please with ASS and Snow Leopard
On 11/9/09 10:50 AM, "Nicholas Wilton" <email@hidden> wrote:
> OSX Snow Leopard has depreciated ASS. How do I rewrite an ASS project in xcode
> under OSX 10.6?
> I am aware that I can turn on ASS using Terminal, but it seems that certain
> code instructions don't work correctly anymore.
> For example under 10.6 the applescript "Tell QuarkXpress (8.1)" "Open file
> xxxxx" fails with error. However it works perfectly under 10.5.
That shouldn't be happening.
> Can I write ASS under OSX 10.6? and if so how?
Theoretically, you turn on ASStudio and behave as if nothing has happened.
> Does this mean due to the introduction of AppleScriptObjC I should be learning
> Objective C instead and then rewriting my ASS projects with ObjC?
> What to do?
To keep your existing ASS projects working, I'd be inclined to edit them in
10.5 -- they should then also work fine in 10.6.
Longer term, you need to move away from ASStudio. How you do that depends a
bit on how complex your projects are. If they are essentially AppleScripts
to which you've added a bit of interface, there's no need to learn more than
a handful of Objective-C commands. You will need to learn how to build Cocoa
classes in AppleScript (simple), preferably how to use bindings (hard to
describe in words but a very elegant solution), how to write handlers that
you can connect to interface items like buttons and how to connect them
(simple), a few simple commands to get values from text fields (if you
eschew bindings), a couple more general commands (knowing which is the
trick, of course), and a few concepts like delegates. You'll probably also
want to become even more au fait with Interface Builder.
I gather more documentation on how to do this is coming from Apple soon; in
the meantime there are a few samples available from others.
I guess the real place to discuss this at the moment is the ASStudio mailing
list, but the interest is probably a bit wider at this stage.
--
Shane Stanley <email@hidden>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>
_______________________________________________
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