我試圖繞過提示。這是一塊「我」的代碼:Applescript旁路提示
tell application "Finder"
set folderA4 to choose folder with prompt "Please select the Folder with A4-booklets"
set allFiles to every file of folderA4
set listCount to count every item of allFiles
end tell
tell application "Adobe InDesign CS6"
repeat with i from 1 to listCount
set myDocument to make document
set myPDF to choose file
...
後來我需要放置在InDesign本文件:
tell myPage
set myPDFPage to place myPDF
set myPDFPage to item 1 of myPDFPag
end tell
但我不想手動,但自動選擇該文件在此方式:
tell application "Adobe InDesign CS6"
repeat with i from 1 to listCount
set myDocument to make document
set myPDF to item i of folderA4
這樣folderA4的所有PDF文件都會自動選擇...
此豪版本會帶來錯誤,說明無法請求第1項的別名。 (編號-1728)
我在做什麼錯?
提前致謝!
該文件夾只包含pdf文件,所以並沒有真正改變這種情況我試過了,它沒有工作。感謝您的努力! – Mauritz 2015-02-23 16:28:35