Re:Alfred Dev Doctor – An Alfred workflow for documentation ...
by larve on Sunday March 24, 2013 @10:41AM
(#5432166)
I have dash lookup in alfred (without autocomplete though), by typing dl. I don't remember where I got it from:
on ApplicationIsRunning(appName)
tell application "System Events" to set appNameIsRunning to exists (processes where name is appName)
return appNameIsRunning
end ApplicationIsRunning
on alfred_script(q)
if ApplicationIsRunning("Dash") is false then
do shell script "open -a Dash"
end if
tell application "Dash"
activate
end tell
tell application "System Events"
keystroke "f" using {option down, command down}
keystroke "a" using command down
keystroke delete key
keystroke q
end tell
on ApplicationIsRunning(appName) tell application "System Events" to set appNameIsRunning to exists (processes where name is appName) return appNameIsRunning end ApplicationIsRunning
on alfred_script(q)
if ApplicationIsRunning("Dash") is false then do shell script "open -a Dash" end if
tell application "Dash" activate end tell
tell application "System Events" keystroke "f" using {option down, command down} keystroke "a" using command down keystroke delete key keystroke q end tell
end alfred_script