if I run this little script in debugging mode more than once my computer freeze.
If the debugging mode then … everything is ok.
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
tell application "System Events"
set frontApp to first application process whose frontmost is true
set frontAppName to name of frontApp
set windowTitle to "no window"
end tell
I wonder if it occurs only with my mac or if it is a general problem.
Thanks
it looks like you might be triggering a loop: the frontmost process is Script Debugger, and when it tries to build the description of itself and its UI elements to show, the act of trying to show them changes the collection. Try switching from Best to Source view and see what happens.
You’re triggering the same loop: entire contents is triggering more items to be added to entire contents, by definition, as long as Script Debugger is the frontmost app.
Are you trying to view something in particular here?