I was wondering that, would there be a chance, that I can dynamically call Arduino IDE to write to board?
For example, I have a text file (.ino) with a code in it. Can I use a script (e.g., python) to burn this text file into the board, rather than manually opening up the IDE with keyboard and mouse?
I do understand that the IDE does a full build process, and sorry about the inaccuracy for saying an "ino" file. I was intending to say that, is there any chance that I can dynamically/programatically burn into the board, given all the files needed in a sketch, the correct target setting, and an IDE installed?
For example, in a larger app, I would like the user to dynamically pick how many analog pins to read from in a data logging context. It would be easier if the user can just enter a parameter like "4", rather than opening the arduino ide and finding that line of code and change it. I could send this number from the serial port in this case; but there are other cases, where dynamically burning into the board is the ultimate solution.
The point is that the upload to the board isn't handled by the IDE. That's all done with AVRDude. If the IDE can call AVRDude, then there's no reason to think that some other program can't.
What you want to do wouldn't have anything to do with the Arduino IDE. You wouldn't even need it on the computer that's doing the upload.