命令 "Open" 的参数当前无效。 (不是制作剧本的人)

The parameters for the command "Open" are not currently valid. (Was Not The One Who Made The Script)

所以,我会尽量通过提供所需的信息来缩短这段时间,所以我的句子可能会有点短。我下载了 script to make a custom gamecover 3D. 我无法 运行 脚本,因为我没有 photoshop(我有元素,但 extendscript 检测不到)。所以我下载了 Photoshop CS2。每当我尝试 运行 脚本时,我都会收到错误消息:“命令 'Open' 的参数当前无效。我真的很想 运行 这个脚本,所以如果你能帮助我将不胜感激。

注意:我来这里是因为脚本是由 NeoGaf 上的一个人制作的,我不能给他发消息,因为显然 NeoGaf 是一个独家加入的网站。我用谷歌搜索了很多,但无济于事。所以,再一次,如果你能帮助我,我将不胜感激。

编辑:前 30 行代码:

function createFolder( folderObj ){
    if( !folderObj.parent.exists ) createFolder( folderObj.parent );
    if( !folderObj.exists ) folderObj.create();
};

#target photoshop

app.bringToFront();
var tgtwdh=prompt("Please enter the target width in pixels for the output files:",800,"Specify Output Size");
var tgtprc = (tgtwdh / 1759) * 100;

// =======================================================
var idOpn = charIDToTypeID( "Opn " );
var desc2 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var myPath = File($.fileName).parent.fsName;
desc2.putPath( idnull, new  File( myPath + "/PC_3DBoxTemplate.psd" ) ); // Template file name
executeAction( idOpn, desc2, DialogModes.NO );

createFolder ( new Folder (myPath + "/Export") ); // Create Export Folder if Not Exist

// LOOP THROUGH DIRECTORY
// A hard coded path to a directory 'mac style'
var processFolder = new Folder ( myPath );
// Use folder object get files function with mask 'a reg ex'
var fileList = processFolder.getFiles(/\.(jpg|jpeg|png)$/i);
// Loop through files
for (var i = 0; i < fileList.length; i++) {
 // Only process the returned file objects
 // The filter 'should' have missed out any folder objects 

这是一个盲目的绕过,但这应该启动脚本:

它正在寻找一个名为 "PC_3DBoxTemplate.psd" 的文件,所以我建议将它放在某个地方,例如 c:\temp。 相应地编辑脚本。变化

var myPath = File($.fileName).parent.fsName;
desc2.putPath( idnull, new  File( myPath + "\PC_3DBoxTemplate.psd" ) ); // Template file name

executeAction( idOpn, desc2, DialogModes.NO );

var myPath = "C:\temp";
desc2.putPath( idnull, new  File( myPath + "\PC_3DBoxTemplate.psd" ) ); // Template file name

executeAction( idOpn, desc2, DialogModes.NO );

不是转义斜线。那至少应该打开模板文件。