• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cron/Launchd Editor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cron/Launchd Editor


  • Subject: Re: cron/Launchd Editor
  • From: Robert Poland <email@hidden>
  • Date: Thu, 17 Sep 2009 16:27:10 -0600

Philip,

Is "com.my.agent.plist" a special script or just an example?

I have set all /Library/LaunchAgents to me/read/write.


On Sep 17, 2009, at 4:04 PM, Philip Aker wrote:

On 2009-09-17, at 13:27:41, Robert Poland wrote:


It is stored in /Library/LaunchAgents.


I tested one of my agents in this location. It works from there as well (after I reset its owner and group (as per documentation)).

Philip, What do you mean by owner and group

For those in /Library/LaunchAgents I use:

chown root:wheel /Library/LaunchAgents/com.my.agent.plist


and What documentation?

The main document is TN2083. For a quick reference there are <x-man-page://launchctl> and <x-man-page://5/launchd.plist>.

For the second plist you sent, it looks wrong to me.

Firstly, if you're running a script then I think somewhere along the line you should be going through /usr/bin/osascript. I actually run osascript through the Program '/bin/sh' and then in the ProgramArguments after the obligatory 'sh' and '-c' and then do the osascript call because I'm using other commands in the plist script as well.

Secondly, for the StartCalendarInterval values, the integers are zero-based for the Minute and Hour, but 1-based for Day, and Month <x-man-page://crontab>.


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.



Bob Poland - Fort Collins, CO



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: cron/Launchd Editor
      • From: Philip Aker <email@hidden>
References: 
 >cron/Launchd Editor (From: Robert Poland <email@hidden>)
 >Re: cron/Launchd Editor (From: Philip Aker <email@hidden>)
 >Re: cron/Launchd Editor (From: Robert Poland <email@hidden>)
 >Re: cron/Launchd Editor (From: Philip Aker <email@hidden>)
 >Re: cron/Launchd Editor (From: Robert Poland <email@hidden>)
 >Re: cron/Launchd Editor (From: Philip Aker <email@hidden>)

  • Prev by Date: JustWonedering
  • Next by Date: Re: cron/Launchd Editor
  • Previous by thread: Re: cron/Launchd Editor
  • Next by thread: Re: cron/Launchd Editor
  • Index(es):
    • Date
    • Thread