Mac OS X で、アプリケーションがまだ実行されていない場合、ドキュメントをダブルクリックしてドキュメントを開くことができません
ドキュメント ファインダーをダブルクリックして描画アプリケーションを起動すると、次のようなダイアログが表示されます。
ドキュメント「test.jdwg」を開けませんでした。アプリケーション「jDraft」は、「jDraft ドキュメント」形式のファイルを開くことができません。
このメッセージ ダイアログは、アプリケーションがスプラッシュ スクリーンを表示する前に表示されますが、アプリケーションはバックグラウンドで起動され (スプラッシュ スクリーンが表示されます)、ドキュメントを再度ダブルクリックすると、アプリケーションが正しく開きます。
背景として、このアプリケーションは (この点で) 何年も機能しています。この問題は、 JWrapperを使用してアプリケーションをパッケージ化しようとしたときに発生しました。
以下はInfo.plist
私のアプリケーションです。
これは、JWrapper がアプリケーションを実行するために JVM を起動またはフォークする方法に関連している可能性があると思われます。
Mac OS X の JWrapper でファイルの関連付けを機能させることができた人はいますか?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleName</key>
<string>jDraft</string>
<key>CFBundleIdentifier</key>
<string>jwrapper.osx.jDraft</string>
<key>CFBundleVersion</key>
<string>43568712</string>
<key>CFBundleAllowMixedLocalizations</key>
<string>true</string>
<key>CFBundleExecutable</key>
<string>osxwrapper</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>LSUIElement</key>
<true/>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleIconFile</key>
<string>AppLogo.icns</string>
<key>NSHighResolutionCapable</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>jDraft Drawing 2</string>
<key>LSHandlerRank</key>
<string>Default</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleTypeIconFile</key>
<string>jDraft-doc-jdwg.icns</string>
<key>CFBundleTypeExtensions</key>
<array>
<string>jdwg</string>
</array>
<key>CFBundleTypeOSTypes</key>
<array>
<string>jdwg</string>
</array>
</dict>
</array>
</dict>
</plist>