开发者

Cocoa Scripting Bridge and <contents> element

开发者 https://www.devze.com 2022-12-31 20:31 出处:网络
So, the application I\'m trying to script has a scripting definition file that includes a <contents> element, which is an \"implicitly specified container.\"

So, the application I'm trying to script has a scripting definition file that includes a <contents> element, which is an "implicitly specified container."

The question, how do I get at what's inside this element using Scripting Bridge? Or alternatively, how do I se开发者_StackOverflow社区nd the Apple Event necessary to retrieve it and then transform what I get back into an SBObject?

I already tried:

[document nameOfKey]
document.nameofKey
[document contents]
document.contents


Not sure if this will help but I noticed that sometimes you have to use the keyword "get" in order to actually get something before you can access other parts of it. So I would try this...

[[document get] contents]
[[document contents] get]

etc. Note that "get" is an instance method of SBObject so you can find it in the docs.

0

精彩评论

暂无评论...
验证码 换一张
取 消