Re: Finding other apps' paths - deterministically!

2008-10-01 Thread Jerry Krinock
On 2008 Sep, 30, at 16:47, Charles Srstka wrote: On Sep 30, 2008, at 12:00 PM, Jerry Krinock wrote: Also, it seems to not find helper applications which are inside other applications' packages. Is there any reason why you couldn't just search for the main application which contains the

Re: Finding other apps' paths - deterministically!

2008-10-01 Thread Jerry Krinock
On 2008 Sep, 30, at 12:50, Michael Ash wrote: Of course if [your helper] isn't registered to open documents then this doesn't work so great. Yes, that's the problem. It's a background kind of a guy. It doesn't open documents of any kind. As for multiple installations, I don't see any

Re: Finding other apps' paths - deterministically!

2008-10-01 Thread Charles Srstka
On Oct 1, 2008, at 2:47 PM, Jerry Krinock wrote: On 2008 Sep, 30, at 16:47, Charles Srstka wrote: On Sep 30, 2008, at 12:00 PM, Jerry Krinock wrote: Also, it seems to not find helper applications which are inside other applications' packages. Is there any reason why you couldn't just

Re: Finding other apps' paths - deterministically!

2008-09-30 Thread Jerry Krinock
Michael Ash wrote: For the original problem, I'd recommend using something like LSCopyApplicationURLsForURL() if it's at all possible. Good idea but I'm looking for a helper app which is not registered to open any URLs. Also, I don't see any indication that LSCopyApplicationURLsForURL()

Re: Finding other apps' paths - deterministically!

2008-09-30 Thread Michael Ash
On Tue, Sep 30, 2008 at 1:00 PM, Jerry Krinock [EMAIL PROTECTED] wrote: Michael Ash wrote: For the original problem, I'd recommend using something like LSCopyApplicationURLsForURL() if it's at all possible. Good idea but I'm looking for a helper app which is not registered to open any URLs.

Re: Finding other apps' paths - deterministically!

2008-09-30 Thread Charles Srstka
On Sep 30, 2008, at 12:00 PM, Jerry Krinock wrote: Also, it seems to not find helper applications which are inside other applications' packages. Is there any reason why you couldn't just search for the main application which contains the helper application inside its bundle and then just

Re: Finding other apps' paths - deterministically!

2008-09-22 Thread Jeffrey R. Kelley
Incidentally, this is something Microsoft's Office 2008 update installers do. If you're not careful you can walk away and come back hours later with the search still running. Jeffrey R. Kelley [EMAIL PROTECTED] ITCS - Campus Computing Sites University of Michigan On Sep 21, 2008, at 3:49

Re: Finding other apps' paths - deterministically!

2008-09-21 Thread Tommy Nordgren
On Sep 21, 2008, at 6:36 AM, Michael Ash wrote: On Sat, Sep 20, 2008 at 12:57 PM, Tommy Nordgren [EMAIL PROTECTED] wrote: Use NSTask with the command line find -x / -name '*.app' Do this on a separate thread, and cache the result. I highly recommend against this approach. One problem

Re: Finding other apps' paths - deterministically!

2008-09-21 Thread Peter O'Gorman
Tommy Nordgren wrote: On Sep 21, 2008, at 6:36 AM, Michael Ash wrote: On Sat, Sep 20, 2008 at 12:57 PM, Tommy Nordgren [EMAIL PROTECTED] wrote: Use NSTask with the command line find -x / -name '*.app' Do this on a separate thread, and cache the result. I highly recommend against

Re: Finding other apps' paths - deterministically!

2008-09-21 Thread Peter O'Gorman
Peter O'Gorman wrote: Tommy Nordgren wrote: On Sep 21, 2008, at 6:36 AM, Michael Ash wrote: On Sat, Sep 20, 2008 at 12:57 PM, Tommy Nordgren [EMAIL PROTECTED] wrote: Use NSTask with the command line find -x / -name '*.app' Dunno how I missed the -x, does not matter though, find -x /

Re: Finding other apps' paths - deterministically!

2008-09-21 Thread Tommy Nordgren
On Sep 21, 2008, at 11:25 PM, Peter O'Gorman wrote: Peter O'Gorman wrote: Tommy Nordgren wrote: On Sep 21, 2008, at 6:36 AM, Michael Ash wrote: On Sat, Sep 20, 2008 at 12:57 PM, Tommy Nordgren [EMAIL PROTECTED] wrote: Use NSTask with the command line find -x / -name '*.app' Dunno

Re: Finding other apps' paths - deterministically!

2008-09-21 Thread Michael Ash
On Sun, Sep 21, 2008 at 1:52 PM, Tommy Nordgren [EMAIL PROTECTED] wrote: On Sep 21, 2008, at 6:36 AM, Michael Ash wrote: On Sat, Sep 20, 2008 at 12:57 PM, Tommy Nordgren [EMAIL PROTECTED] wrote: Use NSTask with the command line find -x / -name '*.app' Do this on a separate thread,

Re: Finding other apps' paths - deterministically!

2008-09-20 Thread Tommy Nordgren
On Sep 18, 2008, at 8:47 PM, Jerry Krinock wrote: The methods for finding applications, -[NSWorkspace fullPathForApplication:] -[NSWorkspace absolutePathForAppBundleWithIdentifier:] AppleScript's 'path to application' all return only ONE result. If there is more than installation of

Re: Finding other apps' paths - deterministically!

2008-09-20 Thread Michael Ash
On Sat, Sep 20, 2008 at 12:57 PM, Tommy Nordgren [EMAIL PROTECTED] wrote: Use NSTask with the command line find -x / -name '*.app' Do this on a separate thread, and cache the result. I highly recommend against this approach. One problem is that it will fail badly if any of the returned

Finding other apps' paths - deterministically!

2008-09-18 Thread Jerry Krinock
The methods for finding applications, -[NSWorkspace fullPathForApplication:] -[NSWorkspace absolutePathForAppBundleWithIdentifier:] AppleScript's 'path to application' all return only ONE result. If there is more than installation of the application, which often happens out here in

Re: Finding other apps' paths - deterministically!

2008-09-18 Thread Ken Thomases
On Sep 18, 2008, at 1:47 PM, Jerry Krinock wrote: The methods for finding applications, -[NSWorkspace fullPathForApplication:] -[NSWorkspace absolutePathForAppBundleWithIdentifier:] AppleScript's 'path to application' all return only ONE result. If there is more than installation of