2

I want to open an application (Zotero) with a shortcut in the same way it opens when I click on it in the dock. When I open it from the dock the application recalls the previous changes (window size, position etc.), but if I open it with a shortcut it gets reset to a default each time I use the shortcut.

I have tried both Automator (Launch Application) and Keyboard Maestro (I have tried both "Activate a Specific Application" and "Open Application").

Most puzzling, if I try the run (Automator) or try (KB) function, the application opens as if clicked in the dock. Could someone explain to me what is happening?

1
  • Zotero always opens the same for me no matter how I open it. That said, if you have its Dock Tile set to always show in the Dock, then here's the AppleScript code to click the app's Dock Tile: tell application "System Events" to click (every UI element of list 1 of application process "Dock" whose name is "Zotero") Does that help any? Commented Apr 6, 2020 at 18:31

1 Answer 1

0

Thank you! I have received another solution which works as expected (as if the app was opened from the dock): I have created an AppleScript with activate application "Zotero". I still don't understand why the Launch Application behaves differently.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .