Skip to content

Instantly share code, notes, and snippets.

@saikat
Created August 25, 2009 20:04
Show Gist options
  • Save saikat/174978 to your computer and use it in GitHub Desktop.
Save saikat/174978 to your computer and use it in GitHub Desktop.
[[[CPApplication sharedApplication] mainWindow] close];
var documentController = [CPDocumentController sharedDocumentController],
documents = [documentController documents],
count = [documents count];
for (var i = 0; i < count; ++i)
[documentController removeDocument:documents[i]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment