Hello, I am currently porting wxPerl to MacOSX. Everything mostly works, except that, AFAICT, I can't use the command line perl executable to run wxPerl applications (apps display a window, but don't display menus, and behave in strange ways). To circumvent this I created a Perl.app bundle, using a slightly modified perl (I added an event loop to process "open document" Apple events). When I drop a .pl file into the bundle, it is executed correctly. However, when a .pl script is already running, dropping another .pl file into the bundle does not open another instance of perl, even if I set CFBundleTypeRole to Shellin the bundle inf file (attached). What am I doing wrong?
Thanks! Mattia
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> <plist version="0.9"> <dict> <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeExtensions</key> <array> <string>pl</string> </array> <!-- <key>CFBundleTypeIconFile</key> <string>PythonSource.icns</string> --> <key>CFBundleTypeName</key> <string>Perl script</string> <key>CFBundleTypeOSTypes</key> <array> <string>****</string> </array> <key>CFBundleTypeRole</key> <string>Shell</string> </dict> <!-- <dict> <key>CFBundleTypeExtensions</key> <array> <string>pyc</string> </array> <key>CFBundleTypeIconFile</key> <string>PythonCompiled.icns</string> <key>CFBundleTypeName</key> <string>Python Compiled Module</string> <key>CFBundleTypeOSTypes</key> <array> <string>PYC</string> </array> <key>CFBundleTypeRole</key> <string>Shell</string> </dict> --> <!-- <dict> <key>CFBundleTypeOSTypes</key> <array> <string>****</string> <string>fold</string> <string>disk</string> </array> <key>CFBundleTypeRole</key> <string>Viewer</string> </dict> --> </array> <key>CFBundleExecutable</key> <string>perl</string> <key>CFBundleGetInfoString</key> <string>Perl 5.8.0</string> <key>CFBundleLongVersionString</key> <string>xxx</string> <key>NSHumanReadableCopyright</key> <string>xxx</string> <key>CFBundleShortVersionString</key> <string>6.5</string> <!-- <key>CFBundleIconFile</key> <string>PythonInterpreter.icns</string> --> <key>CFBundleIdentifier</key> <string>org.perl.interpreter</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>PerlInterpreter</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleSignature</key> <string>Perl</string> <key>CFBundleVersion</key> <string>5.8.0</string> <key>LSRequiresCarbon</key> <true/> <!-- <key>CSResourcesFileMapped</key> <true/> --> </dict> </plist>