def dock_app_list(data):
    """
    Used in generating macOS configuration profiles. Generates a dictionary with details about applications that should
    be added to the Dock.

    :param data: Form data (Dictionary)
    :returns: Dictionary - {'name': <string>, 'path': <string>}
    """
    apps = []
    count = data['extra_dock'] + 1
    for i in range(count):
        name = data['app_name_%s' % str(i)]
        path = data['app_path_%s' % str(i)]
        if name not in [None, '']:
            apps.append({'name': name, 'path': path})
    return apps