swguy:
You haven't disclosed what it is you're trying to do, but my guess is you'd be better off just creating a new admin widget to display orders that have not yet gone through whatever processing you want to do, and displaying them (like the New Order widget).
https://docs.zen-cart.com/dev/code/widget/
Then when you login you'd see the orders that need to be processed.
If you want the processing to be done in real time when the order is placed, you should do it on the storefront side.
There is an API for PushBullet that will notify all machines that are subscribed to a "channel" whenever a message (or push) is sent. The API allows for a message to be customized and dispatched to all machines that are subscribed to that notification.
What I wanted to have happen is that as a new order is sent in, a push (message) is sent which contains the Order #, Order Total, Payment Method (name of, not intricate details), Shipping Method and a separate link to the backend where the order can be viewed for processing.
The idea ultimately being that as an order is processed in the front end, the observer will pull the order information (via usual SQL), build a message, and then push that message to the API which will send the nudge to all connected machines.
The only problem is that in order to send the link, I have to specify the full HTML URI of the order which includes the URI of the backend.
I can probably come back at it in the manner you suggested and run a cron that will check for new orders on a regular recurring basis. But I would likely have to add a column to the orders then have the crontab check for all orders not marked 1 in that column, send that push, then update that column to 1.
But to do so live, in the manner I was trying to, still requires me to somehow get the name of the admin folder which is the biggest stump that I'm at. Overall I can still probably do this without the link being attached and drop it if's something or not normally done without reinventing the wheel. Like I can hardcode it for my shop, but was trying to make a generic solution so that all users can use it.