Where are you getting that error code?
I just tested with Brave (also chromium), and the PDF service also fails there with just the generic error message.
Where are you getting that error code?
I just tested with Brave (also chromium), and the PDF service also fails there with just the generic error message.
I just made it up based on my long past work experience
It somehow flew over my head that it was a joke
This started as problem for me today, having updated to MAC OS 15.3.1 overnight. I now get “Something went wrong when trying to print. Please check your printer and try again.” when trying to “save pdf to DEVONthink3” using print dialogue from Chrome.
It works if opened in Preview and then “save pdf to DEVONthink3” using print dialogue
Thanks - seems like this is happening to several people, started recently. the PDF service works fine when invoked from the sytem print dialog within Mac applications (and a few non-mac ones), but seems like everything using Chromium is not good.
Perhaps @troejgaard knows how to log an issue to Chromium?
Unfortunately not. I just searched a little and ended up in the issue tracker.
I mainly use Safari. One reason is stuff like this.
While searching I also learned that both Chrome and Brave can be called from the command line (via Print to PDF from Chrome - MacScripter). This doesn’t seem to be the case for Arc though.
They also have some support for AppleScript. As an exercise I wrote a little script that prints to PDF with the CLI. I personally think it makes more sense to use the browser extension, but the script can be run with a single keyboard shortcut if that’s the goal.
I’m very much a beginner in scripting, so I’m sure it could be improved. I don’t know how to use ~
in the destination and could only get it to work by using the full path. (While for some reason I don’t need to use the full path to the CLI command). I’m mainly sharing to make other people aware of the functionality.
--- Print to PDF with Brave CLI
tell application "Brave Browser"
try
if not (exists window 1) then error "No window is open."
set this_tab to active tab of window 1
set this_URL to URL of this_tab
set qURL to quoted form of this_URL
set this_title to title of this_tab
on error error_message number error_number
if error_number is not -128 then display alert "Brave Browser" message error_message as warning
end try
end tell
set destination to quoted form of ("/Users/<user>/Library/Application Support/DEVONthink 3/Inbox/" & this_title & ".pdf")
set Brave_CLI to quoted form of "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser"
do shell script Brave_CLI & " --headless --print-to-pdf=" & destination & " " & qURL
--- (Add the flag "--no-pdf-header-footer" if you like)
(Make sure to replace <user>
in the destination path)
The tilde is a shell abbreviation. In a script, you must get the user’s home directory yourself. System Events has a command for that, iirc.
Ah, yes! I didn’t know what the equivalent would be.
This works:
tell application "System Events"
set home to POSIX path of home folder
end tell
set destination to quoted form of (home & "/Library/Application Support/DEVONthink 3/Inbox/" & this_title & ".pdf")
(You can also get other common folders with System Events)
troej,
Arc doesn’t, but in doing some more exploration, I found something that I didn’t expect, and is a bit upsetting: Arc has no provision for exporting bookmarks!
Having tons of bookmarks was why I moved from Safari to Arc - I had a hard time getting used to Safari’s “profiles” which, at least to me, broke all the time.
As I’ve been thinking of going back to a more mainstream browser, I thought about Firefox, which I do like in several ways - but manually copying Arc’s non-bookmark bookmarks to Firefoz will not be fun.
I almost wished I was more serious in keeping all my bookmark’s in Alco Blom’s most excellent URL Manager, which I still have.
Interesting app - why did you stop using it?
Seriously, out of being lazy
It is a great app, and I always loved the way it can test the bookmarks, and also find duplicates.
I just gave it a brief try - am I correct that it lets you choose shortcuts from a few options but you cannot define your own? I suppose I could use Keyboard Maestro to create a shortcut to a shortcut - but that seems a bit unwieldy.
Ah, I see what you mean - this setting…
Yeah, it is a bit unusual. I never used it, but I think you’re right, KM should help.
Jim, got rid of Arc
Back to Firefox.
Less unorthodox.