Open file in OS X

  

In Delphi, I would like to open a file in OS X. My approach is as follows:

const
Filename = ‘test.bmp’;

procedure SaveAndOpen;
begin
Chart.SaveToBitmapFile(Filename);
{$IFDEF MSWINDOWS}
ShellExecute(0, ‘open’, Filename, ”, ”, SW_Normal);
{$ELSE}
_System(Filename);
{$ENDIF}
end;

But nothing happens. What am I doing wrong?

Comments are closed.