Trying to convert...
Posted: Wed Jul 15, 2020 2:28 am
Hi Guys,
I am sorry but my inability to come to terms with Indigo-Python leaves me with an unconverted Applescript again.
If anyone is able to convert this, I would very much appreciate any help.
Thanks in advance
Wilhelm
I am sorry but my inability to come to terms with Indigo-Python leaves me with an unconverted Applescript again.
If anyone is able to convert this, I would very much appreciate any help.
- Code: Select all
# Indigo no longer supports execution of embedded AppleScripts. For help
# translating AppleScripts to python see: http://indigodomo.com/applescript
#
# The original AppleScript was:
#
# -- Set the value of a variable.
# -- If the variable doesn't exist, create it.
#
# tell application "IndigoServer"
# if not (variable "AlarmScharf" exists) then
# make new variable with properties {name:"AlarmScharf", value:false}
# end if
# do shell script "afplay /Users/wilhelm/Music/STARWAVE/c827.WAV"
# if on state of device "Alarmsensoren ausgelöst" is true then
# say "Alarmsensoren sind aktiv, der Alarm kann nicht scharfgeschaltet werden"
# else
# set value of variable "AlarmScharf" to true
# say "Alarm ist scharf"
# end if
# end tell
#
#
Thanks in advance
Wilhelm