On 2023-06-30, Yee Cheng Chin <[email protected]> wrote:
> you can trick Preview to pop up a dialog box (in the background) saying
> that it can't open the file but *not *show the app icon in the Dock,
> meaning the user has no way of finding it.
Maybe `activate` can help there?
system($"osascript -e 'tell app \"Preview\"' -e 'activate' -e 'open POSIX
file \"{v:fname_in}.pdf\"' -e 'end tell'")
Or maybe with `activate` after open.
> I do want to avoid having to ask about permissions just to print
> a file (since such permissions could be broad and the user may not
> want to give it to begin with)
That's a good point. The timer trick likely makes for a better UX.
Life.
--
--
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_mac/u7pq8n%247lr%241%40ciao.gmane.io.