Scenario: I write an macOS-app that gets an export file from a banking app by apple script. The banking app stores the export file to /var/folders/.../filename.csv
var inputFile = inputFile
inputFile.removeFirst()
let inputURL = URL(fileURLWithPath: inputFile)
print(inputURL)
So inputFile
is /var/folders/.../filename.csv
. inputURL
instead is now file:///Users/name/Library/Containers/[myAppID]/Data/
How can I access to the system folder and in the end to the exported file? And does the third slash in file:///
cause trouble?