Ho questo script molto semplice ...
tell application "System Events"
set activeApp to short name of first process whose frontmost is true
end tell
tell application activeApp
repeat 5 times
display dialog "Hello world" giving up after 2
delay 2
end repeat
end tell
e funziona bene, ma ogni volta che viene visualizzata la finestra di dialogo vengono registrati i seguenti errori,
27/07/15 8:32:48 PM AppleScript Editor[43002] -[NSCarbonWindowFrame aspectRatio]: unrecognized selector sent to instance 0x116411470
27/07/15 8:32:48 PM AppleScript Editor[43002] HIToolbox: ignoring exception '-[NSCarbonWindowFrame aspectRatio]: unrecognized selector sent to instance 0x116411470' that raised inside Carbon event dispatch
(
.... trace ....
)
che sta inondando il mio registro di sistema. Questo succede indipendentemente dall'applicazione attiva.
Qualche idea sul perché e su come fermare gli errori?