2

For me it is quite easy to automate a jar file to run on a pc.

java -jar "C:\...\mFilePath\myJar.jar"

stick this into a cmd file, and schedule it.

Now, migrating over to a mac, i am unsure how to do this. I assumed the automator would be more straight forward, but i find it not to be. I must be doing something wrong.

Please, any advice is appreciated!!

  • If you have already searched this site and haven't found anything useful, you might also want to consider searching the Super User sister site. I actually find your question more relevant there than here and, accordingly, am voting to migrate it to that site. – Andriy M Nov 4 '12 at 16:28
  • ok, i can agree with that. i have voted as well. thank you – jason m Nov 4 '12 at 16:30
1

If you're not familiar with launchd you could also use cron, what is most commonly used under *nix. Just fire up Terminal and use "crontab -e" to add your job.

Format for crontab is

min hour day month day-of-week command

For more information look at Wikipedia :: Cron

0

You can schedule scripts to run with launch agents. (man launchd , man launchctl). Lingon is a useful resource.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.