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:
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!
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!