Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在使用Python编写InDesign脚本时添加特殊字符_Python_Adobe Indesign - Fatal编程技术网

如何在使用Python编写InDesign脚本时添加特殊字符

如何在使用Python编写InDesign脚本时添加特殊字符,python,adobe-indesign,Python,Adobe Indesign,在使用Python编写InDesign脚本时,如何将InDesign特殊字符(如自动页码)添加到文本框中?使用JS,您可以做到: aTextFrame.contents = SpecialCharacters.autoPageNumber 特殊字符自动页码标记的常量为 idAutoPageNumber = 1396797550 # from enum idSpecialCharacters 有关InDesign的完整Python脚本对象定义,请参阅 要将特殊字符添加到文本框,请执行以下操作:

在使用Python编写InDesign脚本时,如何将InDesign特殊字符(如自动页码)添加到文本框中?使用JS,您可以做到:

aTextFrame.contents = SpecialCharacters.autoPageNumber

特殊字符自动页码标记的常量为

idAutoPageNumber = 1396797550 # from enum idSpecialCharacters
有关InDesign的完整Python脚本对象定义,请参阅

要将特殊字符添加到文本框,请执行以下操作:

aTextFrame.contents = idAutoPageNumber

特殊字符自动页码标记的常量为

idAutoPageNumber = 1396797550 # from enum idSpecialCharacters
有关InDesign的完整Python脚本对象定义,请参阅

要将特殊字符添加到文本框,请执行以下操作:

aTextFrame.contents = idAutoPageNumber

在InDesign search对话框中,您可以找到带有
^N
的页码标记。因此,
aTextFrame.contents=“^N”
或类似的方法可能会起作用。免责声明:我不懂Python。@controlnetic.nomad
“^M”
将是我想要使用的,但它显示为字符串。在InDesign搜索对话框中,您可以找到带有
^N
的页码标记。因此,
aTextFrame.contents=“^N”
或类似的方法可能会起作用。免责声明:我不知道Python。@controlnetic.nomad
“^M”将是我想要使用的,但它显示为字符串。