Is there a quick way to convert a file unix to url format?

I am migrating from pathfinder to forklift which does not have a copy file URL menu item.
thanks in advance for your time and help

You can use JavaScript for Automation to do that, something like this:

var kme = Application("Keyboard Maestro Engine");
var strPath = kme.getvariable("Path");
var fm = $.NSFileManager.defaultManager;
var oURL = $.NSURL.fileURLWithPathIsDirectory(strPath, false);
1 Like