Sono un OS X novizio .
Ho un set di Applescript da avviare all'avvio e invece di eseguire automaticamente, devo attivare lo script con una conferma di esecuzione:
"Press Run to run this script, or Quit to quit"
Come faccio a liberarmi di questo in modo che l'applicazione funzioni senza problemi?
Il seguente file è stato salvato come applicazione.
tell application "Finder"
activate
tell application "Finder" to set pathToSound to (((path to me) & "Contents:Resources:TardisTakeoff.m4a") as string) as alias
tell application "QuickTime Player" to play (open pathToSound)
end tell
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 107
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
tell application "System Events"
key code 113
end tell
delay (0.1)
quit me