¿Cómo hago para que Apple Script abra el Editor de scripts y escriba un nuevo script?


3

He tratado de hacer

tell application "Script Editor"
    make new script with properties {name:"this is a test", body:"and 
    more text"}
end tell

pero se le ocurrió el error

'error "El editor de secuencias de comandos recibió un error: no se puede crear un archivo de clase". Número -2710 desde archivo a clase "


¿Soporta Script Editor una clase llamada script?
nohillside

Respuestas:


3

Esto funciona para mí:

tell application "Script Editor"
    make new document with properties {name:"this is a test", contents:"and 
more text"}
end tell

-1

Creo que es necesario cambiar el "Editor de secuencias de comandos a una aplicación diferente

tell application "Script Editor"
    make new script with properties {name:"this is a test", body:"and 
    more text"}
end tell
Al usar nuestro sitio, usted reconoce que ha leído y comprende nuestra Política de Cookies y Política de Privacidad.
Licensed under cc by-sa 3.0 with attribution required.