app.openInNewWindow returns false even on success

You might also want to look at these example actions for direction: