How do I make TaskPaper restore open documents when it starts?

TaskPaper will remember documents that are open when you quit, and restore them when you next open TaskPaper.

  1. This feature requires that you quit TaskPaper with open documents. If you close the documents first, and then quit TaskPaper it won’t work.

  2. If this feature doesn’t seem to be working make sure that System Preferences > General > Close windows when quitting an app is not checked.

If you prefer some apps to remember their open documents, and other apps to forget, you can set this setting on individual apps as described in this article:

Note Some of the tips in the comments below refer to com.hogbaysoftware.TaskPaper3. That is appropriate if you are using the Mac App Store version of TaskPaper. If you are using the direct download version of TaskPaper you will need to use com.hogbaysoftware.TaskPaper3.direct instead.

8 Likes

… or, the other way around, leave “Close windows etc” checked and type in Terminal:

defaults write com.[Vendor].[AppName] NSQuitAlwaysKeepsWindows -bool true

changing it as needed for each app you want to re-open its windows on launch

3 Likes

Well this look good - but… what will I have to type in for TaskPaper to work? I tryed …hogbaysoftware.TaskPaper… but nothing changed.

Thanks!

You need: com.hogbaysoftware.TaskPaper3

3 Likes

Thanks! Worked like a charm!

1 Like

For the record, and for those who just want to copy & paste, this is the command that worked for me:

  • Quit Taskpaper,

  • Paste this in the terminal:

    defaults write com.hogbaysoftware.TaskPaper3 NSQuitAlwaysKeepsWindows -bool true

So I tried

defaults write com.hogbaysoftware.TaskPaper NSQuitAlwaysKeepsWindows -bool true

in the Terminal after quitting TaskPaper. I reopened TP, pulled up a file, exited, reopened TP, and it doesn’t seem to work. I am running FoldingText 2.2 and Sierra 10.12.

Any ideas?

Two things… first you need com.hogbaysoftware.TaskPaper3 instead of com.hogbaysoftware.TaskPaper.

Second if you are using the direct download version (instead of Mac App Store version) you’ll need to use com.hogbaysoftware.TaskPaper3.direct

I’m running Sierra and the direct download version.

I’ve run the command: defaults write com.hogbaysoftware.TaskPaper3.direct NSQuitAlwaysKeepsWindows -bool true

The app still doesn’t restore open documents on start. What am I doing wrong?

I’m not sure, not that it only works if you leave documents open when you quite… it won’t work if you first close the documents and then quit.

If you’re like me you keep on accidentally closing the window using command-w instead of hitting quit…therefore needing to locate and re-open your tasks list.

Turns out, you can override that key command on a per-app basis by doing these steps:

  1. From the Apple menu in the top left corner of the screen, select System Preferences.
  2. Click on Keyboard then Keyboard Shortcuts.
  3. Choose Application Shortcuts".
  4. Click the + button to add a new shortcut
  5. Select TaskPaper as the application and for the command type “Close”.
  6. Select a new keyboard shortcut…I used command-shift-W.

Boom, now you won’t accidentally close the window with a key command instead of hitting quit.

1 Like

Just a note that if you are Setapp user, then the command is:

defaults write com.hogbaysoftware.TaskPaper3-setapp NSQuitAlwaysKeepsWindows -bool true

1 Like