Jump to global search from keyboard outside Dynalist


#1

I’d like to be able to quickly open the cmd-O file search dialog in Dynalist even if Dynalist isn’t the currently selected tab in my browser. I’d be OK if this worked with the desktop app instead of the browser, in which case it could be invoked system wide on MacOS, but the idea is the same. I type a hotkey and I’m quickly in whatever outline I select, without too many steps…


#2

Note: this is inspired by the wfx extension that someone made for Workflowy and which was mentioned in another thread, but here I’m just talking about something I think should be a part of the native Dynalist experience…


#3

I made me an AutoKey-Shortcut for this:

window.activate('Dynalist',switchDesktop=True)
time.sleep(.3)
keyboard.send_keys("<ctrl>+f")

dynalist_demo

I think AutoKey is not available for OSX but this should be possible with most PhraseExpander/Shortcut-Software.


#4

Thanks. Yes, this should work the same way in AppleScript:

    tell application "Dynalist" to activate
    tell application "System Events"
	   keystroke "o" using {command down}
    end tell
    end

Thanks for the suggestion!

UPDATE: Works well if the app is already running, but it needs a delay if it isn’t. Here is a first go at a version that handles that:

if application "Dynalist" is running then
	tell application "Dynalist" to activate
	tell application "System Events"
		keystroke "o" using {command down}
	end tell
else
	tell application "Dynalist" to activate
	delay 2
	tell application "System Events"
		keystroke "o" using {command down}
	end tell
end if