Logic Pro X: Browser Macros
Hi everybody,
I was wondering if there is a way to navigate between folders in the Logic Browser.
I want to create different macros which should open different Bookmarks.
Thanks in advance
Josh
- Kitch Membery @Kitch2024-10-21 18:28:25.834Z
Hi @Josh_Ha,
Can you provide more information on what you'd like to achieve by navigating between folders in the Logic Browser?
Also, if you could provide a screenshot(s) of the browser you are talking about that would be very helpful.
Thanks in advance.
- JJosh Ha @Josh_Ha
Hi Kitch, I'm talking about the All Files Browser tab. I'm using bookmarks quite a lot. So would be very helpful to put some folder paths on sound flow macros. But not sure if this is possible?
Thanks in advance!
Kitch Membery @Kitch2024-11-04 23:48:33.943Z
Hi @Josh_Ha,
Try this script with the "All Files" tab visible.
function selectBookmarkFolder({ name }) { const logic = sf.ui.logic; logic.appActivate() logic.invalidate() const browserGroup = logic.mainWindow.groups.find(c => c.groups.whoseDescription.is("All Files").first.groups.whoseDescription.is("All Files").first.exists ); const allFilesPanel = browserGroup.groups.whoseDescription.is("All Files").first.groups.whoseDescription.is("All Files").first; const allFilesPanelHeaderButtons = allFilesPanel.groups.allItems[1].buttons; const getButtonByName = (name) => allFilesPanelHeaderButtons.find(btn => btn.getString("AXHelp") === name); const bookmarksBtn = getButtonByName("Bookmarks"); // Click "Bookmarks" button bookmarksBtn.elementClick(); allFilesPanel.invalidate(); const allFilesPanelTable = allFilesPanel.groups.first.scrollAreas.first.tables.first; const rows = allFilesPanelTable.children.whoseRole.is("AXRow"); const getRowByName = (name) => rows.find(row => row.childrenByRole("AXStaticText").first.value.invalidate().value === name ); const targetRow = getRowByName(name); // Double-click target Bookmarks folder row targetRow.mouseClickElement({ relativePosition: { x: 5, y: 5 }, clickCount: 2, }); } selectBookmarkFolder({ name: "AUDIO LIBRARY", });
Let me know how it goes! :-)
- JJosh Ha @Josh_Ha
awesome - thanks Kitch!
Gonna test this week.