Hi, I would like launch a certain function in a particular app either using the automator or by using the Mac Terminal.

But this particular sequence should be executable from the Desktop. Am i right in assuming that I should use Automator for that and if so can any one recommend a guide for me please?

P.S. This is only the first step of a much grander project and I'll also need to execute this same command using my phone.