Hello. I'm a newb to AppleScript and am trying to make a workflow to open a new TextEdit window, similar to this one made for Chrome: https://github.com/caiogondim/alfred-chrome-window-workflow .
Here is my current script:
on alfred_script(q)
tell application "TextEdit"
make new window
tell application "System Events" to set frontmost of process "TextEdit" to true
activate
end tell
end alfred_script
Here's the workflow:
Calling it in Alfred with "tw" results in no behavior. Could someone please help me out?