Ah, so. Thank you! It never occurred to me that I needed a nested tell 
block.

On Sunday, October 11, 2020 at 12:53:16 AM UTC-7 jj wrote:

> Hi Greg,
>
> Here is a script that might do what you want
>
> tell application "Safari"
> set vContents to source of first document
> set vName to name of first document
> end tell
>
> tell application "BBEdit"
> tell first window
> set vDocument to make new document at beginning with properties 
> {name:vName, contents:vContents}
> tell vDocument
> normalize line endings
> format mode no reorganization with normalizing tag case
> end tell
> end tell
> end tell
>
> Best regards,
>
> Jean Jourdain
>
>

-- 
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 here. Follow @bbedit on Twitter: <https://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/23912811-d51d-4985-836d-6e96aeba900en%40googlegroups.com.

Reply via email to