July 2017
Intermediate to advanced
300 pages
5h 43m
English
In order to examine text transferring with the clipboard, we modify the method copy of FileService:
copy( file ){ this.copiedFile = this.dir.getFile( file ); const clipboard = nw.Clipboard.get();
clipboard.set( this.copiedFile, "text" ); }
What does it do? As soon as we obtain the file full path, we create an instance of nw.Clipboard and save the file path there as text. So now, after copying a file within the File Explorer, we can switch to an external program (for example, a text editor) and paste the copied path from the clipboard:

Read now
Unlock full access