Alguns scripts de interface do usuário mais retardados:
tell application "System Events" to tell process "Finder"
set frontmost to true
click menu bar 1's menu bar item "File"'s menu 1's menu item "Find"
tell application "Finder"
set toolbar visible of window 1 to false
set bounds of window 1 to {0, 22, 960, 587}
end tell
tell window 1's splitter group 1
click group 1's radio group 2's checkbox "File Name"
click group 1's radio group 1's radio button "This Mac"
click scroll area 1's outline 1's group 1's button 1 -- sort by Name
click group 2's pop up button 1
keystroke "sys" & return
click group 2's pop up button 2
keystroke "are " & return
end tell
end tell
Por algum motivo, no meu 10.6.7 checkbox "File Name"
está em radio group 2
em vez de radio group 1
.