Applescript для печати документов Word - PullRequest
2 голосов
/ 10 сентября 2009

Можно ли распечатать все документы Microsoft Word (.doc) в папке с помощью AppleScript?

Ответы [ 2 ]

1 голос
/ 10 сентября 2009

Это не проверено, так как у меня нет моего Mac на работе, но вы поняли ...

tell application "Finder"
try
set the source_folder to choose folder with prompt ¬
"Pick a folder containing the documents to process:"
set these_files to every file of the source_folder
repeat with 
tell application "Microsoft Word"
repeat with doc in these_files
print-out doc
end repeat
end tell
end tell
0 голосов
/ 27 июля 2011
tell application "Finder"
    set the source_folder to (choose folder with prompt "Pick the folder containing the documents to process:")
    set these_documents to (every item of the source_folder whose name extension is "doc") as list
    repeat with i from 1 to the count of these_documents
        set this_item to item i of these_documents
        print this_item
    end repeat
end tell
...