Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Wowzera

macrumors 6502a
Original poster
Oct 14, 2008
858
28
Brazil
Hello,

I've an applescript application that uses the dialog method to prompt user to choose files and using the files chosen by the user it will run some shell commands to modify them.

So I wanted to make it a Cocoa-applescript application. I opened Xcode, selected: New Project > Application > Cocoa-applescript application.

I clicked Classes and then copied my applescript code inside these lines:

PHP:
on applicationWillFinishLaunching_(aNotification)

end applicationWillFinishLaunching_

When I build it everything goes ok, I see the applescript running as it should (same as when the applescript application is used). I've already designed the Interface and have some little experience with Cocoa programming, but I've no clue how can I merge my applescript code with the Cocoa to use the designed Cocoa interface.
Could someone point me to the right direction?
Any help is appreciate!

Thanks anyway! :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.