Connection is invalid problem
Connection is invalid problem
- Subject: Connection is invalid problem
- From: Larry McMunn <email@hidden>
- Date: Fri, 02 Sep 2011 11:49:28 -0400
I have an application called "Call Hello" whose sole function is to call other another xcode program --"Hello Guy" to run.
"Hello Guy" runs and performs its duties correctly, displaying a dialog "Hello" for 2 seconds and then quits correctly. "Call Hello" stops and will not continue to the next step. Instead, I get this message in the log:
-----------------------
2011-09-02 11:44:19.586 Call Hello[60518:a0f] *** -[Call_HelloAppDelegate applicationWillFinishLaunching:]: Hello Guy got an error: Connection is invalid. (error -609)
-----------------------
Here's the calling script:
script Call_HelloAppDelegate
property parent : class "NSObject"
on applicationWillFinishLaunching_(aNotification)
fauxIdle_(3)
end applicationWillFinishLaunching_
on applicationShouldTerminate_(sender)
return current application's NSTerminateNow
end applicationShouldTerminate_
on fauxIdle_(secsDelay)
beep
tell application "Hello Guy"
activate
end tell
--**
set theResult to result
if class of theResult is in {integer, real} and theResult > 0 then set secsDelay to theResult
performSelector_withObject_afterDelay_("fauxIdle:", secsDelay, secsDelay)
end fauxIdle_
end script
+++++++++++++++++++++++++++++++++++++++
"Hello Guy" is a simple app that activates and displays a dialog "Hello" for two seconds, then quits. Here's Hello Guy's simple code:
script Hello_GuyAppDelegate
property parent : class "NSObject"
on applicationWillFinishLaunching_(aNotification)
display dialog "Hello" giving up after 2
tell current application's NSApp to terminate_(me)
end applicationWillFinishLaunching_
on applicationShouldTerminate_(sender)
-- Insert code here to do any housekeeping before your application quits
return current application's NSTerminateNow
end applicationShouldTerminate_
end script
Any help is greatly appreciated.
----------------------------------------
Happy Automation,
Larry McMunn, President
Mobile: (856) 393-4756 or Skype: wlarrymcmunn
McMunn Associates, Inc. • Collingswood, NJ • Seminole, FL
"If you look backward in this business, you'll be crushed. You have to look forward"
--Steve Jobs
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden