I am not sure if I should post this in this plugin section or in the script section. Anyways:
I have a Notification category that has a minor problem after I converted my Applescripts to Python,
I use an action group that plays a sound via afplay before an announcement is spoken.
Code: Select all
import subprocess
subprocess.call("/usr/bin/afplay /Users/wilhelm/Music/STARWAVE/c827.WAV",shell=True)
So the sound was played before the announcement was spoken by the OS.
After convertion that mini scipt to python I realize, that the sound and the spoken text are produced simultaneously - I suppose the phython script runs in an additional thread so both are ececuted nearly at the same time.
What can I do?