Re: automatic saving pdf files in pages
Re: automatic saving pdf files in pages
- Subject: Re: automatic saving pdf files in pages
- From: "John C. Welch" <email@hidden>
- Date: Tue, 21 Sep 2010 15:58:36 -0400
- Thread-topic: automatic saving pdf files in pages
On 9/21/10 5:29 AM, "Jarda Kotesovec" <email@hidden> wrote:
> Hi all!
>
> I was wondering if would be possible solve the following issue in
> Pages with apple script.
>
> I need to force Pages to save document in PDF format at the moment
> when you save it as a native Pages document. Normally user have to
> save it (as a native pages document) and then pick up "File -> Export
> ... -> PDF -> Next.. -> Export" to have pdf copy as well. I need to
> save these clicks (exporting to pdf) in term of faster workflow.
>
> Any feedback is really appreciated.
Here's the simple way, (Assuming you don't need custom settings like
password protection, etc.)
set theDocfolderPath to (path to documents folder) as text
tell application "Pages"
set theName to name of document 1
set theName to text 1 thru -(2 + (count of "pages")) of theName & ".pdf"
save document 1 in (theDocfolderPath & theName) as alias
end tell
Basically, you save, but to a file with a .pdf extension, and you get a PDF
file. I do this all the time, works quite nicely.
--
Love:
A temporary insanity curable by marriage.
Ambrose Bierce
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden