• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Pages 4.3 and Mavericks - Can't export as PDF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pages 4.3 and Mavericks - Can't export as PDF


  • Subject: Pages 4.3 and Mavericks - Can't export as PDF
  • From: Barry Fass-Holmes <email@hidden>
  • Date: Sun, 03 Nov 2013 23:41:27 +0000
  • Date: Sun, 03 Nov 2013 15:41:25 -0800

The script below likewise does not function properly in Pages 09 under Mavericks. It displays a progress bar that gets “stuck.” My similar AppleScript script for export to .doc functions properly.

tell application "Pages"
set docName to name of front document
-- Remove .pages extension.
set prevTIDs to AppleScript's text item delimiters
set AppleScript's text item delimiters to ".pages"
-- Add .pdf extension.
set docName to first text item of docName & ".pdf"
set AppleScript's text item delimiters to prevTIDs
-- Save file to Desktop.
set docPathAndName to (path to desktop as string) & docName
save front document as "SLDocumentTypePDF" in docPathAndName
set userInput to display dialog "Do you want to close this document?" buttons {"No", "Yes"} default button 1
if the button returned of userInput is "Yes" then
close front document
else
tell application "Pages"
activate
end tell
end if
end tell

Barry F-H

I have been able to reliably export PDFs from Pages with AppleScript for a number of versions (both OS and Pages). Under Mavericks I am unable to export to PDF.

The pertinent part of my script that is broken is:

set filesname to (path to desktop folder as string) & "grief." & "pdf"
tell application "Pages"
save document 1 in filesname
end tell

Pages gets as far as putting up an export progress bar and then freezes solid.

If I change pdf to rtf the script then works for that filetype.

Anyone else having this problem?

J
 _______________________________________________
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

  • Follow-Ups:
    • Re: Pages 4.3 and Mavericks - Can't export as PDF
      • From: Bryan Harris <email@hidden>
  • Prev by Date: Pages 4.3 and Mavericks - Can't export as PDF
  • Next by Date: Re: Pages 4.3 and Mavericks - Can't export as PDF
  • Previous by thread: Re: Pages 4.3 and Mavericks - Can't export as PDF
  • Next by thread: Re: Pages 4.3 and Mavericks - Can't export as PDF
  • Index(es):
    • Date
    • Thread