Hello dear List!
Perhaps a bit off topic, but does anybody have experience executing shortcuts that belong to an application, from the terminal?
for example firefox ^T
Of course this doesn’t work, it searches for the term ^T, but ^T means Ctrl + t, I would like to write a function from SC to control an app via .systemCmd, any idea would be much appreciated,
many thanks in advance!
sounds like an x y problem. what do you really want to achieve by doing that?
Basically, I want to automatize some actions, like open a new tab, change tab, zoom in, search etc. It’s part of a larger project, so far I’ve only found this info:
however I can’t completely control firefox from the terminal …
As far as I remember, you can do this in Max using aka.keyboard external.
It would be great if there would be a Quark similar to aka.keyboard.
In SC, you can use .unixCmd
("/Applications/Firefox.app/Contents/MacOS/firefox -new-tab" + "https://google.com".quote).unixCmd
("/Applications/Firefox.app/Contents/MacOS/firefox -remote" + "openURL(www.mozilla.org, new-tab)".quote).unixCmd
However, this calls an additional instance of Firefox, and Firefox does not allow it.