[okular] [Bug 503029] Okular MacOS "Open With" not working
Andreas Joss
bugzilla_noreply at kde.org
Mon May 12 11:49:29 BST 2025
https://bugs.kde.org/show_bug.cgi?id=503029
--- Comment #5 from Andreas Joss <andreasjoss22 at gmail.com> ---
(In reply to jmot205 from comment #4)
> Saving the following in AppleScript as an app will allow you to set the
> default pdf application to this new app as a workaround. So that means that
> we can now open files in a more native way without the right-click menu.
>
> >on open droppedFiles
> > repeat with f in droppedFiles
> > set filePath to POSIX path of f
> > do shell script "/Applications/okular.app/Contents/MacOS/okular " & quoted form of filePath & " >/dev/null 2>&1 &"
> > end repeat
> >end open
Thanks, I have followed this instruction and I am able to open a PDF using the
newly created AppleScript app (which opens Okular). But I am unable to change
the default app for opening PDFs to this AppleScript app. The following error
message is produced:
You can’t change the item “xxx.pdf” to always open in the selected application.
The item is either locked or damaged, or in a folder you don’t have permission
to modify (error code 13).
After having read some forums, it seemed the location of the AppleScript app
could be the culprit (saved by default in iCloud folder). I then copied the app
to my regular Applications folder, deleted the original, tried again and I
still get the aforementioned error message.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list