This is my first Mac application.
I would like to send emails by comparing the current date and saved date of clients by the user in sqlite only one time- every day depending on the condition, asynchronously.
|
This is my first Mac application. I would like to send emails by comparing the current date and saved date of clients by the user in sqlite only one time- every day depending on the condition, asynchronously. |
||||
Questions on Ask Different are expected to relate to Apple hardware or software within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.
|
Note: I'm assuming that by "asynchronous" you mean "do this whether or not the user is logged in and running the application at 9:30 am". The right way to do this is to register a call with launchd that handles the appropriate work for your application. When and how you do this is somewhat flexible. If you're using a The Daemons and Services guide delves in to how to do this in great detail. I recommend reading that. And for a description of plist properties that launchd looks at see this manual page. As a very high-level example, let's assume your helper application can be found in your package under
Save that in
To register it right away with |
|||
|
|
|
(Assuming you're using Objective-C/Cocoa) The route I would take:
|
|||
|
|
cron. – roosto Apr 11 '12 at 12:11