I\'m trying to programmatically launch an OS X Finder window from an Xcode project. I need the window to open to a specific folder and have specific files within that folder
Swift version:
let paths = ["/Users/peter/foo/bar.json"] let fileURLs = paths.map{ NSURL(fileURLWithPath: $0)} NSWorkspace.sharedWorkspace().activateFileViewerSelectingURLs(fileURLs)