【发布时间】:2015-12-23 16:13:21
【问题描述】:
我有一个 PDF 文件夹,大约 650 个。我有一个包含 PDF 列表的 excel 列表,我必须将它们合并到一个 PDF 中。
我找到了这个脚本:
tell application "Microsoft Excel"
tell active sheet
set fileList to value of used range
tell used range
set rc to count of rows
end tell
end tell
end tell
set rootFolder to "/Users/aldoopenhouse/Desktop/EN ATTENTE/test cahier de details/Master Detail Book/PDF" as POSIX file
set filesToMove to {}
repeat with thisItem in fileList
try
set end of filesToMove to alias (rootFolder & thisItem)
on error
display dialog "File " & thisItem & " is not in the folder"
end try
end repeat
tell application "Finder"
move filesToMove to folder "/Users/aldoopenhouse/Desktop/EN ATTENTE/test cahier de details/*RESULT" as POSIX file
end tell
这个脚本总是返回结果:file *********.pdf 不在文件夹中
我做错了什么?
【问题讨论】:
标签: excel applescript