• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to Remove Play Sound Rule Action in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to Remove Play Sound Rule Action in Mail
      • From: Steven Mills via AppleScript-Users <email@hidden>
References: 
 >How to Remove Play Sound Rule Action in Mail (From: "S. J. Cunningham via AppleScript-Users" <email@hidden>)
 >Re: How to Remove Play Sound Rule Action in Mail (From: Steven Mills via AppleScript-Users <email@hidden>)

  • Prev by Date: Re: How to Remove Play Sound Rule Action in Mail
  • Next by Date: Re: How to Remove Play Sound Rule Action in Mail
  • Previous by thread: Re: How to Remove Play Sound Rule Action in Mail
  • Next by thread: Re: How to Remove Play Sound Rule Action in Mail
  • Index(es):
    • Date
    • Thread