我试图绕过提示。这是一块“我”的代码: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