Jump to content

[SOLVED] Trying to make TextEdit workflow to open new window


Recommended Posts

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:image.png.8ec1cc6f26ffdcaa04af4fc281446da7.png

 

Calling it in Alfred with "tw" results in no behavior. Could someone please help me out?

 

Edited by vitor
Solved by deanishe
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...