PDA

View Full Version : Programatically clearing recent items list in Apple Menu




McBgnr
Sep 1, 2009, 09:01 AM
Hello,

I want to write a program to delete recent items list displayed in the Apple Menu.

All I could find is that the com.apple.recentitems.plist maintains a list of the recent items. However, deleting this file does not clear the recent items list. I am now looking for something which could clear the recentitems list which is loaded in parent process memory.

Any suggestions to solve the problem are welcome.



kainjow
Sep 1, 2009, 01:28 PM
Spotlight LSSharedFileList.h - looks like it can be done with the functions in that file.

MKSinSA
Sep 2, 2009, 02:40 AM
Hello,

I want to write a program to delete recent items list displayed in the Apple Menu.

All I could find is that the com.apple.recentitems.plist maintains a list of the recent items. However, deleting this file does not clear the recent items list. I am now looking for something which could clear the recentitems list which is loaded in parent process memory.

Any suggestions to solve the problem are welcome.

A jumping off place is decoding the com.apple.recentitems.plist file (http://macscripter.net/viewtopic.php?id=17554) then converting the code into Applescript (http://www.mail-archive.com/use-revolution@lists.runrev.com/msg118554.html).

HTH ... Cheers! :cool:

`lowell`
Sep 2, 2009, 06:15 AM
All I could find is that the com.apple.recentitems.plist maintains a list of the recent items. However, deleting this file does not clear the recent items list.

NSUserDefaults?