Page 1 of 1

Apple Script Not working

PostPosted: Thu Mar 11, 2021 12:45 am
by DebraH
Hi,
Apple Script newbie here:
I have created the following AppleScript and embedded it in a rule:
***
tell script "Slack"

set Workspace to "Lifepuzzle"
set channel to "miscellaneoustasks"
send message "@Abegail new blog or email is uploaded"

end tell
***
When I run it in Coderunner is does exactly what I want it to - DMs a colleague to say that a new blog or email is in the file. Hazel just ignores it. The script is at the end of a rule that moves a file to another folder and sends a notification.
Many thanks.

Re: Apple Script Not working

PostPosted: Thu Mar 11, 2021 9:57 am
by Mr_Noodle
Where is the "Slack" script located? Are you sure it's a script you want to reference and not the Slack app?

I also suggest checking the logs. Select "View Logs" under the "Help" menu and search for the rule in question. Post any errors you find there.