Reputation: 4045
How would one go about achieving one of these two ways for automation?
1, Have the app check a server directory continuously (or in given intervals) for changes, while it is running, or....
2, automate that app somehow from outside. (I heard an Automator plugin written in XCode might be able to do something like this).
I don't need specific code (not hat it's not appreciated) just general pointers or classes or tips I could use to do this.
Upvotes: 2
Views: 347
Reputation: 29029
It sounds like what you want to look into is the ever-useful NSTimer, combined in your case with for instance NSURLRequest for the actual fetching.
It might be a good idea to have an option to turn of this continuous checking, as network conditions might not always be amenable to repeated HTTP requests.
Additionally, avoid doing HTTP requests on the main thread, use an asynchronous request or a dedicated thread.
Using Automator is likely counter-productive.
Upvotes: 2