Try this: tell application "BBEdit" activate tell application "Finder" to set theFile to "Macintosh HD:Users:johnlove:Sites:www.lovetoteach.dev:Web_Site_Storage:lovesongforever.com:coronavirus:Coronavirus_Support/Compiled_Output_scss=css:compiled_corona_virus.html" open file theFile select text document 2 of project window 1 end tell
Also you can set a path to a file with alias, I don't think you have to call into Finder set theFile to alias "Macintosh HD:path:to:file" -- 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/716592f0-681b-4b79-a87a-7d9a126bb3db%40googlegroups.com.
