We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

Shelton K.'s avatar
Shelton K.
Helpful | Level 5
5 years ago

Use Dropbox to Replace Google Cloud Print or AirPrint

My printer doesn't support AirPrint (Apple's print over wi-fi solution) and Google has discontinued it's Cloud Print offering. But it seems like I still have a fairly regular need to print from my phone or for my child to print something from school that will be ready when they get home. I have a solution.

 

LIMITATIONS

 

  1. This solution is specifically for Mac users, but I suspect there is a similar option Windows users as well, as mentioned toward the end of this post.
  2. You need an always-on computer that can print to the printer. A closed laptop probably won't work.

 

STEPS (MacOS)

 

Part One: Create the Automator Script

  1. Somewhere in your Dropbox folder, create two new folders:
    • "Home Office Printer" or whatever you want to call it to indicate where it will print.
    • "Completed" folder for items that finished printing. You could skip this step and instead trash items after they print.
    • I have a top level "AirPrint" folder which then contains these two folders. How it's organized doesn't really matter. It's up to you.
  2. Open a new task in Automator, and select "Folder Action" as the type.
  3. Add the following step in Automator:
    1. Set variable – "doc" as the file to print. When you see "$doc" in these instructions it means I'm using the variable.
    2. Display notification – with title "Faux AirPrint is Starting" and message "Printing $doc"
    3. Get value – of variable: $doc.
    4. Print finder items – and select the printer you want to print to.
    5. Move finder items – to the "Completed" folder. Or to the trash if you prefer.
    6. Display notification – with title "Faux AirPrint Finished" and message "The document was sent to the printer."
  4. Save the Automator document as "Faux AirPrint" or whatever suits you.
  5. Right-click on the "Home Office Printer" (the folder you created) and select Services > Folder Actions Setup ...
  6. A new window will open prompting you to select a script to attach to the folder. Select the "Faux AirPrint Folder Action" or whatever name you gave your Automator file.
  7. Click the "Attach" button.
  8. Verify that the "On" boxes are checked next to the name of the folder and the name of the automation.
  9. Close the "Folder Actions Setup" window. 

Test this out from your phone or some other device by copying a document into the "Home Office Printer" folder. Let Dropbox sync that to the folder on the computer connected to your printer. The folder action should print the file and then move it to the "Completed" folder (or trash). What is nice about this solution is that you don't even have to be on the same network, as you do with AirPrint. You can do it from anywhere you have an internet connection.

 

WINDOWS

 

I don't know much about similar options for Windows users, but a quick search indicates there are solutions available. Here's one article I found: https://www.hongkiat.com/blog/automate-windows-tasks-folder-actions/

 

Perhaps someone else will add instructions for Windows users to be able to do the same. 

 

PRO TIPS 

 

  • You can share the "Home Office Printer" folder with you spouse or work collegues or whomever. They don't have to set anything up. They just have to copy items to the folder to print.
  • You can setup a Dropbox File Request directed to the print folder to allow someone the temporary ability to print to your printer. 
  • If you generate regular reports that need to be printed or have any other process that requires printing, you can just direct the file output to the print folder rather than trying to automate the printing process.
  • If you use iOS Shortcuts, you can create a shortcut to for the share sheet that automatically saves the document to the print folder. This gives you one-click printing from your iPhone or iPad. Here's a quick overview of the steps:
    1. Get File – Set the initial path to your print folder.
    2. If (file extension is not "pdf") then make PDF from file
    3. Save File – to Service:Dropbox; do not ask where to save; set the destination path to your print folder. 
    4. In the shortcut options, enable "Show in Share Sheet"

 

That's it! This solution has been serving me flawlessly for several years, so I thought I would share. Feedback welcome.

 

About Integrations

Find solutions to issues with third-party integrations from the Dropbox Community. Share advice and help members with their integration questions.

Need more support

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!