The precise reason for your dilemma is line seven. If you want to go from the path to some file URL, you must use NSCocoaErrorDomain is really a form of error domain while in the macOS and iOS platforms. Faults using this area commonly confer with bigger-degree glitches, usually connected https://exposednews.co.uk/errordomainnscocoaerrordomainerrormessagecould-not-find-the-specified-shortcut-errorcode4-2/