Skip to content
Alex Narvey edited this page May 12, 2022 · 5 revisions

Function description

Goal

This function add a menu item as a title. No action available for the user.

Settings

The settings dictionary contain all informations you can set to use this function. Here is a description of each.

Key Type Description
title Translatable string (see: Label translation) Item's title shown in the menu
computedTitle Name of the script in Application Support CustomScripts folder First line on stdout will be the title
optionalDisplay Boolean Will show the related item only if option key was pressed when Hello-IT menu was shown (supported in Hello-IT 1.4.0+)

Sample settings

<dict>
  <key>functionIdentifier</key>
  <string>public.title</string>
  <key>settings</key>
  <key>title</key>
    <dict>
	<key>en</key>
	<string>Self-Service</string>
	<key>fr</key>
	<string>Libre-service</string>
    </dict>
</dict>

More informations

Main implementation

The main implementation of this function is made in the Title plugin from the main project.

The default implementation use a simple MenuItem without any action. So the display will be grayed out, like inactive items.