当前位置:网站首页>InDesign插件-常规功能开发-JS调试器打开和关闭-js脚本开发-ID插件
InDesign插件-常规功能开发-JS调试器打开和关闭-js脚本开发-ID插件
2022-06-29 11:49:00 【插件开发】
1.算法原理
Adobe InDesign是Adobe公司的一个桌面出版 (DTP) 的应用程序,主要用于各种印刷品的排版编辑。InDesign可以将文档直接导出为Adobe的PDF格式,而且有多语言支持。它也是第一个支持Unicode文本处理的主流DTP应用程序,率先使用新型OpenType字体,高级透明性能,图层样式,自定义裁切等功能。它基于JavaScript特性,和与兄弟软件Illustrator、Photoshop等的完美结合,界面的一致性等特点都受到了用户的青睐。采用脚本语言自动化编码,在学习中的一个重要功能是开启调试环境和关闭调试环境功能,源代码如下所示:
//DebugOn.js
//An InDesign CS JavaScript
//Starts the debugger at the beginning of every script.
//For more on InDesign scripting, go to http://www.adobe.com/products/indesign/scripting.html
//or visit the InDesign Scripting User to User forum at http://www.adobeforums.com
alert("JavaScript调试器现在打开,并且将会保持到你关闭InDesign或运行“JS调试器关闭”脚本")
//$.level = 0 to disable debugging
//$.level = 1 to break on runtime errors
//$.level = 2 to break at the beginning of every script.
$.level = 2
//DebugOff.js
//An InDesign CS JavaScript
//Turns the JavaScript debugger off.
//For more on InDesign scripting, go to http://www.adobe.com/products/indesign/scripting.html
//or visit the InDesign Scripting User to User forum at http://www.adobeforums.com
alert("JavaScript调试器关闭。要重新启动JavaScript调试器,运行“JS调试器打开”脚本或按下Shift键同时运行一个脚本。")
//$.level = 0 to disable debugging
//$.level = 1 to break on runtime errors
//$.level = 2 to break at the beginning of every script.
$.level = 0
合理的脚本代码可以有效的提高工作效率,减少重复劳动。
2.作者答疑
如有疑问,敬请留言。
边栏推荐
猜你喜欢

ERP preparation of bill of materials Huaxia

Interpolated scatter data

Artbench: the first class balanced, high-quality, clean annotated and standardized artwork generation data set

go 学习-搭建开发环境vscode开发环境golang

《高难度谈话》突破谈话瓶颈,实现完美沟通

黑化的蜜雪冰城,凭营销就想抓牢消费者的心?

【LeetCode】14、最长公共前缀

百度云盘不限速下载大文件(2021-11亲测有效)

Go Senior Engineer required course | I sincerely suggest you listen to it. Don't miss it~

JVM之方法区
随机推荐
Interview shock 61: tell me about MySQL transaction isolation level?
GBase8s数据库FOR READ ONLY 子句
ShanDong Multi-University Training #3
[pbootcms template] composition website / document download website source code
GBase8s数据库select有ORDER BY 子句4
Understanding of P value
【云原生】2.4 Kubernetes 核心实战(中)
Artbench: the first class balanced, high-quality, clean annotated and standardized artwork generation data set
Method area of JVM
【JUC系列】同步工具类之ThreadLocal
Gbase8s database select has a having clause
How to create new user for ORACLE 19c (CDB & PDB)
bison使用error死循环的记录
Mysql database master-slave synchronization, consistency solution
nvtmpp
[leetcode] 14. Longest public prefix
Gbase8s database select has order by Clause 5
MySQL master-slave synchronous asynchronous replication semi synchronous replication full synchronous replication
GBase8s数据库在组合查询中的集合运算符
Imile uses Zadig's multi cloud environment to deploy thousands of times a week to continuously deliver global business across clouds and regions