After an introduction to Javascript, I\'m trying to tackle OSX/iOS programming by creating some simple tools to scratch my own itches.
However, right from the jump I
Updated example for Swift 3:
do { let imgurl = NSURL.fileURL(withPath: singleImage) let workspace = NSWorkspace.shared() if let screen = NSScreen.main() { try workspace.setDesktopImageURL(imgurl, for: screen, options: [:]) } } catch { print(error) }