Re: How to play consecutive sounds?
Re: How to play consecutive sounds?
- Subject: Re: How to play consecutive sounds?
- From: Shane Stanley <email@hidden>
- Date: Fri, 02 Oct 2015 14:34:22 +1000
Try to avoid loops with delays in them where possible.
property soundCounter : 0
on applicationWillFinishLaunching:aNotification set theSound to current application's NSSound's soundNamed:"Glass" theSound's setDelegate:me set my soundCounter to 4 theSound's play() end applicationWillFinishLaunching:
on |sound|:theSound didFinishPlaying:someBool set soundCount to my soundCounter set my soundCounter to soundCount - 1 if soundCount > 0 then theSound's play() else my initializingRoutineTwo() end if end |sound|:didFinishPlaying:
|
_______________________________________________
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