samknight/slack_applescript

Script error when Slack set to French

Opened this issue · 2 comments

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".

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?

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