LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.

Notices

Reply
 
Search this Thread
Old 05-10-2012, 11:40 AM   #1
taffners
LQ Newbie
 
Registered: May 2012
Posts: 5

Rep: Reputation: Disabled
cronjob that launches applescript app once a day please help


Hello I'm trying to make my first cron job.

I'm completely new to any type of programming and have never posted on any forum before so I hope this makes sense. I have Mac OS X 10.5.8.

My goal is to run my applescript program called beatrice.app at 9:30 pm every night. My app is located on the desktop of my computer. All the app does is open a website in chrome.

This is my code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.apple.beatrice</string>
<key>ProgramArguments</key>
<array>
<string>cd</string>
<string>MacintoshHD/Users/samantha/Desktop/beatrice.app;</string>
</array>
<key>QueueDirectories</key>
<array/>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>21</integer>
<key>Minute</key>
<integer>30</integer>
</dict>
<key>WatchPaths</key>
<array/>
</dict>
</plist>

I saved this file under /System/Library/LaunchDaemons/com.apple.beatrice.plist

Afterwards I went to the command line and wrote sudo launchctl load
/System/Library/LaunchDaemons/com.apple.beatrice.plist

But nothing happens at 9:30pm

Please help.
Samantha
 
Old 05-10-2012, 08:52 PM   #2
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 7,322

Rep: Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381
I found this link. I hope it helps. I have no way of testing anything on a Mac.

http://apple.stackexchange.com/quest...n-job-on-a-mac

Last edited by frankbell; 05-10-2012 at 08:55 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cronjob that launches applescript app once a day please help taffners *BSD 4 05-19-2012 01:43 PM
cronjob that launches applescript app once a day please help taffners Linux - Newbie 3 05-10-2012 01:49 PM
Gnome Open Directory launches Music App! A.Thyssen Linux - Software 1 09-01-2011 09:00 PM
[SOLVED} Problem with App Launches in IceWM 1.2.37 HaroldWho Linux - Software 0 10-21-2009 02:51 PM
Problem with App Launches in IceWM 1.2.37 HaroldWho Linux - Software 0 10-20-2009 01:54 PM


All times are GMT -5. The time now is 05:03 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration