![]() PasteboardText – clipboard contents ĮxpansionContext – bundle ID within which snippet is being expanded įilledValues – fill-in field values JavaScript for iOS and OS X IgnoreOutput – do not use the final statement as the expansion ĪppendOutput(text) – add text to the expansion īaseDate – date and time at which the snippet is expanded ĪdjustedDate – date and time used to expand the snippet ![]() triggeringAbbreviation – the abbreviation which triggered the expansion Precede these with TextExpander, for example, TextExpander.appendOutput(“Hello, world!”). TextExpander includes a JavaScript context object, which exposes the following items you might find useful. You’ll find that via the insert menu under Fill-ins > Show at top. For example, if the user enters 1972, the snippet expands to “Your Zodiac sign is the rat.”ĭid you notice %filltop%? That tells TextExpander to duplicate any single line and popup fields at the top of the fill-in window and hide the script. When expanded, the user is prompted for their birth date, and the snippet returns their zodiac sign. "Your Zodiac sign is the " zodiacSigns ".\n" Var index = %filltext:name=Enter your birth year:default=1984% % 12 ![]() It’s a TextExpander fill-in snippet which tells the user their zodiac sign: zodiacSigns = ['monkey', 'rooster', 'dog', 'pig', 'rat', 'ox',
0 Comments
Leave a Reply. |