Hi,
Try this:
-------------
quit application "Finder"
delay 1
set prefFolder to path to preferences as string
tell application "System Events"
tell appearance preferences
set x to {recent applications limit, recent documents limit, recent servers limit}
set {recent applications limit, recent documents limit, recent servers limit} to {0, 0, 0}
set {recent applications limit, recent documents limit, recent servers limit} to x
end tell
tell property list item "FXRecentFolders" of contents of property list file (prefFolder & "com.apple.finder.plist") to set value to {}
end tell
activate application "Finder"
Cons: This script quit the Finder:
Or this script:
----------------
tell application "System Events"
tell appearance preferences
set x to {recent applications limit, recent documents limit, recent servers limit}
set {recent applications limit, recent documents limit, recent servers limit} to {0, 0, 0}
set {recent applications limit, recent documents limit, recent servers limit} to x
end tell
tell process "Finder"
set frontmost to true
click last menu item of menu of menu item -4 of menu of menu bar item 6 of menu bar 1
end tell
end tell
You will need to enable access for assistive devices in the Universal Access System Preferences panel for this to work.
Cons: Need GUI Scripting enabled and the Finder needs to be in the foreground.