sounddurationhhmmss(
IDENTIFIER
)

The sounddurationhhmmss( function returns the duration (in hours:minutes:seconds) of the specified playing sound.


Parameters

This function has one parameter:

identifier – identifier for the sound (sound must already be playing).


Description

This function returns the duration (in hours:minutes:seconds) of the specified playing sound. This example code starts playing a sound and then displays a notification with the duration of the sound.

playsound "~/Sounds/Big Ben Chime.aiff","IDENTIFIER","Chimes"
nsnotify sounddurationhhmmss("Chimes")

See Also


History

VersionStatusNotes
10.2NewNew in this version.