Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

What is the complete list of valid Front End Tokens? Preferably, by version number.

share|improve this question
1  
Hehe, +1, I almost asked that the other day, but I had already posted 3 questions. Let's see what comes up –  Rojo Mar 4 '12 at 3:43
1  
Didn't you post a list of these on SO? Alternatively, if my memory is playing tricks, I think I have seen this discussed with reference to a Mathgroup discussion. –  Mike Honeychurch Mar 4 '12 at 5:00
    
An approach similar to that suggested for CurrentValue, mathematica.stackexchange.com/questions/1379, would probably be a good starting point. Of course in this case you won't want to limit the files to .nbs. –  Brett Champion Mar 4 '12 at 5:07
2  
@Mike: This is probably the list that you remember –  Simon Mar 4 '12 at 5:18
2  
@Simon I am hoping beliarius will make a rare appearance and post that list himself. I am also hoping any corrections or additions that spelunkers like Oleksandr can make, will be made. –  Mr.Wizard Mar 4 '12 at 5:50
show 2 more comments

5 Answers

This method only returns a few of them, hopefully including some undocumented ones. It's not intended to be a complete answer.

fnames = FileNames[
   "*.nb" | 
    "*.tr", {FileNameJoin[{$InstallationDirectory, "SystemFiles", 
      "FrontEnd", "StyleSheets"}], 
    FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", 
      "TextResources"}], 
    FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", 
      "SystemResources"}]}, Infinity];

fimps = Import[#, "Text"] & /@ fnames;

DeleteDuplicates@
    Flatten@StringCases[fimps, 
      Shortest[
       "FrontEndToken[" ~~ (i___ /; 
          SameQ @@ (StringCount[i, #] & /@ {"[", "]"})) ~~ "]"]] // 
   StringReplace[#, Whitespace -> ""] & // 
  MakeExpression[#, StandardForm][[1, 1]] & /@ # & // DeleteDuplicates//Sort//Column

gives

{
 {"AlignBottoms"},
 {"AlignCentersHorizontally"},
 {"AlignCentersVertically"},
 {"AlignLeftSides"},
 {"AlignRightSides"},
 {"AlignTops"},
 {"CellTagsFind"},
 {"Clear"},
 {"ClearCellOptions"},
 {"DebuggerAbort"},
 {"DebuggerContinue"},
 {"DebuggerContinueToSelection"},
 {"DebuggerFinish"},
 {"DebuggerStep"},
 {"DebuggerStepIn"},
 {"DebuggerStepInBody"},
 {"DebuggerStepOut"},
 {"DebuggerToggleBreakpoint"},
 {"DistributeBottoms"},
 {"DistributeCentersHorizontally"},
 {"DistributeCentersVertically"},
 {"DistributeLeftSides"},
 {"DistributeRightSides"},
 {"DistributeSpaceHorizontally"},
 {"DistributeSpaceVertically"},
 {"DistributeTops"},
 {"EvaluatorStart"},
 {"FontPanel"},
 {"FrontEndQuitNonInteractive"},
 {"FrontEndToken[FrontEnd`ButtonNotebook[],\"HyperlinkGo\",`distance`]\
"},
 {"GenerateImageCaches"},
 {"GraphicsRender"},
 {"Group"},
 {"Import"},
 {"MoveBackward"},
 {"MoveForward"},
 {"MoveToBack"},
 {"MoveToFront"},
 {"Open"},
 {"OpenCloseGroup"},
 {"OpenHelpLink"},
 {"OptionsDialog"},
 {"PreferencesDialog"},
 {"PrintDialog"},
 {"ScrollNotebookEnd"},
 {"ScrollNotebookStart"},
 {"SelectionSaveSpecial"},
 {"SpellCheckerDialog"},
 {"Style"},
 {"Ungroup"},
 {$CellContext`inputnb$$},
 {FrontEnd`Private`nb},
 {FrontEnd`ButtonNotebook[]},
 {FrontEnd`EvaluationNotebook[]},
 {FrontEnd`InputNotebook[]},
 {FrontEnd`MessagesNotebook[]}
}

If it's about stuff that FrontEndExecute can run, then Names["FrontEnd`*"] and Names["FE`*"] should give a big enough list not to paste in here, let alone Names["FrontEnd`*`*"] and Names["FE`*`*"]

share|improve this answer
    
@AndyRoss I had just posted an answer on a question on CurrentValue with this method suggested by John Futz, so I used it in here, hopefully to catch a few undocumented not easily found in other ways. Anyone: feel free to edit or copy-paste them to a more complete list –  Rojo Mar 4 '12 at 13:48
    
I took the liberty to merge your list with another one to get a full repo. Hope you don't mind! –  belisarius Jul 22 '12 at 15:23
    
@belisarius not only I don't mind but I'm glad you did. It had to be done –  Rojo Jul 22 '12 at 15:59
add comment

I got a request to post here the undocumented tokens I already posted in an old answer on SO.

For completion, I merged my list (which is also in the link provided by @Chris) with @Rojo's list. Later, the list was merged with Vladimir's list below and two more tokens were included, so as to have here a repository of all known FE tokens.

Please feel free to update this answer as new tokens are found.

{
"AboutBoxDialog",
"Above",
"AlignBottoms",
"AlignCentersHorizontally",
"AlignCentersVertically",
"AlignLeftSides",
"AlignRightSides",
"AlignTops",
"AllWindowsFront",
"BackgroundDialog",
"Balance",
"Below",
"BringToFront",
"CellContextDialog",
"CellGroup",
"CellLabelsToTags",
"CellMerge",
"CellSplit",
"CellTagsEditDialog",
"CellTagsEmpty",
"CellTagsFind",
"CellUngroup",
"Clear",
"ClearCellOptions",
"ClearNoAutoScroll",
"Close",
"CloseAll",
"CloseMain",
"ColorSelectorDialog",
"ColorsPanel",
"CompleteSelection",
"Copy",
"CopyCell",
"CopySpecial",
"CreateCounterBoxDialog",
"CreateGridBoxDialog",
"CreateHyperlinkDialog",
"CreateInlineCell",
"CreateValueBoxDialog",
"Cut",
"CycleNotebooksBackward",
"CycleNotebooksForward",
"DebuggerAbort",
"DebuggerClearAllBreakpoints",
"DebuggerContinue",
"DebuggerContinueToSelection",
"DebuggerFinish",
"DebuggerResetProfile",
"DebuggerShowProfile",
"DebuggerStep",
"DebuggerStepIn",
"DebuggerStepInBody",
"DebuggerStepOut",
"DebuggerToggleBreakpoint",
"DebuggerToggleWatchpoint",
"DeleteBibAndNotes",
"DeleteBibReference",
"DeleteGeneratedCells",
"DeleteIndent",
"DeleteInvisible",
"DeleteNext",
"DeleteNextExpression",
"DeletePrevious",
"DeletePreviousWord",
"DistributeBottoms",
"DistributeCentersHorizontally",
"DistributeCentersVertically",
"DistributeLeftSides",
"DistributeRightSides",
"DistributeSpaceHorizontally",
"DistributeSpaceVertically",
"DistributeTops",
"DuplicatePreviousInput",
"DuplicatePreviousOutput",
"EditBibNote",
"EditStyleDefinitions",
"EnterSubsession",
"Evaluate",
"EvaluateCells",
"EvaluateInitialization",
"EvaluateNextCell",
"EvaluateNotebook",
"EvaluatorAbort",
"EvaluatorHalt",
"EvaluatorInterrupt",
"EvaluatorQuit",
"EvaluatorStart",
"ExitSubsession",
"ExpandSelection",
"ExpirationDialog",
"ExplainBeepDialog",
"ExplainColoringDialog",
"ExpressionLinewrap",
"FileNameDialog",
"FindDialog",
"FindEvaluatingCell",
"FindNextMatch",
"FindNextMisspelling",
"FindNextWarningColor",
"FindPreviousMatch",
"FinishNesting",
"FixCellHeight",
"FixCellWidth",
"FontColorDialog",
"FontFamilyB",
"FontPanel",
"FontSizeDialog",
"Fraction",
"FrontEnd`ButtonNotebook[]",
"FrontEnd`EvaluationNotebook[]",
"FrontEndHide",
"FrontEnd`InputNotebook[]",
"FrontEnd`MessagesNotebook[]",
"FrontEnd`Private`nb",
"FrontEndQuit",
"FrontEndQuitNonInteractive",
"FrontEndToken[FrontEnd`ButtonNotebook[],\"HyperlinkGo\",`distance`]",
"GenerateImageCaches",
"GenerateNotebook",
"GeneratePalette",
"GraphicsAlign",
"GraphicsBoxOptionsImageSize",
"GraphicsCoordinatesDialog",
"GraphicsOriginalSize",
"GraphicsPlotRangeAll",
"GraphicsPlotRangeAutomatic",
"GraphicsPlotRangeFixed",
"GraphicsRender",
"Group",
"HandleShiftReturn",
"HeadersFootersDialog",
"HelpDialog",
"HyperlinkGo",
"HyperlinkGoBack",
"HyperlinkGoForward",
"ImageToAutomatic",
"ImageToBinary",
"ImageToBit",
"ImageToBit16",
"ImageToByte",
"ImageToCMYK",
"ImageToggleAlphaChannel",
"ImageToggleInterleaving",
"ImageToGrayscale",
"ImageToHSB",
"ImageToReal",
"ImageToReal32",
"ImageToRGB",
"Import",
"ImportPictures",
"ImportStyleDefinitions",
"Indent",
"InsertBibAndNotes",
"InsertBibNote",
"InsertBibReference",
"InsertClipPlane",
"InsertMatchingBraces",
"InsertMatchingBrackets",
"InsertMatchingParentheses",
"InsertNewGraphic",
"InsertObject",
"InsertRawExpression",
"InsertSoftReturn",
"InsertSplitBreak",
"LicAuthFailureDialog",
"Linebreak",
"MacintoshOpenDeskAccessory",
"MakeSelectionNotSpan",
"MakeSelectionSpan",
"MenuListBoxFormFormatTypes",
"MenuListCellEvaluators",
"MenuListCellTags",
"MenuListCommonDefaultFormatTypesInput",
"MenuListCommonDefaultFormatTypesInputInline",
"MenuListCommonDefaultFormatTypesOutput",
"MenuListCommonDefaultFormatTypesOutputInline",
"MenuListCommonDefaultFormatTypesText",
"MenuListCommonDefaultFormatTypesTextInline",
"MenuListConvertFormatTypes",
"MenuListDisplayAsFormatTypes",
"MenuListExportClipboardSpecial",
"MenuListFonts",
"MenuListFontSubstitutions",
"MenuListGlobalEvaluators",
"MenuListHelpWindows",
"MenuListNotebookEvaluators",
"MenuListNotebooksMenu",
"MenuListPackageWindows",
"MenuListPalettesMenu",
"MenuListPaletteWindows",
"MenuListPlayerWindows",
"MenuListPlugInCommands",
"MenuListPrintingStyleEnvironments",
"MenuListQuitEvaluators",
"MenuListRelatedFilesMenu",
"MenuListSaveClipboardSpecial",
"MenuListScreenStyleEnvironments",
"MenuListStartEvaluators",
"MenuListStyleDefinitions",
"MenuListStyles",
"MenuListStylesheetWindows",
"MenuListTextWindows",
"MenuListWindows",
"ModifyBoxFormFormatTypes",
"ModifyDefaultFontProperties",
"ModifyEvaluatorNames",
"ModifyFontSubstitutions",
"ModifyNotebooksMenu",
"ModifyRelatedFiles",
"MoveBackward",
"MoveExpressionEnd",
"MoveForward",
"MoveLineBeginning",
"MoveLineEnd",
"MoveNext",
"MoveNextCell",
"MoveNextExpression",
"MoveNextLine",
"MoveNextPlaceHolder",
"MoveNextWord",
"MovePrevious",
"MovePreviousExpression",
"MovePreviousLine",
"MovePreviousPlaceHolder",
"MovePreviousWord",
"MoveToBack",
"MoveToFront",
"New",
"NewCDFNotebook",
"NewColumn",
"NewPackage",
"NewRow",
"NewText",
"NextFunctionTemplate",
"NotebookMail",
"NotebookMailSelection",
"NotebookOneNote",
"NotebookOneNoteSelection",
"NotebookStatisticsDialog",
"NudgeDown",
"NudgeLeft",
"NudgeRight",
"NudgeUp",
"Open",
"OpenCloseGroup",
"OpenFromNotebooksMenu",
"OpenFromNotebooksMenuEmpty",
"OpenFromPalettesMenu",
"OpenFromRelatedFilesMenu",
"OpenHelpLink",
"OpenSelection",
"OpenSelectionParents",
"OpenURL",
"OptionsDialog",
"Otherscript",
"PasswordDialog",
"Paste",
"PasteApply",
"PasteApplyNoAutoScroll",
"PasteDiscard",
"PasteDiscardNoAutoScroll",
"PasteSpecial",
"Placeholder",
"PlainFont",
"PreferencesDialog",
"PreviousFunctionTemplate",
"PrintDialog",
"PrintOptionsDialog",
"PrintSelectionDialog",
"PublishToPlayer",
"Radical",
"RebuildBibAndNotes",
"RebuildHelpIndex",
"RecordSoundDialog",
"RefreshDynamicObjects",
"RelatedFilesMenu",
"RemoveAdjustments",
"RemoveFromEvaluationQueue",
"Replace",
"ReplaceAll",
"ReplaceFind",
"ReplaceParent",
"ResetDefaultsText",
"ReverseQuote",
"Revert",
"RunColorDialog",
"RunEdgeColorDialog",
"RunFaceColorDialog",
"Save",
"SaveRename",
"SaveRenameSpecial",
"ScrollLineDown",
"ScrollLineUp",
"ScrollNotebookEnd",
"ScrollNotebookStart",
"ScrollPageBottom",
"ScrollPageDown",
"ScrollPageFirst",
"ScrollPageLast",
"ScrollPageNext",
"ScrollPagePrevious",
"ScrollPageTop",
"ScrollPageUp",
"SelectAll",
"SelectGeneratedCells",
"SelectionAnimate",
"SelectionBrace",
"SelectionBracket",
"SelectionCloseAllGroups",
"SelectionCloseUnselectedCells",
"SelectionConvert",
"SelectionConvertB",
"SelectionDisplayAs",
"SelectionDisplayAsB",
"SelectionHelpDialog",
"SelectionOpenAllGroups",
"SelectionParenthesize",
"SelectionSaveSpecial",
"SelectionScroll",
"SelectionSetFind",
"SelectionSpeak",
"SelectionSpeakSummary",
"SelectionUnbracket",
"SelectLineBeginning",
"SelectLineEnd",
"SelectNext",
"SelectNextExpression",
"SelectNextLine",
"SelectNextWord",
"SelectNotebookWindow",
"SelectPrevious",
"SelectPreviousExpression",
"SelectPreviousLine",
"SelectPreviousWord",
"ServerText",
"SetCitationStyle",
"SetDefaultGraphic",
"ShortNameDelimiter",
"SimilarCellBelow",
"SoundPlay",
"SpellCheckerDialog",
"StackWindows",
"Style",
"StyleDefinitionsOther",
"StyleOther",
"Subscript",
"SubsessionEvaluateCells",
"Superscript",
"SystemPrintOptionsDialog",
"Tab",
"TemplateSelection",
"TestEvaluateNotebook",
"TileWindowsTall",
"TileWindowsWide",
"ToggleAlignmentGuides",
"ToggleDebugFlag",
"ToggleDynamicUpdating",
"ToggleGrayBox",
"ToggleOptionListElement",
"ToggleShowExpression",
"ToggleTestingFlag",
"TrustNotebook",
"Undo",
"Ungroup",
"WelcomeDialog",
"WindowMiniaturize",
"XInfoDialog",
"ZoomWindow",
"$CellContext`inputnb$$",
    "$CellContext`sourceNotebook$$"
}

Quoting John Fultz when he gave the list in Jan 2009:

The list is comparatively complete, excepting option names (which can also be used as tokens)

The MenuList tokens don't do anything. They're just menu placeholders. Here's something interesting you can do with them...

DynamicModule[{font}, 
 Row[{PopupMenu[Dynamic[font], 
    FE`Evaluate[FEPrivate`GetPopupList["MenuListFonts"]]], Spacer[20],
    Style["The quick brown fox", 20, FontFamily -> Dynamic[font]]}]]

FE`Evaluate[FEPrivate`GetPopupList[#]]& returns values appropriate for PopupMenu, and several FE interfaces take advantage of this, so it's unlikely to change in the future (although I wouldn't be surprised if such useful functionality makes its way into much simpler a top-level function some day).

Edit by Jacob

Let's call the list that was here before I made my edit originalList. The list found by Vladimir (vladimirList), contains most of the items in originalList. The items that were in originalList, but not in vladimirList (Complement[originalList, vladimirList]) are the following.

{"FrontEnd`ButtonNotebook[]","FrontEnd`EvaluationNotebook[]",
"FrontEnd`InputNotebook[]","FrontEnd`MessagesNotebook[]",
"FrontEnd`Private`nb",
"FrontEndToken[FrontEnd`ButtonNotebook[],\"HyperlinkGo\",`distance`]",
"$CellContext`inputnb$$","$CellContext`sourceNotebook$$"}

I am not sure how these items work and they seem to be different from other tokens. Probably reading the quote by John Fultz is a good first step towards understanding them.

The vladimirList contains a lot of tokens that were not present in the original list. So great work by Vladimir. Even if you do not understand/like the "special tokens" that are in Complement[originalList, vladimirList], please realise that vladimirList is not exhaustive anyway, as it also does contain

{"SelectNextExpression", "SelectPreviousExpression"};
share|improve this answer
    
Please tell me if you find the edit appropriate beli –  Rojo Jul 22 '12 at 16:05
    
@Rojo Of course, thanks! –  belisarius Jul 22 '12 at 16:48
    
I am glad that since the time of my comment under the question your appearances have become not so rare. :-) –  Mr.Wizard Jul 24 '12 at 1:45
    
FYI: all three of the links in your SO answer are now dead... –  Oleksandr R. Mar 24 '13 at 1:49
    
@OleksandrR. Well, web-life is like that. I gave the relevant info in that answer, so I think nothing is really lost. –  belisarius Mar 24 '13 at 2:12
show 2 more comments

There is a list posted in 2009 from John Fultz on the MathGroup here.

No version information. Rojo's list has some new ones.

Length@RojosList

56

Length@JohnsList

266

Length@Intersection[RojosList, JohnsList]

35

share|improve this answer
add comment

Here is a combined list from belisarius' old answer of undocumented tokens given by John Fultz in Jan 2009, and tokens obtained from Mathematica system files. 80 of these were not listed in earlier answers. The list is obtained using Rojo's idea, but upgraded and corrected.

fnames = FileNames["*.nb" | "*.tr", {
FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", 
      "StyleSheets"}],
    FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", 
      "TextResources"}],
    FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", 
  "SystemResources"}]
}, Infinity];

fimps = Import[#, "Text"] & /@ fnames;

frontend = Flatten@ StringCases[fimps, 
     Shortest["FrontEndToken[\"" ~~ x__ ~~ "\""] -> x];

menuitems = DeleteDuplicates@Flatten@StringCases[fimps, 
     Shortest["Item[" ~~ (i___ /; SameQ @@ (StringCount[i, #] & /@ {"[", "]"})) ~~ "]"]];
menutokens = If[(d = StringPosition[#, "\", \""]) != {} && (d = d[[1, 1]]) == StringPosition[#, "\","][[1, 1]],
     StringTake[#, {d + 4, StringPosition[#, "\""][[4, 1]] - 1}]] & /@ menuitems;
menutokens = Complement[menutokens, {Null}];

keyitems = DeleteDuplicates@Flatten@StringCases[fimps, 
     Shortest["Item[KeyEvent[" ~~ __ ~~ "]," ~~ Whitespace ~~ "\"" ~~ (i___ /; SameQ @@ (StringCount[i, #] & /@ {"[", "]"})) ~~ "\"]"]];
keyitems = Flatten@StringCases[keyitems, "Item[KeyEvent[" ~~ __ ~~ "]," ~~ Whitespace ~~ "\"" ~~ (x___ /; (StringCount[x, "\""] == 0)) ~~ "\"]" -> x];

l = frontend \[Union] menutokens \[Union] keyitems;
l // Sort // Column

The code finally gives more than two hundred tokens. Combined with the old list gives 360 in total:

AboutBoxDialog
Above
AlignBottoms
AlignCentersHorizontally
AlignCentersVertically
AlignLeftSides
AlignRightSides
AlignTops
AllWindowsFront
BackgroundDialog
Balance
Below
BringToFront
CellContextDialog
CellGroup
CellLabelsToTags
CellMerge
CellSplit
CellTagsEditDialog
CellTagsEmpty
CellTagsFind
CellUngroup
Clear
ClearCellOptions
ClearNoAutoScroll
Close
CloseAll
CloseMain
ColorSelectorDialog
ColorsPanel
CompleteSelection
Copy
CopyCell
CopySpecial
CreateCounterBoxDialog
CreateGridBoxDialog
CreateHyperlinkDialog
CreateInlineCell
CreateValueBoxDialog
Cut
CycleNotebooksBackward
CycleNotebooksForward
DebuggerAbort
DebuggerClearAllBreakpoints
DebuggerContinue
DebuggerContinueToSelection
DebuggerFinish
DebuggerResetProfile
DebuggerShowProfile
DebuggerStep
DebuggerStepIn
DebuggerStepInBody
DebuggerStepOut
DebuggerToggleBreakpoint
DebuggerToggleWatchpoint
DeleteBibAndNotes
DeleteBibReference
DeleteGeneratedCells
DeleteIndent
DeleteInvisible
DeleteNext
DeleteNextExpression
DeletePrevious
DeletePreviousWord
DistributeBottoms
DistributeCentersHorizontally
DistributeCentersVertically
DistributeLeftSides
DistributeRightSides
DistributeSpaceHorizontally
DistributeSpaceVertically
DistributeTops
DuplicatePreviousInput
DuplicatePreviousOutput
EditBibNote
EditStyleDefinitions
EnterSubsession
Evaluate
EvaluateCells
EvaluateInitialization
EvaluateNextCell
EvaluateNotebook
EvaluatorAbort
EvaluatorHalt
EvaluatorInterrupt
EvaluatorQuit
EvaluatorStart
ExitSubsession
ExpandSelection
ExpirationDialog
ExplainBeepDialog
ExplainColoringDialog
ExpressionLinewrap
FileNameDialog
FindDialog
FindEvaluatingCell
FindNextMatch
FindNextMisspelling
FindNextWarningColor
FindPreviousMatch
FinishNesting
FixCellHeight
FixCellWidth
FontColorDialog
FontFamilyB
FontPanel
FontSizeDialog
Fraction
FrontEndHide
FrontEndQuit
FrontEndQuitNonInteractive
GenerateImageCaches
GenerateNotebook
GeneratePalette
GraphicsAlign
GraphicsBoxOptionsImageSize
GraphicsCoordinatesDialog
GraphicsOriginalSize
GraphicsPlotRangeAll
GraphicsPlotRangeAutomatic
GraphicsPlotRangeFixed
GraphicsRender
Group
HandleShiftReturn
HeadersFootersDialog
HelpDialog
HyperlinkGo
HyperlinkGoBack
HyperlinkGoForward
ImageToAutomatic
ImageToBinary
ImageToBit
ImageToBit16
ImageToByte
ImageToCMYK
ImageToggleAlphaChannel
ImageToggleInterleaving
ImageToGrayscale
ImageToHSB
ImageToReal
ImageToReal32
ImageToRGB
Import
ImportPictures
ImportStyleDefinitions
Indent
InsertBibAndNotes
InsertBibNote
InsertBibReference
InsertClipPlane
InsertMatchingBraces
InsertMatchingBrackets
InsertMatchingParentheses
InsertNewGraphic
InsertObject
InsertRawExpression
InsertSoftReturn
InsertSplitBreak
LicAuthFailureDialog
Linebreak
MacintoshOpenDeskAccessory
MakeSelectionNotSpan
MakeSelectionSpan
MenuListBoxFormFormatTypes
MenuListCellEvaluators
MenuListCellTags
MenuListCommonDefaultFormatTypesInput
MenuListCommonDefaultFormatTypesInputInline
MenuListCommonDefaultFormatTypesOutput
MenuListCommonDefaultFormatTypesOutputInline
MenuListCommonDefaultFormatTypesText
MenuListCommonDefaultFormatTypesTextInline
MenuListConvertFormatTypes
MenuListDisplayAsFormatTypes
MenuListExportClipboardSpecial
MenuListFonts
MenuListFontSubstitutions
MenuListGlobalEvaluators
MenuListHelpWindows
MenuListNotebookEvaluators
MenuListNotebooksMenu
MenuListPackageWindows
MenuListPalettesMenu
MenuListPaletteWindows
MenuListPlayerWindows
MenuListPlugInCommands
MenuListPrintingStyleEnvironments
MenuListQuitEvaluators
MenuListRelatedFilesMenu
MenuListSaveClipboardSpecial
MenuListScreenStyleEnvironments
MenuListStartEvaluators
MenuListStyleDefinitions
MenuListStyles
MenuListStylesheetWindows
MenuListTextWindows
MenuListWindows
ModifyBoxFormFormatTypes
ModifyDefaultFontProperties
ModifyEvaluatorNames
ModifyFontSubstitutions
ModifyNotebooksMenu
ModifyRelatedFiles
MoveBackward
MoveExpressionEnd
MoveForward
MoveLineBeginning
MoveLineEnd
MoveNext
MoveNextCell
MoveNextExpression
MoveNextLine
MoveNextPlaceHolder
MoveNextWord
MovePrevious
MovePreviousExpression
MovePreviousLine
MovePreviousPlaceHolder
MovePreviousWord
MoveToBack
MoveToFront
New
NewCDFNotebook
NewColumn
NewPackage
NewRow
NewText
NextFunctionTemplate
NotebookMail
NotebookMailSelection
NotebookOneNote
NotebookOneNoteSelection
NotebookStatisticsDialog
NudgeDown
NudgeLeft
NudgeRight
NudgeUp
Open
OpenCloseGroup
OpenFromNotebooksMenu
OpenFromNotebooksMenuEmpty
OpenFromPalettesMenu
OpenFromRelatedFilesMenu
OpenHelpLink
OpenSelection
OpenSelectionParents
OpenURL
OptionsDialog
Otherscript
PasswordDialog
Paste
PasteApply
PasteApplyNoAutoScroll
PasteDiscard
PasteDiscardNoAutoScroll
PasteSpecial
Placeholder
PlainFont
PreferencesDialog
PreviousFunctionTemplate
PrintDialog
PrintOptionsDialog
PrintSelectionDialog
PublishToPlayer
Radical
RebuildBibAndNotes
RebuildHelpIndex
RecordSoundDialog
RefreshDynamicObjects
RelatedFilesMenu
RemoveAdjustments
RemoveFromEvaluationQueue
Replace
ReplaceAll
ReplaceFind
ReplaceParent
ResetDefaultsText
ReverseQuote
Revert
RunColorDialog
RunEdgeColorDialog
RunFaceColorDialog
Save
SaveRename
SaveRenameSpecial
ScrollLineDown
ScrollLineUp
ScrollNotebookEnd
ScrollNotebookStart
ScrollPageBottom
ScrollPageDown
ScrollPageFirst
ScrollPageLast
ScrollPageNext
ScrollPagePrevious
ScrollPageTop
ScrollPageUp
SelectAll
SelectGeneratedCells
SelectionAnimate
SelectionBrace
SelectionBracket
SelectionCloseAllGroups
SelectionCloseUnselectedCells
SelectionConvert
SelectionConvertB
SelectionDisplayAs
SelectionDisplayAsB
SelectionHelpDialog
SelectionOpenAllGroups
SelectionParenthesize
SelectionSaveSpecial
SelectionScroll
SelectionSetFind
SelectionSpeak
SelectionSpeakSummary
SelectionUnbracket
SelectLineBeginning
SelectLineEnd
SelectNext
SelectNextLine
SelectNextWord
SelectNotebookWindow
SelectPrevious
SelectPreviousLine
SelectPreviousWord
ServerText
SetCitationStyle
SetDefaultGraphic
ShortNameDelimiter
SimilarCellBelow
SoundPlay
SpellCheckerDialog
StackWindows
Style
StyleDefinitionsOther
StyleOther
Subscript
SubsessionEvaluateCells
Superscript
SystemPrintOptionsDialog
Tab
TemplateSelection
TestEvaluateNotebook
TileWindowsTall
TileWindowsWide
ToggleAlignmentGuides
ToggleDebugFlag
ToggleDynamicUpdating
ToggleGrayBox
ToggleOptionListElement
ToggleShowExpression
ToggleTestingFlag
TrustNotebook
Undo
Ungroup
WelcomeDialog
WindowMiniaturize
XInfoDialog
ZoomWindow

To make a token use the function FrontEndToken["Name"]

share|improve this answer
add comment

This is not a proper answer. Rather, it provides some tools to handle the lists of tokens in other answers.

Let

jacobList = {"SelectNextExpression", "SelectPreviousExpression"};

I used the code below to merge the lists by belisarius (originalList), Vladimir (vladimirList) and myself (jacobList).

You can set vladimirList = l, where l is defined in Vladimir's answer.

After executing the code, there is a string on the clipboard that is will be a nicely formatted code block on this site.

CopyToClipboard@
 StringJoin[
  Append[Prepend[
    Riffle[ToString[#, InputForm] & /@ 
      Union[vladimirList, originalList, jacobTokenStrings], 
     ",\n    "], "    {\n    "], "\n    }"]]

Text to list (perhaps a bit silly)

Vladimir provides a list in a code block. In order to turn this into a proper List, take the following steps (as an alternative to just evaluating his code).

First, copy the contents of the code block.

Then, execute the following code in one cell

(*Depends on having the right data on the clipboard*)
Cell["", "Text", CellTags -> "vladimir"] // CellPrint
SelectionMove[EvaluationNotebook[], Before, CellContents]
Paste[]
Block[{vladimirCell},
 vladimirCell = Cells[CellTags -> "vladimir"] // First;
 vladimirList = 
  StringSplit[NotebookRead[vladimirCell][[1]], (" " | "\n") ..];
 NotebookDelete[vladimirCell]
 ]
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.