Background helper tool location change problem
Background helper tool location change problem
- Subject: Background helper tool location change problem
- From: Jerry Brace <email@hidden>
- Date: Wed, 14 Dec 2005 16:22:06 -0300
My main application has a helper app in it's resources directory. When the main application is closed I have this helper app running in the background and is used to launch the main application on a scheduled date/time.
The main application launches the helper by getting the path from the name of the resource (the helper app in the resources folder). The problem is - if the application is moved to another location while it is running the helper doesn't seem to know this and when the helper tries to launch the main application (by getting the parent path of the helper) it does not work - I believe it still thinks it is running in the original location.
I know that in a normal case no one would be moving the app around - but I'd like to correct this.
Example: someone could mount the application image - run the app - turn on the helper and then move the app to the applications folder - this would case the problem.
So basically I need to know the correct way to launch a helper app, and have it be able to reference the main application when needed to open it. When the helper is enabled it is also set as a login item for the current user.
Any help would be great! I've been working on this for quite some time.
Jerry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden