• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to play consecutive sounds?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to play consecutive sounds?
      • From: Shane Stanley <email@hidden>
  • Next by Date: Re: How to play consecutive sounds?
  • Next by thread: Re: How to play consecutive sounds?
  • Index(es):
    • Date
    • Thread