Re: Creator type of packaged app bug?
Re: Creator type of packaged app bug?
- Subject: Re: Creator type of packaged app bug?
- From: Jeffrey Berman <email@hidden>
- Date: Mon, 07 Jul 2003 13:36:31 -0500
On 7/7/03 3:09 PM, John Delacour <email@hidden> wrote:
>
At 8:21 am -0400 7/7/03, Bill Cheeseman wrote:
>
>
> I have since determined that the other machine is NOT running the beta
>
> version of System Events, while my machine is. It therefore looks like this
>
> is a bug that has been fixed in the beta. (I recall that the beta came with
>
> some release notes, but I seem to have misplaced mine.)
>
>
>
> Can someone confirm this?
>
>
I've tried with three different versions of System Events and get the
>
expected behaviour in all cases.
>
>
-- System Events 1.1.1:
>
tell application "Finder"
>
"" & container of application file id "CSOm"
>
end tell
>
--> "dx:Applications:Eudora Application Folder:"
>
>
and the same with other packages I've tried.
It may be something specific to the Now Up-to-Date application package. The
creator code for the application is "Cal*" and the following syntax:
tell application "Finder"
container of application file id "Cal*"
end tell
returns:
folder "MacOS" of folder "Contents" of application file "Now Up-to-Date.app"
of folder "Now Up-to-Date" of folder "NUDC" of folder "Applications" of
startup disk of application "Finder"
The creator code for BBEdit is "R*ch" and the following syntax:
tell application "Finder"
container of application file id "R*ch"
end tell
returns:
folder "BBEdit" of folder "Applications" of startup disk of application
"Finder"
In the case of Now Up-to-Date it returns the MacOS folder inside the
application package, and in the case of BBEdit it returns the folder
enclosing the application. Both run using System Events 1.1.2 under Mac OS
X 10.2.6.
-Jeffrey Berman
_______________________________________________
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.