Custom command that calls a script
This may be a very antiquated question but, is it possible to create a custom command that, when executed, fires off a script? I am trying to figure out how to create a custom command that when I click on its button, the remote directory is synchronized with the local directory, then once it is finished synchronizing, I want it to compile the the files that were updated on the remote side. If there are compilation errors, I want to print those errors out in the console.