[okular] [Bug 503029] Okular MacOS "Open With" not working

LS bugzilla_noreply at kde.org
Tue Nov 18 13:27:59 GMT 2025


https://bugs.kde.org/show_bug.cgi?id=503029

LS <padrepioviii at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |---
             Status|RESOLVED                    |REPORTED
                 CC|                            |padrepioviii at gmail.com

--- Comment #8 from LS <padrepioviii 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

I appreciate this solution, it works quite well for a single file. However, I
am struggling to find an elegant solution for opening multiple files. With this
solution, each file has its own instance of Okular, resulting in 10-15 windows
displayed, and no way to arrange them in tabs. From a quick search, I found a
suggestion to add a --unique flag, but it did not change the outcome. Any
workaround?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list