samknight / slack_applescript

AppleScript bundle for Slack methods
274 stars 19 forks source link

Can't get script "Slack" #28

Closed niebomin closed 1 year ago

niebomin commented 2 years ago

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?

samknight commented 2 years ago

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", "")

gsulshski commented 2 years ago

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.

henriquenunez commented 2 years ago

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"

samknight commented 1 year ago

Closing due to inactivity

aforian commented 4 months ago

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 🥲