Timeline for To copy a file and preserve its comment
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 15 at 18:27 | comment | added | user480875 | Wow, thanks a lot! | |
Mar 15 at 16:54 | comment | added | Mockman |
This is a bit of a side-step but applescript can duplicate a file and the result will have whatever finder comment that the original did. An example command would be tell application "Finder" to duplicate file "file.txt" of folder folderPath , where folderPath would be the path to the file's containing folder. It is possible to call applescript from the shell using the osascript command. It's a bit quirky but depending upon your specific use case, it might provide a solution. Duplicate has several options which can be found in its applescript dictionary, and there is man osascript .
|
|
Mar 15 at 9:44 | vote | accept | CommunityBot | ||
Mar 14 at 21:37 | answer | added | Gilby | timeline score: 4 | |
Mar 14 at 20:51 | history | became hot network question | |||
Mar 14 at 13:31 | vote | accept | CommunityBot | ||
Mar 14 at 16:58 | |||||
Mar 14 at 13:10 | history | edited | user480875 | CC BY-SA 4.0 |
deleted 4 characters in body
|
Mar 14 at 13:09 | answer | added | bmike♦ | timeline score: 2 | |
Mar 14 at 13:07 | history | edited | bmike♦ |
edited tags; edited tags
|
|
Mar 14 at 13:03 | history | edited | user480875 | CC BY-SA 4.0 |
edited title
|
Mar 14 at 12:51 | history | asked | user480875 | CC BY-SA 4.0 |