did you try the function StringUtils::ConvertWideStringToUTF8?
No I hadn't. Thank you very much for the tip. I've given it a try and on the face of it it seems to fit my use case. I'll confirm once I've made sure it works. Thanks a bunch!
StringUtils::ConvertWideStringToUTF8 works like a charm. Thanks again!
ScriptData has a GetFile() method. You should then use FileUtils and/or OSX services to extract the path.
Btw be careful with UTF8 vs. OSX Posix file names, if there is a chance your environment may use NFS mounts etc.
Apple's technote gives some details for driver developers, but the same problem also applies to us: