Recent

Author Topic: [Solved] "Open With" - how app can get filename?  (Read 203 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 1961
    • UVviewsoft
[Solved] "Open With" - how app can get filename?
« on: September 14, 2022, 03:33:13 pm »
User of CudaText tells that editor cannot handle the filename when he runs "Open With" from Finder. So the command-line handling of filenames don't work here, I guess. How to handle the "Open With" then? How does it pass filename to my app?

OS: Monterey, x64.
https://github.com/Alexey-T/CudaText/issues/4364
« Last Edit: September 15, 2022, 12:52:39 pm by AlexTP »

MarkMLl

  • Hero Member
  • *****
  • Posts: 5596
Re: macOS "Open With" - how app can get filename?
« Reply #1 on: September 14, 2022, 03:38:25 pm »
Does MacOS include the XDG utilities or an equivalent?

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

AlexTP

  • Hero Member
  • *****
  • Posts: 1961
    • UVviewsoft
Re: macOS "Open With" - how app can get filename?
« Reply #2 on: September 15, 2022, 12:52:12 pm »
Solved. I now recalled that LCL calls TForm.OnDropFiles for those files.

 

TinyPortal © 2005-2018