samknight / slack_applescript

AppleScript bundle for Slack methods
275 stars 20 forks source link

Script error when Slack set to French #19

Open Marcuse7 opened 3 years ago

Marcuse7 commented 3 years ago

When I set Slack to French or German and execute

tell application "Slack"
    focus workspace "One Conversation"
end tell

I receive the error

System Events got an error: Can’t get menu bar item "File" of menu bar 1 of process "Slack".

samknight commented 3 years ago

Hi Marcuse7, thanks for raising this issue. I'm afraid I've not been able to think of a way around this. Are you aware of how other people solve this issue with AppleScript?

Marcuse7 commented 3 years ago

Sorry I missed this. There could be a workaround using displayed name, as described here: https://snippets.aktagon.com/snippets/368-how-to-get-the-localized-name-of-a-folder-also-called-displayed-name-with-applescript