Sound Constants

The following constants can be used anywhere in macros or scripts in place of the actual values.

If you are retrieving the value of a property or parameter, scripts or macros will return the integer value, whereas Inspector will display the constant equivalent.

KEEP IN MIND:

When using constants in the script editor, each constant must be prefaced by nl.

Sound constant

(Macros)

Sound constant

(Scripts)

Value

Description

SndDefault

nlSndDefault

0

Play the pre-defined system default sound.

SndInformation

nlSndInformation

64

Play the pre-defined ‘Asterisk’ (information) sound.

SndExclamation

nlSndExclamation

48

Play the pre-defined ‘Exclamation’ (warning) sound.

SndCritical

nlSndCritical

16

Play the pre-defined ‘Hand’ (critical error) sound.

SndQuestion

nlSndQuestion

32

Play the pre-defined ‘Question’ sound.

SndBeep

nlSndBeep

-1

Generate a standard beep using the system speaker.

SndWaveFile

nlSndWaveFile

-2

Play the specified wave file.

See Also

PlaySound action | PlaySound method


© 2004-2021 looksoftware. All rights reserved.