PDA

View Full Version : AppleScript with Xcode error




laur5730
Nov 1, 2009, 10:13 AM
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"
activate
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



Mentaire
Apr 16, 2010, 06:28 AM
Hi, I just read yor question. Have you solved your problem yet?