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.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

UNNotification.SetSound

Sets the sound to play.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
UNNotification 7.2 No No No No Yes

MBS( "UNNotification.SetSound"; UNNotificationRef; SoundName )

Parameters

Parameter Description Example value
UNNotificationRef The reference number of the notification. $Notification
SoundName Pass empty to have no sound.
Pass "default" for the default system sound.
Or pass the name of a sound, one of the system sounds or a sound file included with the app.
"default"

Result

Returns OK or error.

Description

Sets the sound to play.

Examples

Use default sound:

MBS( "UNNotification.SetSound"; $Notification; "default" )

Use no sound:

MBS( "UNNotification.SetSound"; $Notification; "" )

Use my sound:

MBS( "UNNotification.SetSound"; $Notification; "mySound" )

See also


UNNotification.SetScript   -   UNNotification.SetSubTitle

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos