On 21 May '08, at 7:20 AM, [EMAIL PROTECTED] wrote:
What is the preferred way to programmatically schedule a SEND/FAX event, (preferably via Cocoa)? I could supply the necessary parameters & data, perhaps stored in User Defaults or a flat file.
Use launchd. (I think cron still exists, but only as legacy, and it's run by launchd anyway.) It's not what I'd call easy, though. You'll need to generate the plist (in ~/Library/LaunchAgents/), run launchctl via NSTask to register it, and then your task should presumably delete the plist and run launchctl again after it finishes.
Make sure to read the "daemons and agents" tech note, and the man pages for launchctl(1) and launchd.plist(5).
—Jens
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]