Cocoa Bridge

“AppleScript is a first-class Cocoa citizen. (WWDC session “AppleScript and Cocoa Bridge”: “AppleScript is now a first-class language for Cocoa development thanks to the updated Cocoa Bridge in Snow Leopard. Discover how the Cocoa Bridge gives AppleScript consistent access to all the Cocoa frameworks, including full support for bindings and connections in Interface Builder. Learn how to transition your applications from AppleScript Studio to this more powerful, efficient architecture.”)”

What this means for newbie AppleScript programmers? Is there anywhere online more information and easy tutorials about this? Does this mean that i can include more easily Cocoa code in AppleScript?

Heh, well I think it says you can include Applescript into > Cocoa projects, not the other way around. As a “beginning Cocoa programmer” I think it’s already tough enough as it is, and the few times I’ve added Cocoa to my AScript, it was less than easy. :expressionless:

No, that’s Scripting Bridge. Cocoa Bridge supposedly adds Cocoa calls to AppleScript, a s a replacement for call methods. I presume it also replaces the “on” handlers generated by Interface Builder with the Cocoa equivalent handlers.

I just hope that the AppleScript syntax incarnation of Cocoa routines uses labeled parameters rather than the horrid positional parameters we’ve seen in call method.

It seems that all existing ASS projects won’t run in the new XCode and that we’ll have to rewrite most of our existing code (handlers and references to objects) to migrate across. This is really going to shake things up. Anyone have any more information on what’s happening here?

Anyone who does currently is under NDA.

I already ordered my snow leopard copy. What will happen if I install it on the machine that I use to create ASS projects? Surely the answer to that question isn’t under any NDA?

I opened up one of my AppleScript Studio Apps in the new XCode and got it to compile just fine. (don’t think it will allow 64-bit compiles)

According to this. http://developer.apple.com/mac/library/releasenotes/ScriptingAutomation/RN-AppleScriptObjC/index.html

This is a very interesting development.

Does this mean we may be able to write iPhone apps in AppleScript?

Going to be digging into this heavily very soon. :smiley: