![]() |
![]() |
|
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. |
||
© 2006-2011 SmileOnMyMac, LLC, dba Smile. All rights reserved. SmileOnMyMac and TextExpander are trademarks of SmileOnMyMac, LLC, dba Smile. |