外部フレームワーク(mpSoundEngine)を利用して電話の呼び出し音のような音を鳴らすAppleScriptです。
AppleScript名:mpSoundEngineで電話の呼び出し音のような音 |
— Created 2017-12-14 by Takaaki Naganoya — 2017 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" use framework "mpSoundKit" –https://github.com/matthiasplappert/MPSoundEngine property engine : missing value set engine to current application’s MPMonoSoundEngine’s alloc()’s init() –https://pages.mtu.edu/~suits/notefreqs.html set soundList to {440.0, 466.16} repeat 10 times repeat with i in soundList makeSound(i) of me end repeat end repeat engine’s |stop|() on makeSound(aHz) engine’s channel()’s setFrequency:aHz engine’s start() delay 0.05 –engine’s |stop|() end makeSound |
More from my site
(Visited 37 times, 1 visits today)