
¿Cuál sería el código para:
"¿Si $foo es uno, entonces $foo ahora debería ser igual a 18"?
Gracias
Respuesta1
En bash (línea de comando):
if [ "$foo" = "1" ] ; then
foo=18
fi
en AppleScript:
if foo equals 1 then
set foo to 18
end if
Respondiendo a los comentarios:
set foo to 5
tell application "System Events"
tell application "Firefox" to activate
keystroke (foo as text) using command down
end tell
Probablemente pueda agregar esto a mi respuesta a su pregunta anterior tal como está, menos la set foo
línea.