Re: Sierra: sound routine no longer works
Re: Sierra: sound routine no longer works
- Subject: Re: Sierra: sound routine no longer works
- From: Shane Stanley <email@hidden>
- Date: Mon, 10 Oct 2016 10:09:18 +1100
On 10 Oct. 2016, at 2:06 am, Brian Christmas <email@hidden> wrote:
It works only ONCE whether this line is included or not…
its setDelegate:me
Unless you're going to implement delegate methods, that line is pointless.
It looks like a bug to me -- the first sound never actually stops. The easiest fix is to tell it to |stop|() before you tell it to play.
on PlayGlassThree() set theSoundPlayGlassThree to current application's NSSound's soundNamed:"Glass" tell theSoundPlayGlassThree its |stop|() set theDuration to its duration() its play() end tell current application's NSThread's sleepForTimeInterval:theDuration say 1 end PlayGlassThree
|
_______________________________________________
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