JAL-3247 Auto generated file associations from jalview/io/FileFormat.java
authorBen Soares <bsoares@dundee.ac.uk>
Tue, 7 May 2019 19:17:48 +0000 (20:17 +0100)
committerBen Soares <bsoares@dundee.ac.uk>
Tue, 7 May 2019 19:17:48 +0000 (20:17 +0100)
utils/auto_file_associations_info_plist.sh [new file with mode: 0644]
utils/install4j/Info_plist_file_associations-AUTO.xml [new file with mode: 0644]

diff --git a/utils/auto_file_associations_info_plist.sh b/utils/auto_file_associations_info_plist.sh
new file mode 100644 (file)
index 0000000..dd00e40
--- /dev/null
@@ -0,0 +1 @@
+perl -n -e 's/\s+/ /g;if(m/^ ?(\w+) ?\( ?"([^"]*)" ?, ?"([^"]*)" ?, ?(true|false) ?, ?(true|false) ?\) ?$/){$m=lc($1); $n=$2; $e=$3; @es=split(m/\s*,\s*/,$e); print "<dict>\n<key>CFBundleTypeExtensions</key>\n<array>\n";for $e (@es){print"<string>$e</string>\n";}print"</array>\n<key>CFBundleTypeName</key>\n<string>$n File</string>\n<key>CFBundleTypeIconFile</key>\n<string>Jalview-File.icns</string>\n<key>CFBundleTypeRole</key>\n<string>Editor</string>\n<key>CFBundleTypeMIMETypes</key>\n<array>\n<string>application/x-jalview-$m</string>\n</array>\n<key>LSIsAppleDefaultForType</key>\n<true/>\n</dict>\n\n";}' src/jalview/io/FileFormat.java
diff --git a/utils/install4j/Info_plist_file_associations-AUTO.xml b/utils/install4j/Info_plist_file_associations-AUTO.xml
new file mode 100644 (file)
index 0000000..ce2e549
--- /dev/null
@@ -0,0 +1,367 @@
+<dict>
+<key>CFBundleTypeExtensions</key>
+<array>
+<string>fa</string>
+<string>fasta</string>
+<string>mfa</string>
+<string>fastq</string>
+</array>
+<key>CFBundleTypeName</key>
+<string>Fasta File</string>
+<key>CFBundleTypeIconFile</key>
+<string>Jalview-File.icns</string>
+<key>CFBundleTypeRole</key>
+<string>Editor</string>
+<key>CFBundleTypeMIMETypes</key>
+<array>
+<string>application/x-jalview-fasta</string>
+</array>
+<key>LSIsAppleDefaultForType</key>
+<true/>
+</dict>
+
+<dict>
+<key>CFBundleTypeExtensions</key>
+<array>
+<string>pfam</string>
+</array>
+<key>CFBundleTypeName</key>
+<string>PFAM File</string>
+<key>CFBundleTypeIconFile</key>
+<string>Jalview-File.icns</string>
+<key>CFBundleTypeRole</key>
+<string>Editor</string>
+<key>CFBundleTypeMIMETypes</key>
+<array>
+<string>application/x-jalview-pfam</string>
+</array>
+<key>LSIsAppleDefaultForType</key>
+<true/>
+</dict>
+
+<dict>
+<key>CFBundleTypeExtensions</key>
+<array>
+<string>sto</string>
+<string>stk</string>
+</array>
+<key>CFBundleTypeName</key>
+<string>Stockholm File</string>
+<key>CFBundleTypeIconFile</key>
+<string>Jalview-File.icns</string>
+<key>CFBundleTypeRole</key>
+<string>Editor</string>
+<key>CFBundleTypeMIMETypes</key>
+<array>
+<string>application/x-jalview-stockholm</string>
+</array>
+<key>LSIsAppleDefaultForType</key>
+<true/>
+</dict>
+
+<dict>
+<key>CFBundleTypeExtensions</key>
+<array>
+<string>pir</string>
+</array>
+<key>CFBundleTypeName</key>
+<string>PIR File</string>
+<key>CFBundleTypeIconFile</key>
+<string>Jalview-File.icns</string>
+<key>CFBundleTypeRole</key>
+<string>Editor</string>
+<key>CFBundleTypeMIMETypes</key>
+<array>
+<string>application/x-jalview-pir</string>
+</array>
+<key>LSIsAppleDefaultForType</key>
+<true/>
+</dict>
+
+<dict>
+<key>CFBundleTypeExtensions</key>
+<array>
+<string>BLC</string>
+</array>
+<key>CFBundleTypeName</key>
+<string>BLC File</string>
+<key>CFBundleTypeIconFile</key>
+<string>Jalview-File.icns</string>
+<key>CFBundleTypeRole</key>
+<string>Editor</string>
+<key>CFBundleTypeMIMETypes</key>
+<array>
+<string>application/x-jalview-blc</string>
+</array>
+<key>LSIsAppleDefaultForType</key>
+<true/>
+</dict>
+
+<dict>
+<key>CFBundleTypeExtensions</key>
+<array>
+<string>amsa</string>
+</array>
+<key>CFBundleTypeName</key>
+<string>AMSA File</string>
+<key>CFBundleTypeIconFile</key>
+<string>Jalview-File.icns</string>
+<key>CFBundleTypeRole</key>
+<string>Editor</string>
+<key>CFBundleTypeMIMETypes</key>
+<array>
+<string>application/x-jalview-amsa</string>
+</array>
+<key>LSIsAppleDefaultForType</key>
+<true/>
+</dict>
+
+<dict>
+<key>CFBundleTypeExtensions</key>
+<array>
+<string>html</string>
+</array>
+<key>CFBundleTypeName</key>
+<string>HTML File</string>
+<key>CFBundleTypeIconFile</key>
+<string>Jalview-File.icns</string>
+<key>CFBundleTypeRole</key>
+<string>Editor</string>
+<key>CFBundleTypeMIMETypes</key>
+<array>
+<string>application/x-jalview-html</string>
+</array>
+<key>LSIsAppleDefaultForType</key>
+<true/>
+</dict>
+
+<dict>
+<key>CFBundleTypeExtensions</key>
+<array>
+<string>xml</string>
+<string>rnaml</string>
+</array>
+<key>CFBundleTypeName</key>
+<string>RNAML File</string>
+<key>CFBundleTypeIconFile</key>
+<string>Jalview-File.icns</string>
+<key>CFBundleTypeRole</key>
+<string>Editor</string>
+<key>CFBundleTypeMIMETypes</key>
+<array>
+<string>application/x-jalview-rnaml</string>
+</array>
+<key>LSIsAppleDefaultForType</key>
+<true/>
+</dict>
+
+<dict>
+<key>CFBundleTypeExtensions</key>
+<array>
+<string>json</string>
+</array>
+<key>CFBundleTypeName</key>
+<string>JSON File</string>
+<key>CFBundleTypeIconFile</key>
+<string>Jalview-File.icns</string>
+<key>CFBundleTypeRole</key>
+<string>Editor</string>
+<key>CFBundleTypeMIMETypes</key>
+<array>
+<string>application/x-jalview-json</string>
+</array>
+<key>LSIsAppleDefaultForType</key>
+<true/>
+</dict>
+
+<dict>
+<key>CFBundleTypeExtensions</key>
+<array>
+<string>pileup</string>
+</array>
+<key>CFBundleTypeName</key>
+<string>PileUp File</string>
+<key>CFBundleTypeIconFile</key>
+<string>Jalview-File.icns</string>
+<key>CFBundleTypeRole</key>
+<string>Editor</string>
+<key>CFBundleTypeMIMETypes</key>
+<array>
+<string>application/x-jalview-pileup</string>
+</array>
+<key>LSIsAppleDefaultForType</key>
+<true/>
+</dict>
+
+<dict>
+<key>CFBundleTypeExtensions</key>
+<array>
+<string>msf</string>
+</array>
+<key>CFBundleTypeName</key>
+<string>MSF File</string>
+<key>CFBundleTypeIconFile</key>
+<string>Jalview-File.icns</string>
+<key>CFBundleTypeRole</key>
+<string>Editor</string>
+<key>CFBundleTypeMIMETypes</key>
+<array>
+<string>application/x-jalview-msf</string>
+</array>
+<key>LSIsAppleDefaultForType</key>
+<true/>
+</dict>
+
+<dict>
+<key>CFBundleTypeExtensions</key>
+<array>
+<string>aln</string>
+</array>
+<key>CFBundleTypeName</key>
+<string>Clustal File</string>
+<key>CFBundleTypeIconFile</key>
+<string>Jalview-File.icns</string>
+<key>CFBundleTypeRole</key>
+<string>Editor</string>
+<key>CFBundleTypeMIMETypes</key>
+<array>
+<string>application/x-jalview-clustal</string>
+</array>
+<key>LSIsAppleDefaultForType</key>
+<true/>
+</dict>
+
+<dict>
+<key>CFBundleTypeExtensions</key>
+<array>
+<string>phy</string>
+</array>
+<key>CFBundleTypeName</key>
+<string>PHYLIP File</string>
+<key>CFBundleTypeIconFile</key>
+<string>Jalview-File.icns</string>
+<key>CFBundleTypeRole</key>
+<string>Editor</string>
+<key>CFBundleTypeMIMETypes</key>
+<array>
+<string>application/x-jalview-phylip</string>
+</array>
+<key>LSIsAppleDefaultForType</key>
+<true/>
+</dict>
+
+<dict>
+<key>CFBundleTypeExtensions</key>
+<array>
+</array>
+<key>CFBundleTypeName</key>
+<string>JnetFile File</string>
+<key>CFBundleTypeIconFile</key>
+<string>Jalview-File.icns</string>
+<key>CFBundleTypeRole</key>
+<string>Editor</string>
+<key>CFBundleTypeMIMETypes</key>
+<array>
+<string>application/x-jalview-jnet</string>
+</array>
+<key>LSIsAppleDefaultForType</key>
+<true/>
+</dict>
+
+<dict>
+<key>CFBundleTypeExtensions</key>
+<array>
+<string>gff2</string>
+<string>gff3</string>
+</array>
+<key>CFBundleTypeName</key>
+<string>GFF or Jalview features File</string>
+<key>CFBundleTypeIconFile</key>
+<string>Jalview-File.icns</string>
+<key>CFBundleTypeRole</key>
+<string>Editor</string>
+<key>CFBundleTypeMIMETypes</key>
+<array>
+<string>application/x-jalview-features</string>
+</array>
+<key>LSIsAppleDefaultForType</key>
+<true/>
+</dict>
+
+<dict>
+<key>CFBundleTypeExtensions</key>
+<array>
+</array>
+<key>CFBundleTypeName</key>
+<string>Substitution matrix File</string>
+<key>CFBundleTypeIconFile</key>
+<string>Jalview-File.icns</string>
+<key>CFBundleTypeRole</key>
+<string>Editor</string>
+<key>CFBundleTypeMIMETypes</key>
+<array>
+<string>application/x-jalview-scorematrix</string>
+</array>
+<key>LSIsAppleDefaultForType</key>
+<true/>
+</dict>
+
+<dict>
+<key>CFBundleTypeExtensions</key>
+<array>
+<string>pdb</string>
+<string>ent</string>
+</array>
+<key>CFBundleTypeName</key>
+<string>PDB File</string>
+<key>CFBundleTypeIconFile</key>
+<string>Jalview-File.icns</string>
+<key>CFBundleTypeRole</key>
+<string>Editor</string>
+<key>CFBundleTypeMIMETypes</key>
+<array>
+<string>application/x-jalview-pdb</string>
+</array>
+<key>LSIsAppleDefaultForType</key>
+<true/>
+</dict>
+
+<dict>
+<key>CFBundleTypeExtensions</key>
+<array>
+<string>cif</string>
+</array>
+<key>CFBundleTypeName</key>
+<string>mmCIF File</string>
+<key>CFBundleTypeIconFile</key>
+<string>Jalview-File.icns</string>
+<key>CFBundleTypeRole</key>
+<string>Editor</string>
+<key>CFBundleTypeMIMETypes</key>
+<array>
+<string>application/x-jalview-mmcif</string>
+</array>
+<key>LSIsAppleDefaultForType</key>
+<true/>
+</dict>
+
+<dict>
+<key>CFBundleTypeExtensions</key>
+<array>
+<string>jvp</string>
+<string>jar</string>
+</array>
+<key>CFBundleTypeName</key>
+<string>Jalview File</string>
+<key>CFBundleTypeIconFile</key>
+<string>Jalview-File.icns</string>
+<key>CFBundleTypeRole</key>
+<string>Editor</string>
+<key>CFBundleTypeMIMETypes</key>
+<array>
+<string>application/x-jalview-jalview</string>
+</array>
+<key>LSIsAppleDefaultForType</key>
+<true/>
+</dict>
+