ttscoff / bunch

Documentation repository for Bunch.app
https://bunchapp.co
116 stars 5 forks source link

Recents Finder Window Opens #304

Closed nickwild-999 closed 11 months ago

nickwild-999 commented 1 year ago

I have a simple Bunch

---
Title: Test
---

@@
(hide desktop)

Finder
- XX
- 

However when I run it it systematically opens a Recents Finder window even if this has not previous been open.

EDIT: Now it has an additional issues - it is also not hiding Arc when it runs. It flashes briefly, but then nothing. I am using Spaces, I presume this is not relevent

Nothing is being reported as out of the ordinary in the logs

Any ideas anyone?

ttscoff commented 1 year ago

Finder will always open one window to your default view whenever it's activated and no windows are open. The (desktop) commands both restart Finder, which activates it, and the XX command you're sending will still activate and open a new window, even if it closes the others. I believe you should be able to work around this with a little AppleScript, but I'd have to play with it.

Try adding this instead of the Finder/XX command:

* tell application "Finder" to close every window

Let me know if that helps.

-Brett

On 24 Aug 2023, at 0:16, nickwild-999 wrote:

I have a simple Bunch

---
Title: Test
---

@@
(hide desktop)

Finder
- XX
-

However when I run it it systematically opens a Recents Finder Window even if this has not been opened.

Any ideas anyone?

-- Reply to this email directly or view it on GitHub: https://github.com/ttscoff/bunch/issues/304 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

nickwild-999 commented 1 year ago

Thanks @ttscoff This works perfectly