回覆列表
  • 1 # 使用者990540253822

    1.將下面這段程式碼複製貼上到文字工具當中,另存為字尾名為Jsx格式檔案,比如“PSD瘦身.jsx”。

    2.然後PS開啟有元資料的PSD檔案,執行「檔案」——「指令碼」——「瀏覽...」,選擇儲存的 Jsx格式檔案“PSD瘦身.jsx”,即可解決該問題。

    function deleteDocumentAncestorsMetadata() (//String version of the app namewhatApp =String(app.name);

    // Check for photoshop specifically, or this will cause

    errors

    if(whatApp.search("Photoshop") > 0) [

    // Function Scrubs Document Ancestors from Files

    if(Idocuments.length) (

    alert("There are no open documents. Please open a

    file to run this script.")

    return;

    )

    if (ExternalObject.AdobeXMPScript == undefined) Ex

    ternalObject.AdobeXMPScript = new ExternalObject

    ExternalObject("lib:AdobeXMPScript");

    var xmp = new XMPMetaXMPMeta( activeDocumen

    t.xmpMetadata.rawData);

    // Begone foul Document Ancestors!

    xmp.deleteProperty(XMPConst.NS_PHOTOSHOP,

    "DocumentAncestors");

    app.activeDocument.xmpMetadata.rawData=xmp.

    serialize();

    )

    )

    // Now run the function to remove the document an

    cestors

    deleteDocumentAncestorsMetadata();

    (所有的(修改為{})

  • 中秋節和大豐收的關聯?
  • 工人下班後突發腦溢血死亡,作為工廠應該承擔什麼責任?