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

Choose output folder for printed PDF files #15

Closed
wants to merge 3 commits into from

Conversation

mckenfra
Copy link
Contributor

See discussion #14

This pull request allows the user to choose the folder to send PDFs to after printing. It relies on the macOS Folder Actions functionality

After install of the printer driver, every different user who logs into the same machine can specify their own preferred folder where they want their printed PDFs to appear, by executing the following script:

/Library/Printers/RWTS/PDFwriter/choosefolder.sh

This script installs the necessary Folder Actions in the user's environment, and also creates a symbolic link to the user's chosen folder at the following path:

~/Library/Application\ Support/PDFwriter/pdfs

The Folder Action moves printed PDFs to this symbolic link, if it exists.

Note that you can see the installed Folder Actions by right-clicking on folder /var/spool/pdfwriter in Finder, and choosing Services -> Folder Actions Setup

Ideally instead of running a script a user could click a button somewhere to run the choosefolder.sh script, so it is more user-friendly. But that could be a possible future enhancement. Let me know if this works ok for you, I have only tested on macOS Mojave.

@mckenfra
Copy link
Contributor Author

I've just pushed a commit that fixes issues on Big Sur that prevented the PDF files from being moved to the chosen folder.

Now tested and works perfectly on both Catalina and Big Sur

@macmachado
Copy link

I think the .pkg is not complete. the chose folder files are not there.
I've have just installed it and did not find them. could you guys check it out, pls.
Great job by the way!!!

@mckenfra
Copy link
Contributor Author

mckenfra commented Apr 1, 2022

@macmachado The choose folder feature will only be available once this pull request is merged and a new version is released.

@rodyager Did you have any thoughts/feedback on this pull request?

@rodyager
Copy link
Owner

rodyager commented Apr 8, 2022 via email

@mckenfra
Copy link
Contributor Author

mckenfra commented Apr 8, 2022

@rodyager Sorry to hear it wasn't working for you 😞 Did you make sure you did the build using all 3 commits from this pull request?

I have attached videos showing this feature working on Mojave, Catalina, Big Sur and Monterey. In each case, I ran the choosefolder.sh script beforehand and chose the Downloads folder as the destination for my printed PDFs.

You will see there is a slight delay after printing before the Folder Action kicks in and moves the PDF to the correct folder. You can also see that a little cogwheel icon appears in the menubar while the Folder Action is running.

PDFwriter.Mojave.mov
PDFwriter.Catalina.mov
PDFwriter.BigSur.mov
PDFwriter.Monterey.mov

@reubn
Copy link

reubn commented Jun 19, 2022

This would be great to have

@rodyager
Copy link
Owner

I've now added a utility that allows you to create a folder (well, actually an alias) in the location of your choice, to which the output will be directed. Each users on the machine can make their own individual choice. The link to download the utility is near the top of the ReadMe.

@rodyager
Copy link
Owner

rodyager commented Jun 19, 2022 via email

@rodyager rodyager closed this Jun 19, 2022
@andesco
Copy link

andesco commented Nov 10, 2024

I have document the manual version of this approach with #51 so that @rodyager can consider adding it to the readme or wiki.

This programmatic approach is fantastic @mckenfra. Very well documented (.mov × 4). Appretiate the attempt to get your pull request accepted. I would encourage you to try again!

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

Successfully merging this pull request may close these issues.

5 participants