Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

Events.Alarm.SetSound

Sets the sound to play.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Events 6.2 Yes No Yes, macOS only No No

MBS( "Events.Alarm.SetSound"; EKAlarm; Sound )

Parameters

Parameter Description Example value
EKAlarm The reference to the alarm. $Alarm
Sound The name of the sound file.
See /LIbrary/Sounds and /System/LIbrary/Sounds folders.
"Submarine"

Result

Returns OK or error.

Description

Sets the sound to play.
The value of this property is the name of a system sound. When you set the soundName property, the action property is set to Audio, and the emailAddress and url properties are cleared.

Examples

Add alarm with sound 15 minutes before event:

Set Variable [$alarm2; Value:MBS( "Events.NewAlarmWithRelativeOffset"; -15*60 )]
Set Variable [$r; Value:MBS( "Events.Alarm.SetSound"; $alarm2; "Submarine" )]
Set Variable [$r; Value:MBS("Events.Item.AddAlarm"; $c; $alarm2)]

See also

Example Databases


Events.Alarm.SetRelativeOffset   -   Events.Alarm.SetStructuredLocation

Feedback: Report problem or ask question.




Links
MBS Xojo blog