|
|
|
|
|
by larve
4836 days ago
|
|
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 end alfred_script |
|