• 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: Help please with ASS and Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Help please with ASS and Snow Leopard (From: Nicholas Wilton <email@hidden>)

  • Prev by Date: Help please with ASS and Snow Leopard
  • Next by Date: Re: PowerPoint Slide Show
  • Previous by thread: Help please with ASS and Snow Leopard
  • Next by thread: 10.6.1 error "The Finder is busy." number -15260
  • Index(es):
    • Date
    • Thread