keywordsManager: (get the native code)

On ESTK, running on Bridge CS6 this fives me a function:

$.writeln (app.document.keywordsManager.renameKeyword)

I get on console:

function renameKeyword() {}

[native code]

}

How can I get the native code for this function?

I don't know how the arguments are organized and how it can be used.

I also have my Active keywords like this:

app.document.keywordsManager.serializeToXML)

and I also have other functions, I want to test use, such as

addKeyword (?), renameKeyword (?), deleteKeyword (?)

I solve it.

~ app.document.keywordsManager.addKeyword (keywordPath:String, useHierarchicalPath:Bollean)

~ app.document.keywordsManager.deleteKeyword (keywordPath:String, useHierarchicalPath:Bollean)

~ app.document.keywordsManager.renameKeyword (oldName:String, newName:String, useHierarchicalPath:Bollean)

~ app.document.keywordsManager.serializeToXML)

Notes about the creation of sub keywords:

When useHierarchicalPath is true, the function will search for the string keywordPath and if it detects a vertical bar (for example ' aaa | ") BBB") which means a keyword"aaa"and a Sub keyword 'bbb' will be created. 'aaa' is created if does not exist.

It's the same logic used on deleteKeyword and renameKeyword.

Examples:


addKeyword

app.document.keywordsManager.addKeyword ("a few words", true); Add the keyword "words".

app.document.keywordsManager.addKeyword ("things |") (a few words", true); Add the keyword 'stuff' and the keyword void "words".

app.document.keywordsManager.addKeyword ("things |") (a few words", false); This action adds the key word "things". a few words"and does not take into account the vertical dashboard

deleteKeyword

app.document.keywordsManager.deleteKeyword ("aaa |") BBB", true); Deletes the Sub keyword 'bbb '.

app.document.keywordsManager.deleteKeyword ('aaa', true); Deletes the keyword "aaa" and all its keywords sup

renameKeyword

app.document.keywordsManager.renameKeyword ("aaa |") BBB"," aaa ". CCC', true); Rename the Sub keyword 'bbb' to 'ccc '.

app.document.keywordsManager.renameKeyword ("aaa", "a11", true); Rename the keyword "aaa" to "a11."

serializeToXML

app.document.keywordsManager.serializeToXML (); Returns the XML of the entire structure of keywords

Tags: Bridge

Similar Questions

Maybe you are looking for