How to play consecutive sounds?
How to play consecutive sounds?
- Subject: How to play consecutive sounds?
- From: Brian Christmas <email@hidden>
- Date: Fri, 02 Oct 2015 14:10:42 +1000
G’day scripters
there’s a condition in one of my supplementary apps where I’d like to play the system glass sound 3 or 4 time in a row, but it will only play once .
The code is…
property theSound : "" on applicationWillFinishLaunching:aNotification set my theSound to current application's NSSound's soundNamed:"Glass" repeat 4 times my playGlass() end repeat my initializingRoutineTwo() end applicationWillFinishLaunching:
on playGlass() try tell my theSound its setDelegate:me its play() do shell script ("sleep 1") end tell end try end playGlass
Is anyone able to tell me how to play the glass sound more than once please?
Regards
Santa |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden