On Mar 11, 2011, at 12:51, Francisco Hirsch wrote:
> Given that it's not possible to run a Text Factory inside another [Feature
> Request!], is there some other way to run severall Text Factories one after
> the other?
______________________________________________________________________
Hey Francisco,
There are several ways to apply text transformations. Applescript, Unix
Filters...
Here's how you can accomplish your specific request using a combination of
Applescript and Text Factories:
------------------------------------------------------------------------------------------------
property appSupport : POSIX path of (path to application support from user
domain)
property tfUpper : POSIX file (appSupport & "BBEdit/Text
Factories/UpperCaseAll.textfactory")
property tfLower : POSIX file (appSupport & "BBEdit/Text
Factories/LowerCaseAll.textfactory")
tell application "BBEdit"
try
apply text factory tfUpper to text of front text window
apply text factory tfLower to text of front text window
on error errMsg number errNum
set sep to "=============================="
set e to sep & return & "Error: " & errMsg & return & sep & return ¬
& "Error Number: " & errNum & return & sep
beep
display dialog e
end try
end tell
------------------------------------------------------------------------------------------------
--
Best Regards,
Chris
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem,
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>