![]() |
![]() |
![]() |
Help: AppleScript Snippets and Shell Script SnippetsAppleScript SnippetsIn the content format drop-down menu, choose "AppleScript" as the format type. In the content field, enter an AppleScript such as this one:
Shell Script SnippetsIn the content format drop-down menu, choose "Shell Script" as the format type. In the content field, enter a shell script such as this one: #!/usr/bin/perl
Your shell script must have the “shebang” (#!) on its first line and that must specify the interpreter to be used for your script. Here is an example of a Unix shell script #!/bin/bash
Nesting Script SnippetsAppleScript snippets and shell script snippets can be nested within text snippets using the nested snippet macro %snippet:[snippet name]%. Example: if the AppleScript snippet above had the abbreviation "eend", you could use it in a text snippet:
which would expand to:
or one of the other random choices in greetingsList. Feel free to share your cool scripts with us. For information on other macros used in TextExpander, see Date, Time, and Math Macros and Advanced Snippet Functions: Macros. |
||
© 2006-2014 SmileOnMyMac, LLC, dba Smile. All rights reserved. TextExpander is a registered trademark, Smile and the Smile logo are trademarks of SmileOnMyMac, LLC, dba Smile. |