如何获取DM中打开文件的路径?
How to get the path of the opened files in DM?
我正在尝试对 DM 中所有打开的文件执行脚本。现在,我已经为所有这些文件构建了一个 Taglist
,我打算使用一个 for statement
来获取每个文件的路径并将其 return 到现有脚本。但是,我不知道如何从 Taglist 中提取这些打开文件的路径。谢谢
保存位置的属性不是image对象的属性,而是imageDocument[=23]的属性 =] 对象。
您要查找的命令是
String ImageDocumentGetCurrentFile( ImageDocument img_doc )
Returns the file location to which the image document is currently linked.
示例脚本是:
Result("->" + GetFrontImage().ImageGetOrCreateImageDocument().ImageDocumentGetCurrentFile() )
我正在尝试对 DM 中所有打开的文件执行脚本。现在,我已经为所有这些文件构建了一个 Taglist
,我打算使用一个 for statement
来获取每个文件的路径并将其 return 到现有脚本。但是,我不知道如何从 Taglist 中提取这些打开文件的路径。谢谢
保存位置的属性不是image对象的属性,而是imageDocument[=23]的属性 =] 对象。
您要查找的命令是
String ImageDocumentGetCurrentFile( ImageDocument img_doc )
Returns the file location to which the image document is currently linked.
示例脚本是:
Result("->" + GetFrontImage().ImageGetOrCreateImageDocument().ImageDocumentGetCurrentFile() )