Calendar.Alarm.SetSound
-----------------------

Sets the sounds for this alarm.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Calendar](component_Calendar.md) | [3.5](newinversion35.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md).

MBS( "Calendar.Alarm.SetSound"; alarmRef; SoundName ) 

**MBS**( **"Calendar.Alarm.SetSound";** /\* Sets the sounds for this alarm. \*/  
**$alarmRef**; /\* The reference to the calendar alarm. \*/   
**$SoundName**) /\* The new sound name.e.g. "Submarine" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| alarmRef | The reference to the calendar alarm. | $alarmRef |
| SoundName | The new sound name. | "Submarine" |

### Result

Returns OK or error.

### Description

Sets the sounds for this alarm.  
Setting a sound will also set the action to Sound as well as set the emailAddress and URL to nil.   
Expects the name of a system alert.   
Check this folders to find possible sound names:  
- ~/Library/Sounds
- /Library/Sounds
- /Network/Library/Sounds
- /System/Library/Sounds

### See also

- [Calendar.Alarm.GetSound](CalendarAlarmGetSound.md)
- [Calendar.Alarm.GetURL](CalendarAlarmGetURL.md)
- [Calendar.Alarm.SetAction](CalendarAlarmSetAction.md)
- [Calendar.Alarm.SetURL](CalendarAlarmSetURL.md)
- [Events.Alarm.SetSound](EventsAlarmSetSound.md)

### Example Databases

- [Mac and iOS/Events/Calendar/Calendar Test](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Events/Calendar/Calendar%20Test.shtml#6ScriptAnchor_)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[Calendar.Alarm.SetRelativeTrigger](CalendarAlarmSetRelativeTrigger.md) - [Calendar.Alarm.SetURL](CalendarAlarmSetURL.md)

[HTML Version](CalendarAlarmSetSound.shtml)