Re: Where is my app?
Re: Where is my app?
- Subject: Re: Where is my app?
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 13 Aug 2001 13:29:54 -0700
On 8/13/01 10:07 PM, "JJ" <email@hidden> wrote:
>
> Anyone see another solution?
>
>
>
>
Seeming that app "Finder" & akua's "path to creator" call to (file id)'s
>
newest version.
>
>
Not so scientific, but works for many apps:
>
>
tell application "Finder" to set GConverterFolder to [opt+L]
>
container of (application file id "GKON")
>
>
set theApps to the entries in GConverterFolder [opt+L]
>
whose creators are in "GKON" whose types are in "APPL"
>
>
repeat with theApp in theApps
>
if theApp's last character = "x" then
>
set GConverterX to theApp as text
>
else
>
set GConverterOS9 to theApp as text
>
end if
>
end repeat
>
>
{GConverterX, GConverterOS9}
>
Unfortunately, it's line 1 that just won't work a lot of the time. As I
said:
application file id "xxxx"
just errors in the Finder under certain circumstances. These circumstances
may possibly have to do with applications that are "packages". But in any
case, it just can't find them - possibly only when the can't-find version is
the OS X version. However, that still doesn't help in finding the OS 9
version - you're just stuck.
Furthermore, I know of (almost?) no apps that have both versions in the same
folder - they're each in their own folder. So that won't work either.
Also, the Akua method also faltered, as I said, with one app where its
pathname for some reason ended in two colons - couldn't do anything with
that one. (Actually, that wasn't GC, but a different app.)
The one hope would be the Satimage method - if it _always_ finds the OS 9
version, as it appeared to in very limited testing. It would have to be
tested a lot more, to see if it's 100% reliable. So far, I'm not sure yet.
Since 'application file id "xxxx"' doesn't exist in OS X, and Smile for X
beta doesn't yet appear to expose its dictionary, the only place to even
attempt this is OS 9, where you will always want the OS 9 version. Since the
Finder and Akua methods won't always work, the thing is to keep testing to
see if the Satimage method odes always work, or not.
--
Paul Berkowitz