脚本:如何访问分层关键字? [英] Scripting: How to access hierarchical keywords?
问题描述
嘿伙计们,
如何从脚本中导出分层关键字?目前,我需要阅读而不是写它们。我知道我可以使用
mediaItem.Annotations.keyWords
访问标准关键字但是分层的关键字呢?非常感谢帮助!
感谢上帝
嗨基督徒,
这可能会给你一个开始。它在顶层创建一个分层关键字:
选项显式
Dim xmApp
Dim xmCat
Dim xmMediasets
Dim ms
set xmApp = CreateObject(" ExpressionMedia.Application")
set xmCat = xmApp.ActiveCatalog
set xmMediasets = xmCat.MediaSets
set ms = xmMediasets.Make(" @ KeywordsSet")
ms.Make( "我的新分层关键字")
问候,
Anita Oakley
Microsoft Expression Media支持
Hey guys,
how do I export hierarchical keywords from within a script? At the time being, I need to read and not write them. I know I can access the standard keywords with
mediaItem.Annotations.keyWords
but what about the hierarchical ones?
Help is much appreciated!
Thanks
Christian
Hi Christian,
Hierarchical Keywords are specialized catalog sets. We've had limited success scripting using the catalog sets objects (able to get to the first level, but not the second). That was writing, not reading. You might play with that and see if you can read the lower levels.
This might give you a start. It creates a hierarchical keyword at the top level:Option Explicit
Dim xmApp
Dim xmCat
Dim xmMediasets
Dim ms
set xmApp = CreateObject("ExpressionMedia.Application")
set xmCat = xmApp.ActiveCatalog
set xmMediasets = xmCat.MediaSets
set ms = xmMediasets.Make("@KeywordsSet")
ms.Make("My new Hierarchical Keyword")
Regards,
Anita Oakley
Microsoft Expression Media Support
这篇关于脚本:如何访问分层关键字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!