MacOS Lion - Dock History löschen

Aus Laub-Home Wiki

Lion lists recent items with each application in the Dock (accessible via right-click) and in the Application View of Mission Control. To remove those and disable future additions, run the following commands in the Terminal. Note that to figure out the application's bundle identifier, you can open Activity Monitor, click the application in the list of processes and then click the “Sample Process” button. Then makes sure the “Display:” popup is set to “Sample Text”.

Output for VLC:

Sampling process 66975 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling VLC (pid 66975) every 1 millisecond
Process:         VLC [66975]
Path:            /Applications/VLC.app/Contents/MacOS/VLC
Load Address:    0x100000000
Identifier:      org.videolan.vlc
Version:         1.1.11 (1.1.11)
Code Type:       X86-64 (Native)
Parent Process:  launchd [175]
[...]

VLC's application bundle identifier is thus org.videolan.vlc.

Now, to disable recent item listing for VLC, you would issue the following commands in Terminal:

defaults write org.videolan.vlc NSRecentDocumentsLimit 0
defaults delete org.videolan.vlc.LSSharedFileList RecentDocuments
defaults write org.videolan.vlc.LSSharedFileList RecentDocuments -dict-add MaxAmount 0

For Quicktime

defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 0
defaults delete com.apple.QuickTimePlayerX.LSSharedFileList RecentDocuments
defaults write com.apple.QuickTimePlayerX.LSSharedFileList RecentDocuments -dict-add MaxAmount 0

Quelle