samknight / slack_applescript

AppleScript bundle for Slack methods
275 stars 20 forks source link

Set as Away & Set as Active not working #36

Closed Calligramien closed 1 year ago

Calligramien commented 2 years ago

Hello guys,

Hope you are doing all great.

I can't get the two commands to work: "set as away" and "set as active". When I run them, it sends messages in the conversation I'm in on Slack "= away" or "=active", depending on which command I run.

Here is my script:

tell script "Slack"
    set as active
end tell

Thanks in advance and wish you all a great weekend ahead!

samknight commented 1 year ago

Hi @Calligramien Apologies for the delayed response. I think the linked PR will solve your issue but is not mergeable right now.

I would only suspect that change to work if you have a different keyboard layout but there is a second issue where if you are already away and try to set your status as away, Slack has removed that option and therefore can't select it and it defaults to text. I suspect the latter is more your issue. I haven't yet found a solution to this.

samknight commented 1 year ago

I have implemented the suggested fix from #37 in the 2.0.3 release. Please give that a go and let me know if you have any issues