File Exporter
匯出工作資料夾中的檔案

FOLDER
匯出的資料夾,點擊 PICK 按鈕指定或使用 %FILENAME% 變數。
input 輸入陣列
在 input 陣列中每個元素代表一個工作資料夾的檔案,src 為原始檔名,dst 為目標檔名。
// 印出工作資料夾中每個檔案的名稱
input.forEach((file) => console.log(file.src))
output 輸出陣列
在 output 陣列中每個元素物件代表工作資料夾欲匯出的檔案,src 為原始檔名,dst 為目標檔名。
// 將工作資料夾中所有檔案匯出,並在每個檔名前端加上一個固定字串 'auto'
input.forEach((file) => {
output.push({src: file.src, dst: 'auto-'+file.src})
})
Last updated