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: "S. J. Cunningham via AppleScript-Users" <email@hidden>
- Date: Mon, 14 Sep 2020 10:08:58 -0400
>> then why not simply remove the Play Sound action (assuming Apple made that
>> scriptable)?
That's exactly what I am trying to do here. Sorry if I wasn't clear. It seems
as if you can create or change a sound rule action via Applescript but not
remove it.
On Sep 14, 2020, at 8:51 AM, Steven Mills via AppleScript-Users wrote:
> 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
_______________________________________________
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