Programatically clearing recent items list in Apple Menu

Discussion in 'Mac Programming' started by McBgnr, Sep 1, 2009.

  1. McBgnr macrumors regular

    Joined:
    Apr 13, 2009
    #1
    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.
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    Spotlight LSSharedFileList.h - looks like it can be done with the functions in that file.
     
  3. MKSinSA macrumors regular

    MKSinSA

    Joined:
    Aug 1, 2009
    Location:
    Alamo City, Lone Star State
    #3
    A jumping off place is decoding the com.apple.recentitems.plist file then converting the code into Applescript.

    HTH ... Cheers! :cool:
     
  4. `lowell` macrumors newbie

    Joined:
    Aug 20, 2009
    Location:
    San Diego
    #4
    NSUserDefaults?
     

Share This Page