This was apparently one of those "works right after I hit send" questions. I couldn't remember why I specified "alias" when declaring the tf variable, so I removed it, and then the script succeeded. And continued succeeding after I put the alias specifier back. Argh.
Nat
> --
> This is the BBEdit Talk public discussion group. If you have a feature
> request or believe that the application isn't working correctly, please
> email "
sup...@barebones.com" rather than posting here. Follow @bbedit
> on Mastodon: <
https://mastodon.social/@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
bbedit+un...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/bbedit/038957d1-1ee2-405d-8adf-502643a6cf9e%40app.fastmail.com.