Writes the contents of the specified file to the pasteboard.
- macOS 10.0+
The name of the file to write to the pasteboard.
YES if the data was successfully written, otherwise
Writes the contents of the file
filename to the receiver and declares the data to be of type
NSFile and also of a type appropriate for the file’s extension (as returned by the
NSCreate function when passed the files extension), if it has one.