AppleScript with Xcode error

Discussion in 'Mac Programming' started by laur5730, Nov 1, 2009.

  1. laur5730 macrumors newbie

    Oct 29, 2009
    Every time I try to launch my project, it gives me an error:
    Command /usr/bin/osacompile failed with exit code 1
    How do I correct this?

    --  WoW_WorkerAppDelegate.applescript
    --  WoW Worker
    --  Created by *** on 01/11/09.
    --  Copyright 2009 __MyCompanyName__. All rights reserved.
    script WoW_WorkerAppDelegate
    	property parent : class "NSObject"
    	on applicationWillFinishLaunching_(aNotification)
    		tell application "TextEdit"
    		end tell
    	end applicationWillFinishLaunching_
    	on clicked theObject
    		tell application "System Events"
    			keystroke "Hello :D"
    		end tell
    	end clicked
    	on applicationShouldTerminate_(sender)
    		-- Insert code here to do any housekeeping before your application quits 
    		return current application's NSTerminateNow
    	end applicationShouldTerminate_
    end script
  2. Mentaire macrumors newbie

    Apr 16, 2010
    Still searching for an answer?

    Hi, I just read yor question. Have you solved your problem yet?

Share This Page