ejecuta AppleScript en pantalla completa sin tener que volver al escritorio

1

Cuando ejecuto un AppleScript y estoy en pantalla completa, siempre vuelve a aparecer en el escritorio.

como una solución alternativa utilizo "ventana frontal de la aplicación" Google Chrome "         Activa "pero eso sigue siendo muy molesto

¿no hay una manera de deshacerse del enfoque en el escritorio?

aquí hay un ejemplo

set newFile to (path to desktop folder as text) & "_Note_Backup.txt"
set theFileContents to read file newFile


set myDate to date string of (current date)
set {year:y, month:m, day:d} to (current date)
set mymonthVariable to m & " " & y as text

tell front window of application "Google Chrome"
    activate

end tell

set tid to AppleScript's text item delimiters
set AppleScript's text item delimiters to myDate
set aList to the text items in the theFileContents
set theCount to (the count aList) - 1
set AppleScript's text item delimiters to tid

set remainingcase to theCount - 5


set tid to AppleScript's text item delimiters
set AppleScript's text item delimiters to mymonthVariable
set aList to the text items in the theFileContents
set theMonthCount to (the count aList) - 1
set AppleScript's text item delimiters to tid


set remainingcaseontheMOnth to theMonthCount - 10


display notification "Month left" & remainingcaseontheMOnth with title "Today : " & theCount subtitle "Remaining case" & remainingcase
    
pregunta Kevin 11.03.2017 - 14:33

0 respuestas

Lea otras preguntas en las etiquetas