Hi @borkdude, I am following your OBB example:
obb -e '(-> (js/Application "Safari") (.-documents) (aget 0) (.url))'
How do you know there is a documentsproperty? I cant find it in the applescript dictionary.
Are there hidden, undocumented properties for every application? 🗿I guess you tried this? https://github.com/babashka/obb#explore-app-specific-apis I think I stole that example from @zane
Yeah, Ive done searching through Dictionary and i can find only its singular form - document. And Google Search has not helped me yet either.. But I am using Apple Scripting for first time, so…
documents is the plural of document, I think *document* _n_ means there can be n (plural) in an array
that's just a wild guess
And you are right 🎉🤦 I have just tested it with some other commands…
Is this something common I havent seen till this day? I mean this form of a documentation…
It's kind of special isn't it.