Option Profiles

As of version 2.7, Picard supports multiple profiles that can allow the user to quickly switch between option settings.

How Option Profiles Work

A profile is defined by a set of options it manages. For example, one profile may include settings for file naming such as the target directory and which file naming script to use, while another profile may include different settings for the same options or different options entirely (or some of each). Profiles are stacked and processed in the order specified by the user, from top to bottom with the lowest level being the system’s “user settings” profile. Each user-defined profile can be enabled or disabled independently from the other user-defined profiles. The system’s “user settings” profile is always enabled and includes all options.

When an option value is retrieved as part of Picard’s processing, it comes from the first enabled profile in the stack that manages that option. Initially, the profile stack contains only the system’s “user settings” profile, which holds the default settings for the user.

Example of Using Profiles

For this example, the user would like to define a set of options with alternate values, in this case a target directory where audio files are saved (option move_files_to).

The user creates a new profile (named “TargetMyDir”), adds the option move_files_to to it, and enables this profile. The stack is now:

[x] TargetMyDir    move_files_to
[x] user settings  move_files_to  [plus all other settings]

They change the value of move_files_to (to “target_my_dir”) for this new profile.

Since the profile “TargetMyDir” is enabled, the value for move_files_to is retrieved from this profile. The “user settings” still has the old move_files_to value.

Now the user wants to work on another set of music files, wanting to disable windows_compatibility for this set and save them to the “not_for_windows” directory.

They create a new profile (named “ByeByeWin”), add options move_files_to and windows_compatibility, and enable it. Now the stack looks like:

[x] ByeByeWin      move_files_to  windows_compatibility
[x] TargetMyDir    move_files_to
[x] user settings  move_files_to  windows_compatibility  [plus all other settings]

They change the values of move_files_to (to “not_for_windows”) and windows_compatibility (to false) for this new profile. Now when they process their files, the files are saved to the “ByeByeWin” move_files_to directory, with windows_compatibility = false.

Now the user wants to save files to the “TargetMyDir” target directory again, with their usual options. To do this they simply disable the “ByeByeWin” profile (which can later be re-enabled if needed). The stack looks like:

[ ] ByeByeWin      move_files_to  windows_compatibility
[x] TargetMyDir    move_files_to
[x] user settings  move_files_to  windows_compatibility  [plus all other settings]

Finally, to return to their usual output directory the user only has to disable the “TargetMyDir” profile so the stack is:

[ ] ByeByeWin      move_files_to  windows_compatibility
[ ] TargetMyDir    move_files_to
[x] user settings  move_files_to  windows_compatibility  [plus all other settings]

Managing Option Profiles

All option profile management is done within the Option Profiles page available from the “Options ‣ Options…” item on the menu bar. From this screen you will be able to add, copy, edit, remove, enable and disable profiles, as well as setting the order of the profile stack.

Initially, the list of profiles will be empty. To create a new profile click on the New button. This will create a profile with no options selected for the profile to manage. To rename the profile, right-click on the profile name and select the “Rename profile” command. The list of options that the profile is to manage are selected from the list in the right-hand pane. Options can be selected either by group or individually. The groups can be expanded to see the individual options belonging to that group.

../_images/option_profiles1.png

You can see the value currently assigned to a profile’s option setting by hovering your cursor over the setting in the list. The value will be displayed as a tooltip for the setting.

../_images/option-setting-value-tooltip.png

The profile stack order can be rearranged either by selecting a profile and using the up and down arrow buttons below the list, or by dragging the profile to a new position in the stack. Profiles are enabled when the box beside the profile’s name is checked.

Changes made to a profile’s options settings, enabled status, or position in the profile stack will be reflected in the option settings displayed on the other pages. Options that are controlled by an enabled profile will be shown as highlighted. Hovering your cursor over the highlighted option will identify which profile currently controls the setting. Settings are always displayed based on the first enabled profile in the profile stack, which corresponds to the setting that will be used during processing.

You can also quickly enable or disable a profile (but not change the order of the profile stack), using the “Options ‣ Enable/disable profiles” item in the menu bar on Picard’s main screen.

When you click the Make It So! button, in addition to saving your updated profile configuration all highlighted options will be saved to the first enabled profile in the profile stack that controls that option. All other options will be saved to the “user settings” as before. This is described in more detail in the following section.

Saving Profile Option Settings

To save a value to a profile option setting, simply ensure that the target profile is the first enabled profile in the profile stack, make the desired changes (the options should be highlighted), and then click the Make It So! button.

../_images/options-profile-save1.png

../_images/options-profile-save2.png

Remember, all highlighted options will be saved to the first enabled profile in the profile stack that controls that option. All other options will be saved to the “user settings” profile which is the user’s normal settings, and includes all options. You can confirm which profile a highlighted option will update by hovering your cursor over the option.

../_images/options-profile-save3.png

Warning

It is important to understand that when you click the Make It So! button all of the option settings on all pages will be saved. If an option is managed by one or more profiles that are currently enabled, the option will be highlighted and it will be saved to the first enabled profile in the profile stack that manages the option. If there are no enabled profiles that manage the option, the option will not be highlighted and it will be saved to the “user settings” profile which is the user’s normal settings, contains all options, is at the bottom of the profile stack, and is always enabled. The “user settings” profile cannot be modified and is not shown in the profile management page.

Attached Profiles

From pages which contain options that can be included in a profile, you can see which profiles currently include those options by clicking the Attached Profiles button. The button is available only when the current page has options that can be managed by profiles and at least one profile is enabled. The dialog title identifies the options section, and the dialog contains a “Profiles” pane on the left and an “Options in this section” pane on the right.

../_images/options-attached-profiles.png

Note

This dialog only lists the currently enabled profiles. There may be other profiles that control options settings on the page, but they will not be displayed. In addition, some of the profiles listed may not control any of the options settings on the page.

The “Profiles” pane lists all enabled profiles in profile stack order, including profiles that do not include any of the options on the current page. Disabled profiles and the system’s “user settings” profile are not shown, and options included only in those profiles do not affect the markers or checkboxes in this dialog. Profiles cannot be enabled, disabled or reordered in this dialog; use the Option Profiles page to reorder profiles and either that page or the “Options ‣ Enable/disable profiles” menu item to enable or disable them.

../_images/options-attached-profiles-hover-left.png

Hovering over a profile will display basic instructions for using this dialog.

The “Options in this section” pane lists all options on the current page that can be managed by profiles, whether or not they are currently included in any profile. Options on other pages and options that cannot be managed by profiles are not shown. Each option has a checkbox whose state applies to the profile or profiles selected in the “Profiles” pane:

  • Checked: the option is included in all selected profiles. Clicking the checkbox removes it from all selected profiles.

  • Partially checked: the option is included in some, but not all, of the selected profiles. It is also partially checked when none of the selected profiles include it but another enabled profile does. The tooltip identifies the profiles that include the option. Clicking the checkbox adds the option to the selected profiles; it does not remove it from any of them.

  • Unchecked: no enabled profile includes the option. Clicking the checkbox adds it to the selected profiles.

Hovering over an option highlights it and changes the marker beside each profile to a filled star (★) if the profile includes that option, or a hollow star (☆) if it does not. The markers indicate only whether the option is included in the profile; they do not show the option’s value or whether the profile overrides the value.

../_images/options-attached-profiles-hover-right-in.png

../_images/options-attached-profiles-hover-right-not-in.png

../_images/options-attached-profiles-hover-right-in-none.png

When more than one profile is enabled, you can select one or more profiles in the “Profiles” pane, and the checkbox changes will apply to all of the selected profiles. At least one profile must remain selected. When only one profile is enabled, it is used automatically. Selecting a different profile or combination of profiles recalculates the displayed checkbox states.

Checking an option adds it to the selected profiles with no value set, so it does not by itself change the effective setting. Unchecking it removes it from the selected profiles. These changes update the working profile configuration used by the Options dialog, and the option fields and highlighting on the other pages are refreshed. They are saved when you click the Make It So! button; closing this dialog with Close does not save them. Once saved, the normal profile rules apply: the value used for an option comes from the first enabled profile in the stack that has a value for it, otherwise from the “user settings” profile. Removing an option from a profile means that profile no longer supplies a value for it, so a lower enabled profile or the “user settings” profile can supply the value instead.

Profile Warning Message

When an enabled profile manages one or more of the options on an options page, a warning message is shown at the bottom of the page to tell you which profiles are involved. The message is not shown if none of the enabled profiles manage any of the options on the page. Clicking the help button (question mark in a circle) at the right of the message will open this documentation page in your browser.

The message lists the profile names in the order they appear in the profile stack. If there are more than three, only the first three are shown, followed by an ellipsis. There are two versions of the message:

  • “The highlighted settings on this page are overridden by …” is shown when a profile stores a value that is different from the value in your “user settings”. These options have a strong highlight.

Profile warning message "Overridden".

  • “The highlighted settings on this page are tracked by …” is shown when the profile manages the option but its value is the same as your “user settings”, or it does not yet have a value. These options have a lighter highlight.

Profile warning message "Tracked".

If any profile overrides an option on the page, only the profiles that override options are named in the message. You can hover your cursor over a highlighted option to see which profile controls that option.

Profile information on mouse hover over highlighted setting.