Jump to content
Colin

Dual Finder windows

Recommended Posts

 

I dislike have to manually resize and position Finder windows, so after a little research I came up with this solution

This workflow produces two Finder windows side by side, any size any position.

Modify the script to suit your needs. Hope someone finds it as useful as I do.

 

http://www.manorts.com/alfred/Dualpane.alfredworkflow

Share this post


Link to post

Skol, Colin.

 

Update: After trying it on my MacOS 10.12.3 Beta (16D30a), the "bounds" property isn't functioning correctly, so the windows do not line up properly, even after playing with the values.

Edited by flome

Share this post


Link to post
On 20/01/2017 at 5:14 AM, flome said:

Skol, Colin.

 

Update: After trying it on my MacOS 10.12.3 Beta (16D30a), the "bounds" property isn't functioning correctly, so the windows do not line up properly, even after playing with the values.

 

I have the latest release 10.12.2 and it works okay. I will have to wait until 10.12.3 is not in Beta and is released.

Share this post


Link to post

I am using 10.12.3 on a late 2013 Mac Pro and the Dualpane workflow functions fine for me.  Two Finder windows line up correctly as specified by the default "bounds" with my default set to "icon" view.

Share this post


Link to post
Posted (edited)

any information that this is going to work on Catalina, might be my only reason to buy Alfred

 

Edited by tosbsas

Share this post


Link to post
19 hours ago, tosbsas said:

any information that this is going to work on Catalina, might be my only reason to buy Alfred

 

 

It works on Catalina.

Share this post


Link to post
On 5/11/2020 at 5:12 PM, tosbsas said:

maybe you can help me than.

 

If you want help, then please try to provide an actionable description of your problem. Were there any error messages in Alfred's debugger? If it only opens one window, which one?

Share this post


Link to post

sorry I am pretty new to this. I opens finder but only one pane. There is no second pane visible. 

 

Pane that opens is user/macpro
 

Share this post


Link to post
43 minutes ago, tosbsas said:

sorry I am pretty new to this. I opens finder but only one pane. There is no second pane visible. 

 

Pane that opens is user/macpro
 

 

If you have a finder window open and you trigger this workflow a 2nd finder window will/ should pop up 

Share this post


Link to post
8 minutes ago, Bemawr said:

If you have a finder window open and you trigger this workflow a 2nd finder window will/ should pop up 


Going by the code, it closes any open windows, then opens one at your home directory and a second showing your ~/Documents folder.

 

It sounds like it’s the second window failing to open, so it might be because it’s too big for the screen.

 

Hard to say because @tosbsas apparently didn’t check the debugger like I asked.

Share this post


Link to post
Posted (edited)

oh Mann Deanishe, told you I am new to this. I actually only bought license to be able to use this workflow

 

I found this as log on 2 tries
 

[17:18:39.255] Logging Started...

[17:18:46.815] Dualpane[Keyword] Processing complete

[17:18:46.817] Dualpane[Keyword] Passing output '' to Run NSAppleScript

[17:19:36.198] Dualpane[Keyword] Processing complete

[17:19:36.202] Dualpane[Keyword] Passing output '' to Run NSAppleScript

 

 

This is catalina - I changed documents to downloads and it opens a tab with downloads but no dualpane like you get with forklift or Pathfinder

Edited by tosbsas

Share this post


Link to post
8 hours ago, tosbsas said:

no dualpane like you get with forklift or Pathfinder

 

It doesn't actually do dualpane: Finder can't do that. It just opens two windows next to each other.

 

There could be a couple of things going wrong here. What's your monitor's resolution?

Share this post


Link to post
7 hours ago, deanishe said:

 

It doesn't actually do dualpane: Finder can't do that. It just opens two windows next to each other.

 

There could be a couple of things going wrong here. What's your monitor's resolution?

 

Its a 13'' MacBook Pro and I use standard there.

Share this post


Link to post
7 hours ago, deanishe said:

This workflow might also be useful:

 

 

also get only one window :-((

 

[09:18:51.916] Logging Started...

[09:19:01.461] DualFinder[Hotkey] Processing complete

[09:19:01.462] DualFinder[Hotkey] Passing output '' to Run NSAppleScript

Share this post


Link to post
Posted (edited)
7 hours ago, deanishe said:

@tosbsas: Can you try the script I posted here:

In Alfred, paste it into a Run Script action with Language = /usr/bin/osascript (AS)

 

you lost me again - sorry - dunno how to paste that with what?

 

[09:18:51.916] Logging Started...

[09:22:47.966] Dualpane[Keyword] Processing complete

[09:22:47.970] Dualpane[Keyword] Passing output '' to Run NSAppleScript

[09:22:47.975] ERROR: Dualpane[Run NSAppleScript] {

    NSAppleScriptErrorBriefMessage = "Zeilenende, etc. erwartet, aber Identifier gefunden.";

    NSAppleScriptErrorMessage = "Zeilenende, etc. erwartet, aber Identifier gefunden.";

    NSAppleScriptErrorNumber = "-2741";

    NSAppleScriptErrorRange = "NSRange: {908, 13}";

}

Edited by tosbsas

Share this post


Link to post
24 minutes ago, tosbsas said:

Its a 13'' MacBook Pro and I use standard there.

 

I have no idea what the standard resolution on a 13" MBP is.

 

21 minutes ago, tosbsas said:

[09:18:51.916] Logging Started...

[09:22:47.966] Dualpane[Keyword] Processing complete

[09:22:47.970] Dualpane[Keyword] Passing output '' to Run NSAppleScript

[09:22:47.975] ERROR: Dualpane[Run NSAppleScript] {

    NSAppleScriptErrorBriefMessage = "Zeilenende, etc. erwartet, aber Identifier gefunden.";

    NSAppleScriptErrorMessage = "Zeilenende, etc. erwartet, aber Identifier gefunden.";

    NSAppleScriptErrorNumber = "-2741";

    NSAppleScriptErrorRange = "NSRange: {908, 13}";

}

 

Not "Run NSAppleScript", "Run Script".

 

run-script.png.cefa0f7e389d53860a41a09732cb3b90.png

 

run-script-config.png.d440b2faeb98b9c9148888c18e58288e.png

 

 

Share this post


Link to post

MacBook Pro 13''

Retina display

 

13.3‑inch (diagonal) LED-backlit display with IPS technology; 2560‑by‑1600 native resolution at 227 pixels per inch with support for millions of colors

Supported scaled resolutions:

  • 1680 by 1050
  • 1440 by 900
  • 1024 by 640

500 nits brightness

Wide color (P3)

True Tone technology

 

[11:32:13.775] Logging Started...

[11:32:23.279] Dualpane[Keyword] Processing complete

[11:32:23.283] Dualpane[Keyword] Passing output '' to Run Script

[11:32:41.182] Dualpane[Keyword] Processing complete

[11:32:41.187] Dualpane[Keyword] Passing output '' to Run Script

Only one window jumps on the screen form left side and than down

Share this post


Link to post

Right, so your screen is 1280 x 800. That's too small for the original workflow, but the second window should still be partially on screen.

 

16 minutes ago, tosbsas said:

Only one window jumps on the screen form left side and than down

 

Is it the first window ("/Volumes") or the second window ("/" or "Macintosh HD")?

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...