从Javascript获取InDesign CS5中的当前页码 [英] Get current page number in InDesign CS5 from Javascript
本文介绍了从Javascript获取InDesign CS5中的当前页码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
获取光标所在当前页面的DOM表达式是什么:
What is the DOM expression to get current page where the cursor is:
app.activeDocument.currentPage ?
推荐答案
你想:
app.activeWindow.activePage.name;
这将为您提供实际的页码名称作为字符串(即,如果您的页面以罗马编号然后这将为第五页提供v。
This will give you the actual page number name as a string (i.e. if your pages are numbered in roman then this will give 'v' for the fifth page).
这篇关于从Javascript获取InDesign CS5中的当前页码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文