RussellW 3 Posted July 18, 2019 Is there a way to open a folder cross platform (a supra ShellExecute thing) - mainly Win and MacOS - or is a load of IFDEFs needed? I've hunted around and can't see one, but thought I'd check Share this post Link to post
Dave Nottage 557 Posted July 18, 2019 The TOSDevice record in this unit: https://github.com/DelphiWorlds/KastriFree/blob/master/Core/DW.OSDevice.pas Has a ShowFilesInFolder method, which "re-routes" to the respective platforms, namely macOS and Windows. For macOS: https://github.com/DelphiWorlds/KastriFree/blob/master/Core/DW.OSDevice.Mac.pas For Windows: https://github.com/DelphiWorlds/KastriFree/blob/master/Core/DW.OSDevice.Win.pas 1 Share this post Link to post