Jump to content
Argus

[SOLVED] Finder workflow to open new window

Recommended Posts

Posted (edited)

I'm an AppleScript newb. I'm trying to make a workflow to open a new finder window.

 

Here is my current script: 

tell application "Finder"
	make new window
	activate
end tell

 

Calling it with my keyboard shortcut results in no behavior. I checked out the AppleScript finder documentation but I must be missing something. Could someone please help me out?

 

 

Edited by Argus
Solved by deanishe

Share this post


Link to post
Posted (edited)
2 hours ago, Argus said:

Calling it with my keyboard shortcut results in no behavior

 

“Does nothing” is not a useable description of a problem. Something is happening. When a script isn’t working, check Alfred’s debugger for an error message.

 

Fortunately, in this case, your mistake is obvious enough to diagnose without the error message: you need make new Finder window

 

Edited by deanishe

Share this post


Link to post

Thanks for the tip and solution. I am now using the debugger tool.

 

For any interested I had to make a couple other corrections:

1. Change "Argument required" to "No argument" in my keyword trigger

2. Change the Run Script so that it was running "/usr/bin/osascript" rather than "/usr/bin/"

 

 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...