良く見ればエラーが click menu item "メニューを消去" of menu "最近使った項目" of menu item "最近使った項目" of menu "Apple" of menu bar 1 of process "Finder" ここで発生している事がわかる筈だ
後は文を少しずつ短くしていくか、 menu item "メニューを消去" of menu "最近使った項目" of menu item "最近使った項目" of menu "Apple" of menu bar 1 of process "Finder" ↓ menu "最近使った項目" of menu item "最近使った項目" of menu "Apple" of menu bar 1 of process "Finder" ↓ menu item "最近使った項目" of menu "Apple" of menu bar 1 of process "Finder"
或いは逆に長くしていく process "Finder" ↓ menu bar 1 of process "Finder" ↓ menu "Apple" of menu bar 1 of process "Finder"
この場合、「menu bar 1 of process "Finder" 」ではエラーにならず、 「menu "Apple" of menu bar 1 of process "Finder" 」でエラーになる事がわかる つまり「menu "Apple"」が間違い
じゃあ実際そこに何があるのかを調べるにはこう書く UI elements of menu bar 1 of process "Finder" すると「menu bar item "Apple"」がある事が見えてくる