Cron and Desktop App

I have a desktop app that is basically two buttons.
Button #1 initates the download of a file from the web and parses it into a SQLite Database
Button #2 takes the database and creates a series of HTML pages

This is not a console app (I don’t have that license)

I can easily add a command line checker to automate the internal process…

But what I have never done is create a CRON job for starters, and not sure if a Xojo Desktop GUI app can be launched, run and quit via the command line?

Anyone have code that might help?

Right now I am manually running this program every 4 days… which is the schedule it needs, but I would like it to run at like 2am instead of 8am when I get up

You can launch it with Open, and its up to you to quit from inside the app.

Your best bet is to set the app with no window at all, and replace the buttons by command line arguments.

There is an abundance of how to’s Cron around. I am sure someone will point to one.

Thinking about it, Open may not be the best option. You would probably be better off calling the Unix executable within the bundle, within Contents/MacOS. That way it will react very much like a Console app.