Adding last time you modified a method. (MacOS)
I couldn’t find a better way to do this (probably there is one…), so I’m posting how I did in case someone finds it useful.
Create a Xojo script
Var command As String
var t as string = chr(34) + "+Modified: %Y-%m-%d At: %H:%M:%S" + chr(34)
Var result As String
result = DoShellCommand( "Date "+ t + "| pbcopy")
text = "// " + clipboard + endofLine + text
Then save it and put in the Scripts folder
Then select it,
This will add to your method:
// Modified: 2024-01-19 At: 17:16:39
3 posts - 3 participants