Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Batch convert Word files to PDFs via Pages' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Batch convert Word files to PDFs via Pages
Authored by: ptone on Oct 20, '08 11:05:11AM
You can skip the creation of a new document by using a line like:

save document 1 as "SLDocumentTypePDF" in ((thePath as string) & fname & ".pdf")

[ Reply to This | # ]

Batch convert Word files to PDFs via Pages
Authored by: musselrock on Oct 20, '08 11:50:46AM

That's very good. Thank you. Where did you find this:

save document 1 as "SLDocumentTypePDF" in filname

It's not in Pages dictionary that I can find.

Script now reads:

on open filist
repeat with lvar in filist
tell application "Finder"
set thename to name of lvar
end tell
set x to the offset of "." in thename
set nuname to text 1 thru text item x of thename
set nuname to text 1 thru text item x of thename
tell application "Pages"
activate
set filname to (path to desktop folder as text) & nuname & "pdf"
open lvar
save document 1 as "SLDocumentTypePDF" in filname
close every window saving no
end tell
end repeat
end open



[ Reply to This | # ]