I am using Textedit for comparing two code files for differences..Now I can start Textedit from a shell command and it will open the two files. To initiation the file comparison tool I have to do it manually after going to the Textpad app. Is there any way to initiate file comparison from the command line?
You missed this forum's description around "No questions here please" - the "HOW-TO" is meant as in collecting explanations and experiences to already have solutions to problems, not to collect questions that could be rephrased from "how do I" into "how to".
Even if you could go right into Compare Files, you would still have to click the OK button to start the compare, so you couldn't script it and have zero user input after starting it.
Checkout Autohotkey to simulate user input (to any Windows app).