Closed stevelw closed 2 years ago
You could always just send the keyboard shortcut to open the Bunch menu and then ⇧⌘N instead of UI scripting, but I take your point.
There's no "bunch" object in the applescript library, only direct commands, so the syntax would get a little unusual. It would have to be something awkward like
tell app "Bunch" to create new bunch with open apps named "New Bunch"
That would just immediately save the new Bunch to the bunch folder with the filename "New Bunch.bunch". Is that what you're thinking?
On 21 Jun 2022, at 11:35, stevelw wrote:
Currently the only way to trigger "New Bunch With Open Apps" is via the menubar using the mouse (or an overly complicated AppleScript UI command). It would be useful to be able to trigger this via a Bunch AppleScript command.
Use case: Add Bunch as a "Hook to new" option in Hook. When setting up a new work project you could trigger Hook to New from the project task list and create a new Bunch with the project relevant Bunch actions.
-- Reply to this email directly or view it on GitHub: https://github.com/ttscoff/bunch/issues/222 You are receiving this because you are subscribed to this thread.
Message ID: @.***>
I added this in the current beta: https://bunchapp.co/docs/integration/applescript/#runningapps
Currently the only way to trigger "New Bunch With Open Apps" is via the menubar using the mouse (or an overly complicated AppleScript UI command). It would be useful to be able to trigger this via a Bunch AppleScript command.
Use case: Add Bunch as a "Hook to new" option in Hook. When setting up a new work project you could trigger Hook to New from the project task list and create a new Bunch with the project relevant Bunch actions.