mporting Your Applications (Advanced)

FireWolf MultiApp Launcher now supports importing applications rapidly from a well-defined file.

Let's give it a name: Definition File.

Method 1:

Click the Apps Management >> Import Applications from Files... menu and choose one or more definition files in the dialog.

Method 2:

Click the Apps Management >> Manage Imported Applications menu and drag one or more definition files to the list.


Introduction to the Definition File

A definition file is just a property list file which defines the application bundle path, localized descriptions and category.

FireWolf MultiApp Launcher supports two definition formats, and let's talk about the easy one first.

Array Format

The array format is easy to understand, and it is the default export format of the application manager.

Here is how a definition file with an array format looks like.

<?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">
<array>
    <dict>
        <key>BundlePath</key>
        <string>/System/Library/CoreServices/Finder.app</string>
        <key>Category</key>
        <string>FileManagement</string>
        <key>LocalizedDescriptions</key>
        <dict>
            <key>en-US</key>
            <string>Apple OS X's File Manager</string>
            <key>zh-Hans</key>
            <string></string>
            <key>zh-Hant</key>
            <string></string>
        </dict>
    </dict>
    <dict>
        <key>BundlePath</key>
        <string>/Applications/BetterZip.app</string>
        <key>Category</key>
        <string>FileManagement</string>
        <key>LocalizedDescriptions</key>
        <dict>
            <key>en-US</key>
            <string>A famous OS X archive manager</string>
            <key>zh-Hans</key>
            <string></string>
            <key>zh-Hant</key>
            <string></string>
        </dict>
    </dict>
</array>
</plist>

Xcode and PlistEdit Pro are recommended to edit a property list file. (More intuitive)

As we can see from the above code snippet <array>...</array>, a property list file with an array format is just an array.

Every element in that array is a dictionary which is just a bunch of Key/Value pairs.

The dictionary contains the following three keys:

  • BundlePath: Its value has a type of string and defines the bundle path of an application. (Not the executable path)
  • Category: Its value also has a type of string and defines the category of an application. Supported category values are:
    1. FileManagement: The File Management category
    2. DiskManagement: The Disk Management category
    3. HardwareManagement: The Hardware Management category
    4. DocumentEditor: The Document Editor category
    5. BootloaderUtility: The Bootloader Utility category
    6. MaintenanceKits: The Maintenance Kits category
    7. Unspecified: The Unspecified category
  • LocalizedDescriptions:Its value has a type of dictionary and defines localized descriptions of an application. Supported language codes are English (en-US), Simplified Chinese (zh-Hans) and Traditional Chinese (zh-Hant).

Dictionary Format

Recall that a dictionary is just a bunch of Key/Value pairs.

In this case, each key is a category, and the corresponding value is an array which defines all applications under this category.

Let's take a look at a definition file with a dictionary format.

<?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>BootloaderUtility</key>
    <array>
        <dict>
            <key>BundlePath</key>
            <string>/Applications/Chameleon Wizard.app</string>
            <key>LocalizedDescriptions</key>
            <dict>
                <key>en-US</key>
                <string>Edit Chameleon's boot configurations</string>
                <key>zh-Hans</key>
                <string></string>
                <key>zh-Hant</key>
                <string></string>
            </dict>
        </dict>
    </array>
    <key>DiskManagement</key>
    <array>
        <dict>
            <key>BundlePath</key>
            <string>/Applications/Utilities/Disk Utility.app</string>
            <key>LocalizedDescriptions</key>
            <dict>
                <key>en-US</key>
                <string>Apple's latest Disk Utility</string>
                <key>zh-Hans</key>
                <string></string>
                <key>zh-Hant</key>
                <string></string>
            </dict>
        </dict>
    </array>
</dict>
</plist>

The code snippet above defines two categories, Bootloader Utility and Disk Management.

Similarly, each element in the array is a dictionary that defines the bundle path and localized descriptions of an application.

Please do not redefine the category key, because its value will be ignored.

results matching ""

    No results matching ""