เท่าที่ฉันรู้ไม่มีวิธีในตัวที่สามารถทำได้เนื่องจากเอกสารล่าสุดจะถูกเก็บไว้ในไฟล์การตั้งค่าของแต่ละแอปพลิเคชัน อย่างไรก็ตาม AppleScript และ:
tell application "Finder"
set fls to every file in alias ":Users:ben:Library:Preferences:"
set AppleScript's text item delimiters to {""}
repeat with fl in fls
if name extension of fl is "plist" then
set fn to name of fl
set pid to text items 1 thru -7 of fn as text
if pid = "com.apple.Xcode" then
try
do shell script "defaults delete " & pid & " NSRecentXCFileDocuments"
do shell script "defaults delete " & pid & " NSRecentXCProjectDocuments"
end try
else
try
do shell script "defaults delete " & pid & " NSRecentDocumentRecords"
end try
end if
end if
end repeat
end tell
ข้อตกลงนี้เกี่ยวข้องกับแอปพลิเคชันปกติและ Xcode แต่ไม่ใช่เมนู Apple หรือแอปพลิเคชันอื่น ๆ ที่ไม่เป็นไปตามรูปแบบ