Tagged Questions
2
votes
1answer
68 views
How can root launch a regular Mac application from a cron job in /etc/crontab?
I want the cronjob to do some things as the superuser, and depending on the result, launch an app as me, the logged-in user.
I've tried a bunch of things but nothing I think should work does.
...
0
votes
0answers
121 views
A working applescript fails when running via cron
MacOs 10.8.2
I have 2 applescripts shown below. They are arranged in one shell script to run one after another by using osascript (just to simplify the example).
Everything works fine when starting ...
2
votes
1answer
222 views
Use cron to screencapture on Mountain Lion
I want to set cron to capture the current desktop every hour:
screencapture -Cd -tjpg ~/Desktop/screen-`date +"%Y%m%d-%H%M"`.jpg
I tired this method but it seems doesn't work on Mountain Lion. I ...
0
votes
1answer
459 views
OS X Lion mysterious user cron job just does echo “PATH is $PATH”
OS X Lion 10.7.3.
Console view of system.log shows log entries for cron jobs defined in my user crontab as expected. Follow this link to view a copy of my user crontab if you want.
I inspected ...
2
votes
4answers
447 views
cron is failing to run my AppleScript
I have the following code in a text file (myfile.applescript):
#! /usr/bin/osascript
tell application "Google Chrome" to quit
I would like Chrome to shut down each night at 9:15PM, so I added the ...