Thanks again, Matt! I'm sorry about the notation I used. It doesn't really matter--I used the format that is most readable. The XML formatting doesn't always work in email. I used the Save As command in the OS X Property List editor.

My bundle now works both under OS X and OS 9, although it is still called "Start.app" under OS 9 (isntead of being called "Start"). But the icon is the right one, and clicking it does launch the OS 9 application. Under OS X the extension ".app" is hidden, but otherwise it works the same.

If someone at MM wants to improve their write-up at http://www.macromedia.com/support/director/ts/documents/bundle_proj.htm my experience may be useful.

Under Getting This on a CD, the MM writeup says that the alias to the OS 9 projector should be placed "at the root," and in the same paragraph, it says the alias should be placed "at the same level as the bundle." In fact, it should be placed at the same level as the Contents folder.

It also seems that the alias to the OS 9 projector has to have the filename extension ".alias" although I'm not entirely sure about this. If I were editing that write-up, I'd make it more clear where the name elements are arbitrary and where they have to conform to a certain scheme. The MM downloadable example does not include an alias to the OS 9 projector, so it's not helpful in this respect.

The MM write-up says nothing about the contents of the plist files and does not explain which properties must match which filenames, etc. Much of the info in the plist files is optional, but some of it seems crucial. (E.g., what in the world is "com.macromedia.Otto"--do we need to use that?)

The MM downloadable example does not use a custom icon, which requires another property added to info.plist:

key: CFBundleIconFile
string: MyIconFilename

MyIconFilename here is the name of the icns file that you place in the Resources folder in the bundle. I think indicating the ".icns" extension in the string above is optional. I create my icns files using the IconComposer from the OS X 10.2 Developer Tools (?) goodies disk.

I still don't know why the bundle's folder name extension "app" is not hidden under OS 9, but it functions correctly now.

Again, thanks for responding, Matt, and I hope this thread may be useful to someone in the future (until the MM page is updated).

Slava

At 09:44 AM 7/9/03 -0400, you wrote:
Slava,

I am not exactly sure what format your plist files are in, but in the
bundles I have done, they are in an XML format...

Based on the download from:
http://www.macromedia.com/support/director/ts/documents/bundle_proj.htm

My  info.plist file reads (watch for linebreaks):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM
"file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
        <key>CFBundleInfoDictionaryVersion</key>
        <string>6.0</string>
        <key>CFBundlePackageType</key>
        <string>APPL</string>
        <key>CFBundleSignature</key>
        <string>foo!</string>
        <key>CFBundleName</key>
        <string>foo</string>
        <key>CFBundleIconFile</key>
        <string>MyIcon.icns</string>
        <key>CFBundleIdentifier</key>
        <string>com.macromedia.Otto</string>
        <key>CSResourcesFileMapped</key>
        <false/>
        <key>CFBundleExecutable</key>
        <string>stubX</string>
        <key>CFBundleShortVersionString</key>
        <string>1.0</string>
        <key>CFBundleVersion</key>
        <string>1.0</string>
        <key>CFBundleGetInfoString</key>
        <string>1.0, © 2002 Macromedia.  All rights reserved.</string>
</dict>
</plist>

and the contents of the pkgInfo file looks like:
APPLfoo!


So the bundle signature of the info.plist file matches the line in pkgInfo.

Is your notation an alternative to this syntax, or is it just simplified
for readability?

Also notice, that I added the CFBundleIconFile key to the existing plist
file so that you can use a custom icon for the projector bundle. I
believe there were some good postings on how to create icon resource
files (.icns) and corresponding paste-able icons for the getInfo window
earlier this year in either this list's archives or the Direct-L list...
I can't locate the exact message at the moment though...

Hope this helps!
~Mathew


-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Slava Paperno Sent: Tuesday, July 08, 2003 6:28 PM To: [EMAIL PROTECTED] Subject: RE: <lingo-l> OSX/9 bundle puzzle: foo.app = foo.app

Thanks a million for responding, Matt. Here they are:

{
     CFBundleDevelopmentRegion = English;
     CFBundleExecutable = Start;
     CFBundleGetInfoString = "Start Application";
     CFBundleIconFile = "Start.icns";
     CFBundleInfoDictionaryVersion = "6.0";
     CFBundleName = Start;
     CFBundlePackageType = APPL;
     CFBundleShortVersionString = "1.0";
     CFBundleSignature = CFINTRO;
     CFBundleVersion = "1.0";
}

{
     BuildVersion = 02;
     CFBundleShortVersionString = "1.0";
     CFBundleVersion = "1.0";
     ProjectName = Start;
     ReleaseStatus = GM;
     SourceVersion = 0200;
}

"Start" is the name of my projectors and the topmost folder, Start.app.
(I
used "foo.app" in my original post because that's what the MM write-up
uses.)

Slava

At 05:58 PM 7/8/03 -0400, Mathew Ray wrote:
>What do your plist files look like?
>
>~Mathew
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Slava Paperno
>Sent: Tuesday, July 08, 2003 4:39 PM
>To: [EMAIL PROTECTED]
>Subject: <lingo-l> OSX/9 bundle puzzle: foo.app = foo.app
>
>I'm trying to create a Mac OS 9 / OS X bundle for my Director
>application,
>and I've run into a puzzle. I wonder if anyone else has seen the same
>thing.
>
>I followed the directions at
>http://www.macromedia.com/support/director/ts/documents/bundle_proj.htm
>
>One of the first claims made there is that a volume root folder that
you
>
>name "foo.app" will actually display its name as "foo" and will appear
>to
>be an application rather than a folder (both under OS 9 and OS X) until
>you
>Ctrl-click it and select Show Package Contents. This works fine for me
>under OS X but fails under OS 9.2.
>
>I burned the volume to a CD under OS X. The disk works fine under OS X
>on
>other machines, but on OS 9.2 machines, the name of the folder is
>foo.app
>and it looks and acts just like a folder. I can start my application by
>opening this folder and then opening folder Contents inside, and then
>double-clicking the alias for the OS 9 projector in that folder--but
>that
>should not be necessary.
>
>A couple of things I discovered while practicing this arcane art:
>
>If you use lingo.ini and MyProjector.ini, these have to be duplicated
>and
>placed alongside each of the two projectors. This is not mentioned in
>the
>MM writeup.
>
>If you use "the moviePath" anywhere in your movies, that will return
the
>
>actual path on the volume, i.e. MyVolume:foo.app:contents:MacOS: etc.
>This
>was not apparent to me at first. The consequences are dramatic for a
>movie
>that needs to access files by specifying the complete path.
>
>Any tips on why my volume's root "foo.app" folder is still called
>foo.app
>under OS 9.2 would be appreciated.
>
>Slava

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to