Deamon and "normal"

Hi everyone!

I need do to regular upload’s to a fileserver for one kind of file and sometimes I need to open those file’s locally.
So I had the idea of running a deamon application that opens when the file is double clicked. then a window come’s up where you can choose between running the file using a predesignated application or auto-uploading it to the fileserver and putting it in a folder (e.g. /root/files/uploaded). This needs to work in the background (no dock-icon and always loaded in-memory) Doing this itself isn’t hard. but ofcourse there is a downside. For I need to make a settings application. and this can be loaded normally. (dock-icon, not always in memory).

E.g. When you open the application for the first time it automatically opens the deamon and then opens the settings. and when you quit the application the deamon needs to stay active. but when you open it a second time it just loads the settings (because the deamon is still loaded). Could anyone of you explain how this can be done?

Thank you!

Anyone?

Hi,

of course it’s possible to write such a project, but it requires more than 10 lines of code and more than 4 paragraphs of description. I guess this is the reason for the lack of answers

Also the question is too open. I can’t imagine you want such a complex application for opening or uploading a file, therefore I didn’t respond. For instance i have a contextual menu item in the Finder to upload files. The difference between uploading and opening locally is nothing more than clicking with the index finger or middle finger for me. But I expect that this isn’t the answer.

yeah thru I hoped to make it clear to find a way to conceal an app (:contents:resources?) within the app that is opened when opening the main app.

It sounds like you want to set the LSUIElement or LSBackgroundOnly flag in the Info settings.