ScriptColData.value = wordFile.ReadabilityStatistics("words"). WordFile = wordDocuments.open(filePath, false, true, false) Var fullPath = em().Path + "\\" + em().Name ĭOpus.Output("File already loaded: " + fullPath) Var filePath = + "" įor(var docEnum = new Enumerator(wordDocuments) !docEnum.atEnd() docEnum.moveNext()) WordApp = new ActiveXObject("Word.Application") ĭOpus.Output("Failed to open Word", true) WordApp = GetObject("", "Word.Application") sc = "Word count column for Microsoft Word documents. Called by Directory Opus to initialize the script You do not need the code below - a copy of it is in the download, above - but it is here for people browsing the forum looking for scripting techniques: // DocWordCount If you notice anything strange happening within Word, close the Opus windows that have the column in them, and please report the problem here so the script might be improved. There is a chance that detection won't always work, which might result in you being prompted to close the file you're editing (or having it close itself if there are no unsaved changes).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |