I executed the command and it took quite a long time; now it is necessary to work with this output, but I realized it too late. Executing the command again is not a good idea.
I know that can select and copy the output to a file, but that's not a good option either because the output can be very big.
Are there any other options for solving this problem? Maybe by using osascript it is possible in some way to quickly copy or write to the file the last output?