On 2023-06-30, Lifepillar <[email protected]> wrote:
> On 2023-06-30, Yee Cheng Chin <[email protected]> wrote:
> The fix was in https://github.com/macvim-dev/macvim/pull/1390

To delete the PDF file synchronously after it has been opened in
Preview, AppleScript can be used:

    system($"osascript -e 'tell app \"Preview\" to open POSIX file 
\"{v:fname_in}.pdf\"'")
    delete($"{v:fname_in}.pdf")

osascript should return only after the document has been opened. Running
that will probably ask once for permissions to access files.

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/u7n1ih%2473c%241%40ciao.gmane.io.

Reply via email to