|
|
#1 |
|
applescript and xcode build and run error
Hi all,
I am quite new to xcode and apple script and I need help with my first project, I have been following the “hello world” tutorial and I haven’t got it to work so far. I am using xcode 3.2. Here is my script: script UntitledAppDelegate on applicationWillFinishLaunching_(aNotification) -- Insert code here to initialize your application before any files are opened end applicationWillFinishLaunching_ on applicationShouldTerminate_(sender) -- Insert code here to do any housekeeping before your application quits return my NSTerminateNow end applicationShouldTerminate_ end script on clicked theObject display dialog "hello world" end clicked Each time I try to build and run it fails with this Command /usr/bin/osacompile failed with exit code 1 Any ideas Thanks ![]()
|
|
|
|
0
|
|
|
#2 |
|
This is the downside to using AppleScript to write your app: you don't get told where the error is and just have to guess.
__________________
Sponsor me to cycle 100Km round London in the dark |
|
|
|
0
|
|
|
#3 |
|
Can I assume that "on clicked" is your own defined handler?
if so, the syntax needs to be "on clicked(theObject)" |
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| Applescript with cocoa | Renmusxd | Mac Programming | 0 | Nov 16, 2010 11:06 PM |
| Build and Run Error | Komickid | iPhone/iPad Programming | 1 | Dec 12, 2009 02:40 PM |
| Build and Run occasionally not installing? | firewood | iPhone/iPad Programming | 2 | Oct 21, 2008 03:31 PM |
| java: How do you build and run your project inside xcode instead of terminal? | macman2790 | Mac Programming | 2 | Jan 18, 2007 10:51 AM |
| Can Xcode build and intel-only app? | tuartboy | Mac Programming | 17 | Apr 21, 2006 03:04 AM |
All times are GMT -5. The time now is 12:10 PM.







Linear Mode

