Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Preview App #326

Open
SteveMattan opened this issue Mar 7, 2024 · 2 comments
Open

Issue with Preview App #326

SteveMattan opened this issue Mar 7, 2024 · 2 comments

Comments

@SteveMattan
Copy link

Using the Preview app in Bunch does not behave as I would expect.

The players:
macOS v 14.3.1
Bunch v 1.4.17 (180)
Preview v 11.0 (1056.3.2)

The following Bunch file fails with error dialog shown:


---
title: Test Bunch
---
# Test Bed for Bunch Ideas

Preview
- /Users/stevemattan/Desktop/Introducing Bunch - Bunch.pdf


Screenshot 2024-03-07 at 1 08 50 PM

Changing Preview to Preview.app does launch Preview and opens the file. There is a file open dialog shown briefly when the Bunch is run.

However, upon closing the Bunch, Preview does not quit. Adding the line, !!!Preview.app does not result in Preview quitting upon close either (nor does: !!!Preview ).

Finally, the line:

/Users/stevemattan/Desktop/Introducing Bunch - Bunch.app.pdf

does result in the file being opened in Preview (Preview still does not quit upon close of the Bunch). (It appears the entering the path to a file will always open the file in the default app, but I do not see that noted in the syntax reference. Sorry if I missed it.)

To recap:

  • entering the app name "Preview" results in an error message.
  • entering "Preview.app" successfully launches the app, and the file is opened.
  • closing the Bunch does not automatically close the Preview app.
  • explicitly calling for the Preview app to be quit upon closing the Bunch, with the !!! syntax, does not quit the app.
  • simply entering the path to the PDF file will open the file in Preview (the default for .pdf).

Hopefully this makes sense. Please let me know if it does not, or if you need additional information.

@ttscoff
Copy link
Owner

ttscoff commented Mar 7, 2024 via email

@SteveMattan
Copy link
Author

Thank you for the prompt reply.

Alas, changing to com.apple.Preview, resulted in the same error dialog:

Screenshot 2024-03-07 at 2 46 32 PM

But, Preview did launch, presenting an open file dialog. Preview did not quit upon closing the Bunch.

For my purposes I can just enter the path to the file, it is a book in PDF form, and quit Preview when I'm done.

Thanks again, and stay well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants