Apple Script Not working

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Apple Script Not working 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.
DebraH
 
Posts: 1
Joined: Thu Mar 11, 2021 12:40 am

Re: Apple Script Not working 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.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support