Aliases are subprograms. Aliases that return a value are known as custom identifiers. Aliases are called from the command line or other parts of a script.
Popups are scripted context menu items. Popups are called when they are selected by the user.
Remotes are event-handling scripts. Remotes are called when the event they handle occurs.