Re: How to Remove Play Sound Rule Action in Mail
Re: How to Remove Play Sound Rule Action in Mail
- Subject: Re: How to Remove Play Sound Rule Action in Mail
- From: Steven Mills via AppleScript-Users <email@hidden>
- Date: Mon, 14 Sep 2020 07:51:42 -0500
On Sep 14, 2020, at 04:30:57, S. J. Cunningham via AppleScript-Users
<email@hidden> wrote:
>
> Trying to remove an existing "play sound" rule action using applescript.
>
> using terms from application "Mail"
> tell application "Mail"
> set theRule to rule "Test Rule"
> tell theRule
> set play sound to ""
> end tell
> end tell
> end using terms from
>
> > Sound is set to "Message Fetch Error Sound" instead of being removed
>
> Does anyone know how to do this?
I'm guessing that setting it to nothing causes it to use the default sound. Try
creating a silent sound file and set it to that. Or if you can't do that
because you want to automate this on multiple machines, then why not simply
remove the Play Sound action (assuming Apple made that scriptable)?
--
Steve Mills
Drummer, Mac geek
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden