You have to enable these notifications before you load the persistent store. For more details see [https://stackoverflow.com/questions/61790440/coredata-and-cloudkit-sync-works-but-nspersistentstoreremotechange-notification)
Post
Replies
Boosts
Views
Activity
You can get all the URL's for all tabs:
tell application "Google Chrome"
activate
set theWindows to windows
repeat with theWindow in theWindows
set theTabs to tabs of theWindow
repeat with theTab in theTabs
set theURL to URL of theTab
log theURL
end repeat
end repeat
end tell
Don't know how to check for audio state. It is possible to fire off a small JavaScript on each page. So if you can check that with JS that would be an option.
I was also trying to find information about how to create a help book. With the information found on this page and on the old Apple Help Programming Guide I was able to create a working help book. I have created a blog post that describes the steps I took: https://fred.appelman.net/?p=196
Creating a link is not allowed, so you have to do copy paste for this.
I would suggest to follow the link - https://developer.apple.com/documentation/SwiftUI at the top of the SwiftUI section. It is a link to the documentation and on that page you can find a link to a tutorial - https://developer.apple.com/tutorials/swiftui which should get you going.