Need help with script

I am trying to write a script that will allow to install printers onto MacBooks Laptops. I have the script pretty much written in shell script,however, I am working on a gui that will allow the user to select the printers (only 1 or any number of multiple choices) with a select all button (which I am not sure how to code). I am stuck in Macs view on C++. I tried to use applescript, however it seems to throw some weird exited due to signal 5 (SIGTRAP). I have narrowed this error down to the applescript that compiles just fine in the script editor, but doesn’t work in Xcode.

Is there some compatibility issues with applescript 2.1.1 and xcode 2.0 on 10.4.1 on PPC? My office is getting me a new MacBook pro with leopard. The stupid question comes in the form of: How on earth do you code the Cancel button first?

I have used

-(IBAction) cancelButtonid)sender



However it doesn’t seem to work. Can someone point me in the right direction to get the GUI to call .sh files, get cancel button to work, the select all checkbox and finally the applescript compatibility. I am also trying to use:

where ver is a variable
ver=system (“sw_vers -productVersion”);

and I get errors complaining that ver is is a type mismatch and that the product of the system call which ends up being 10.4.1 is not a constant. And finally it complain about a missing token in the [textfield:ver] part as well. How do I solve this??

Browser: Firefox
Operating System: Mac OS X (10.5)