By Nicolai Linck @Nicolai_Linck7
Hi. Im trying to copy an applescript that show/hides the menubar into soundflow, but when trying to run it nothing happens.
The Applescript code look like this:
tell application "System Events"
tell dock preferences to set autohide menu bar to not autohide menu bar
end tell
The soundflow scrip like this:
sf.system.execAppleScript({
script: "tell application \"System Events\" \tell dock preferences to set autohide menu bar to not autohide menu bar end tell",
});
Any suggestions?
Best N
- Christian Scheuer @chrscheuer2023-01-06 13:38:11.370Z
Hi Nicolai,
Do it like this:
sf.system.execAppleScript({ script: ` tell application "System Events" tell dock preferences to set autohide menu bar to not autohide menu bar end tell ` });
If you use the backtick symbol
- NIn reply toNicolai_Linck7⬆:Nicolai Linck @Nicolai_Linck7
It works.. Thanks Christian!