On Jun 13, 2007, at 5:53 PM, Jim Bennett wrote:
Is it possible to create a Clipping file that can use 2 different
#SELECT#
holders and replace them with 2 different text strings?
The #select# placeholder gets replaced with the current selection, so
multiple occurrences just get replaced with the same content. So I
don't think this can be done with multiple strings using just the
#select# placeholder.
You could use #select# for one string and #clipboard# for the second,
but you'd have to make sure to copy the second string before
inserting the clipping. Another option might be to use #script
<filename># or #system <filename># for the second string and write a
simple AppleScript or shell script to generate the content.
Or you could just use #insertion# for any number of subsequent
strings and set a key combination for the "Go to Next Placeholder"
command. Then just hit your key combo (I use control-/, same as
Xcode) and type in the subsequent strings manually.
Another question I have is about the Text Factories feature. I want
to call
up an Applescript within a Text Factories file - any chance of that?
Text Factories have a "Run AppleScript Filter" option that allow you
to select any AppleScript file to be run. Would that do it?
Hope this helps,
Dennis
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>