After using Jar Bundler to bundle the new Jmol 10 version 7 and then modifying the plist, I am now able to set all .mol files on my drive to launch Jmol upon double-clicking according to the procedures outlined earlier by Tim and me (Get info, etc.). I'm no longer getting that Launch Services error I got previously upon Change All .... The system still claims not to know whether Jmol handles .mol files, but the warnings can be ignored.

However, although Jmol now launches upon double-clicking .mol files, Jmol still doesn't load those files, somewhat defeating the purpose of double-clicking. Dragging the file icon onto the Jmol icon is also ineffective. I always have to go to the Open ... window. Not being a programmer, I have no idea whether this is an Apple flaw or a Jmol flaw.

-- Bob

Here is the code that I added to the plist with /Developer/Applications/Utilities/Property List Editor.

        <key>CFBundleDocumentTypes</key>
        <array>
                <dict>
                        <key>CFBundleTypeExtensions</key>
                        <array>
                                <string>mol</string>
                        </array>
                        <key>CFBundleTypeMIMETypes</key>
                        <array>
                                <string>chemical/x-mdl-molfile</string>
                        </array>
                        <key>CFBundleTypeName</key>
                        <string>MDL Molfile</string>
                        <key>CFBundleTypeRole</key>
                        <string>Editor</string>
                </dict>
                <dict>
                        <key>CFBundleMIMETypes</key>
                        <array>
                                <string>chemical/x-pdb</string>
                                <string>chemical/x-mdl-molfile</string>
                                <string>chemical/x-xyz</string>
                                <string>text/plain</string>
                        </array>
                        <key>CFBundleTypeExtensions</key>
                        <array>
                                <string>pdb</string>
                                <string>mol</string>
                                <string>mdl</string>
                                <string>xyz</string>
                                <string>res</string>
                        </array>
                        <key>CFBundleTypeName</key>
                        <string>Text document</string>
                        <key>CFBundleTypeRole</key>
                        <string>Editor</string>
                </dict>
                <dict>
                        <key>CFBundleMIMETypes</key>
                        <array>
                                <string>chemical/x-pdb</string>
                                <string>chemical/x-mdl-molfile</string>
                                <string>chemical/x-xyz</string>
                                <string>text/plain</string>
                        </array>
                        <key>CFBundleTypeExtensions</key>
                        <array>
                                <string>mdl</string>
                                <string>xyz</string>
                                <string>res</string>
                                <string>mol</string>
                                <string>pdb</string>
                        </array>
                        <key>CFBundleTypeName</key>
                        <string>Plain Text</string>
                        <key>CFBundleTypeRole</key>
                        <string>Editor</string>
                </dict>
        </array>


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Jmol-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to