samknight/slack_applescript

Can't get script "Slack"

Closed this issue · 5 comments

I don't have this folder ~/Library/Script Libraries, and neither ~/Library/Scripting Libraries. (Should I create them by the way?)

I then put the script to /Library/Scripts, and tried

tell script "Slack"
	set stauts "Lunch"
end tell

It told me Can't get script "Slack".

By the way, does your script support searching uses and open the DM window?

Try and create the folder ~/Library/Script Libraries

If you are using the Script Editor software then try and build both the library and then the script you're writing, I find that works sometimes. Let me know if you need extra help

By the way, does your script support searching uses and open the DM window?

You can open DMs in the same way you can open channels focus @An.other.user

If you want to open the send new DM/group screen you can use the underlying shortcuts commands which can run whatever you want in the menu you get when you do /

shortcut("Send a new message", "")

I am having a similar issue in that I get
Can't get script "Slack".

I created the folder ~/Library/Script Libraries and unzipped the downloadable zip file.

I see the file structure in this folder and the script editor library command sees Slack and it’s dictionary.

I don’t know what “If you are using the Script Editor software then try and build both the library and then the script you're writing, I find that works sometimes. Let me know if you need extra help” specifically means.

Have you just extracted the zip file of the repo, or did you extract the zip inside the repo? You should have a Slack.scptd inside your "Script Libraries"

Closing due to inactivity

create the folder ~/Library/Script Libraries

It works for me perfectly.

ChatGPT fooled me to put the script into ~/Library/Scripts and it didn't help 🥲