I am using the following script to clear finder "history"
tell application "Finder" to quit
do shell script "defaults write com.apple.finder recent-folders {}"
delay 2
tell application "Finder" to activate
Similarly I am using the following list to clear Quick Time player history
tell application "QuickTime Player" to quit
do shell script "defaults write com.apple.quicktimeplayer recent-folders {}"
delay 2
tell application "QuickTime Player" to activate
After running QuickTime Player script, I opened the plist file "com.apple.com.quicktimeplayer.plist" and observed the dictionary item "recent-folders" has 0 entries, that means, the list is cleared. But when I open QuickTime player, it still shows the recent files list. Why?
Similarly how can I clear Safari "history" list using apple script?
Thanks & Regards,
Satyam.