Quando eseguo un AppleScript e sono a schermo intero, viene sempre riportato sul desktop.
come un aggiro che uso "tell front window of application" Google Chrome " attivare "ma che è ancora molto fastidioso
non c'è un modo per sbarazzarsi dello stato attivo sul desktop?
qui è un esempio
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