Recent

Author Topic: Dragging files to .app no longer loads them  (Read 2588 times)

Espectr0

  • Full Member
  • ***
  • Posts: 233
Dragging files to .app no longer loads them
« on: August 14, 2025, 01:37:15 am »
Hola,
 
With Lazarus 4.0 and earlier, I could (individually) drag .srt (SubRip), .vtt (WebVTT), and .itt (iTunes Timed Text) files onto my .app, and it would open them without any issues on OS X El Capitan (10.11.6).
However, after updating Lazarus to 4.2, I now get an error: The document “[example]” could not be opened. App cannot open files in the “Text file” format.

Is it possible that something has changed internally in Lazarus?

Thanks in advance!

cdbc

  • Hero Member
  • *****
  • Posts: 2460
    • http://www.cdbc.dk
Re: Dragging files to .app no longer loads them
« Reply #1 on: August 14, 2025, 09:55:51 am »
Hi
Hmmm, have you checked for BOM (B)yte(O)rder(M)ark in the srt files?!?
There are BOMs for utf8 & utf16 BE/LE...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6 -> FPC 3.2.2 -> Lazarus 4.0 up until Jan 2025 from then on it's both above &: KDE6/QT6 -> FPC 3.3.1 -> Lazarus 4.99

Espectr0

  • Full Member
  • ***
  • Posts: 233
Re: Dragging files to .app no longer loads them
« Reply #2 on: August 14, 2025, 12:33:42 pm »
When I compiled my app with Lazarus 4 or earlier, it worked. I think the problem started with Lazarus 4.2. The message I get is from macOS as soon as I drag the file over the .app.

madref

  • Hero Member
  • *****
  • Posts: 1111
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: Dragging files to .app no longer loads them
« Reply #3 on: August 23, 2025, 02:16:19 pm »
Did you set all the path correctly?
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Main Platform:
--------------
Mac OS X Sequoaia 15.6.1
Lazarus 4.99 (rev main_4_99-2644-gfd63613782) FPC 3.3.1 x86_64-darwin-cocoa

Windows 10 Pro
Lazarus 3.99 (rev cbfd80ce39)

Espectr0

  • Full Member
  • ***
  • Posts: 233
Re: Dragging files to .app no longer loads them
« Reply #4 on: August 24, 2025, 01:34:10 pm »
I haven't changed anything in my app, I just recompiled it with the new Lazarus and it stopped working. What should I check?

Maybe something changed with macOS El Capitan compatibility?

madref

  • Hero Member
  • *****
  • Posts: 1111
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: Dragging files to .app no longer loads them
« Reply #5 on: August 24, 2025, 11:29:58 pm »
Could it have something to do with 32-bits vs 64-bits?
You could also check if all your links/path are still correct.
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Main Platform:
--------------
Mac OS X Sequoaia 15.6.1
Lazarus 4.99 (rev main_4_99-2644-gfd63613782) FPC 3.3.1 x86_64-darwin-cocoa

Windows 10 Pro
Lazarus 3.99 (rev cbfd80ce39)

Espectr0

  • Full Member
  • ***
  • Posts: 233
Re: Dragging files to .app no longer loads them
« Reply #6 on: August 25, 2025, 12:08:17 am »
I only use 64-bit, everything is still the same. The only change was updating Lazarus.

madref

  • Hero Member
  • *****
  • Posts: 1111
  • ..... A day not Laughed is a day wasted !!
    • Nursing With Humour
Re: Dragging files to .app no longer loads them
« Reply #7 on: August 25, 2025, 11:20:10 am »
Pffff.... difficult then....
ask this same question in the General section maybe you get your answer then... because I am at a loss.
You treat a disease, you win, you lose.
You treat a person and I guarantee you, you win, no matter the outcome.

Main Platform:
--------------
Mac OS X Sequoaia 15.6.1
Lazarus 4.99 (rev main_4_99-2644-gfd63613782) FPC 3.3.1 x86_64-darwin-cocoa

Windows 10 Pro
Lazarus 3.99 (rev cbfd80ce39)

 

TinyPortal © 2005-2018