Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > What are the benefits and drawbacks of using Applescript Studio vs standard Cocoa?

What are the benefits and drawbacks of using Applescript Studio vs standard Cocoa?
Thread Tools
Dedicated MacNNer
Join Date: Dec 2003
Status: Offline
Reply With Quote
Dec 29, 2004, 10:12 PM
 
I'm just curious, what benefits are there to using Applescript Studio to build Cocoa applications vs using Objective-C? I just started really learning Cocoa, and I find it much much easier to use Applescript Studio.

Is and Applescript Studio application just as fast in terms of speed as an Objective-C Cocoa application?
15 inch MacBook Pro 2.16 GHz, 2 GB RAM, 7200 RPM 100GB HDD.

Dual 2.5 GHz Power Mac G5, 1 GB RAM, 250 GB HDD, ATI Radeon X800XT.
     
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Dec 30, 2004, 07:38 AM
 
The benefit of using AppleScript Studio is that you are using AppleScript to write the program, the drawback is you are using AppleScript to write the program.

AppleScript is a very easy language to use for simple things especially when you use it to glue different programs together (for example getting the currently playing track from iTunes and sending it as a message to someone through Adium/iChat). However, it is still a scripting language, and as such is not cut out for manipulating large amounts of data, nor does it really scale well to large applications.

For a certain level of program AppleScript Studio is a great solution, but for larger apps it is not a good idea.

Secondarily, AppleScript is not as fast as other languages can be. That should not really be a factor, because by the time run-time is a factor you have probably run across other reasons to switch languages.
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Dec 30, 2004, 01:50 PM
 
Also note that if you get into any depth, you'll just be using AppleScript to call Obj-C methods on things, in which case you might as well just be using Obj-C.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:03 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2