Displaying 1 result from an estimated 1 matches for "consoleinput".
Did you mean:
console_input
2005 Dec 16
1
AppleScript commands don't execute until mouse over console window (PR#8405)
...up the event queue after the command
has been stuffed into the input buffer.
--- RController.m (revision 2076)
+++ RController.m (working copy)
@@ -1104,7 +1104,18 @@
The input replaces what the user is currently typing.
*/
- (void) sendInput: (NSString*) text {
+ NSPoint null = {0,0};
[self consoleInput:text interactive:YES];
+ [NSApp postEvent:[NSEvent otherEventWithType: NSApplicationDefined
+ location: null
+ modifierFlags: 0
+ timestamp: 0
+...