, , , , , , ( ).
, , .
. , . №1 , . , # 2 .
tell application "Safari"
set windowNumber to 1
repeat the number of windows times
if name of window windowNumber starts with "Untitled" then
close window windowNumber
else
set windowNumber to windowNumber + 1
end if
end repeat
end tell
. , (.. - close all windows whos name starts with "Untitled"), , , .