Hi Chris, > On 1 Aug 2019, at 12:57, Christopher Stone <[email protected]> wrote: > > On 08/01/2019, at 07:00, Nestor Aguilera <[email protected]> wrote: > [...]
> Hey Nestor, > > Whups. That's my fault. > > Drat. > > This setting is not available to AppleScript, so the only way I can think of > to accomplish the task is as follows. > > Set up a “dummy” language setting that has trim trailing spaces turned OFF. > > Then use AppleScript to: > > - Switch from your given source language setting to the dummy setting. > - Save the file. > - Switch back to the original source language setting. > - Maybe necessary to do a second save to keep the source language setting. > - Not sure without testing. > > I think this is doable if a bit convoluted. Ah!, another good idea. So perhaps I could create say a "data" language module for files with extension ".dat", having the default text file behavior except for the stripping of trailing whitespace. This way I could avoid Applescript completely. Now the question is: how to I create the "data" language module? The BBEdit manual also mentions "Packages" on page 349, but that is even more cryptic to me. Thanks for all your help. All the best, Nestor -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <https://www.twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/A1A509AE-A5A3-413A-8D7E-60EA9F71A527%40gmail.com.
