ref: c93b2fb4d8d4879ab29d9ea578b6c02a23704f19
parent: 3282c9f4fb95c2739e772b6b87bd135bfc577595
author: Simon Howard <[email protected]>
date: Wed Jan 25 17:46:10 EST 2017
textscreen: Activate window for file select. This pops up the file select dialog immediately rather than waiting for the user to activate the application. But really the current file select code for OS X based on AppleScript is garbage and should just be replaced.
--- a/textscreen/txt_fileselect.c
+++ b/textscreen/txt_fileselect.c
@@ -329,6 +329,7 @@
#define APPLESCRIPT_WRAPPER \
"tell application (path to frontmost application as text)\n" \
+ " activate\n" \
" set theFile to (%s)\n" \
" copy POSIX path of theFile to stdout\n" \
"end tell\n"