Re: Creator type of packaged app bug?
Re: Creator type of packaged app bug?
- Subject: Re: Creator type of packaged app bug?
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 07 Jul 2003 07:47:35 -0700
On 7/7/03 3:26 AM, "Bill Cheeseman" <email@hidden> wrote:
>
Please tell me if this is a known bug, and whether anything can be done to
>
avoid it. (I still find the Apple mailing list search facilities unusable.)
>
>
My script asks the Finder for the container of the application whose creator
>
type is a specified 4-char string. On one machine, it correctly returns the
>
container of the application package, but on another machine it returns the
>
container ("MacOS") of the executable inside the application package. In
>
both cases, I am targeting Now Up-to-Date 4.2.6 on Mac OS X 10.2.6.
>
>
Both copies of the app are correctly-formed application packages. Both have
>
been verified to contain the correct (now deprecated but still permitted)
>
PkgInfo file containing the string "APPLCal*". Both also contain well-formed
>
Info.plist files containing the correct values for the creator ('Cal*') and
>
type ('APPL') keys. (I have not thought to ask whether the other machine has
>
the beta GUI Scripting software installed, as mine does.)
It might well be worth asking if the other machine has the System Events
beta 2.0, as yours does. SE beta 2 seems to introduce all sorts of wonkiness
into Finder scripting, which is not too surprising since apparently the
Finder passes many "legacy" calls off to System Events. Something gets lost
in the translation where SE 2.0 beta is concerned: for example 'folder', and
'disk' become recompiled as raw code in pre-existing scripts, and will not
compile at all as 'folder' or 'disk' in new scripts. That is, this happens
most of the time. Some of the time it doesn't happen, or didn't happen. I
haven't checked 'container' yet, but will.
It looks like it's time to submit a few bugs on this. In your case, you
might try to test specifically for the presence of System Events 2.0 beta,
Bill.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.