Skip to content

点击导入后弹出“打开文件”窗口的问题的反馈 #109

Description

@noodlefighter

来自用户反馈:

和朋友做了测试,1.6或以下似乎都没法兼容ps cs6及以上版本,报错如下

All log:
read option from C:\ProgramData\labelplus_script\lp_ps_script.iniOK
Start import process!!!
Properties start ------------------
actionGroup: dialogOverlayLabelGroups:	框内
docTemplate:	0
docTemplateCustomPath: font: fontSize:	0
groupSelected:	框内,框外
ignoreNoLabelImg:	false
imageSelected:	[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
lpTextFilePath:	C:\Users\kasakun\Pictures\Saved Pictures\61475d9c26fcd5dabe004982\translations.txt
noLayerGroup:	false
notClose:	true
outputLabelIndex:	false
outputType:	0
source:	C:\Users\kasakun\Pictures\Saved Pictures\61475d9c26fcd5dabe004982\images
target:	C:\Users\kasakun\Pictures\Saved Pictures\61475d9c26fcd5dabe004982\output
textDirection:	2
textLeading:	0
textReplace: Properties end ------------------
parse lptext done...
parse textreplace done...
auto match template: ~/Pictures/Saved%20Pictures/61475d9c26fcd5dabe004982\ps_script_res\zh.psd
01.jpg(01.jpg)in processing...
All log:
Unexpected Error:
Message: 用户取消了操作
File: ~/Pictures/Saved Pictures/61475d9c26fcd5dabe004982/ps_script.jsx
Line: 9410
Error Name: Error
Error Number: 8007
Line: (9401) }
Line: (9402) var wsDoc; // workspace document
Line: (9403) if (opts.docTemplate == LabelPlus.OptionDocTemplate.No) {
Line: (9404) wsDoc = app.documents.add(bgDoc.width, bgDoc.height, bgDoc.resolution, bgDoc.name, NewDocumentMode.RGB, DocumentFill.TRANSPARENT);
Line: (9405) wsDoc.activeLayer.name = LabelPlus.TEMPLATE_LAYER.IMAGE;
Line: (9406) }
Line: (9407) else {
Line: (9408) var docFile = new File(template_path); //note: if template must do not exist, crash
Line: (9409) wsDoc = app.open(docFile);
Line: (9410) >> wsDoc.resizeImage(undefined, undefined, bgDoc.resolution);
Line: (9411) wsDoc.resizeCanvas(bgDoc.width, bgDoc.height);
Line: (9412) }
Line: (9413) var bgLayer;
Line: (9414) var textTemplateLayer;
Line: (9415) var dialogOverlayLayer;
Line: (9416) var pendingDelLayerList = new Array();
Line: (9417) {
Line: (9418) for (var i = 0; i < wsDoc.artLayers.length; i++) {
Line: (9419) var layer = wsDoc.artLayers[i];
Line: (9420) pendingDelLayerList.push(layer);
[ps_script.jsx]
anonymous([Object:[object Object]])
exec()
runProcess([Object:[object Object]],undefined)
process([Object:[object Object]],undefined)
exceptionMessage([Error:\u9519\u8BEF: \u7528\u6237\u53D6\u6D88\u4E86\u64CD\u4F5C])
Log File:C:\ProgramData\labelplus_script\lp_ps_script.log

1.7及以上完美运行

他似乎遇到了点击导入后,弹出“打开文件”框的问题,但他无法通过QA里“文件-脚本-浏览”的方法解决
先开个issues,用于收集关于这个问题的反馈

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions