CherylG3

Q: How to make Export to PDF keep the extension

When I export to PDF from Pages (5.6.2), there is no option to show or hide the /pdf extension, as there is in many applications. But the file name always has it:

 

Screen Shot 2016-09-24 at 5.47.15 PM.png

 

BUT, when I see the file in the Finder, the extension is hidden, and then I have to use Get Info to reveal it again. Argh!

Screen Shot 2016-09-24 at 5.48.43 PM.png

 

Is there a way to have Pages actually save the file with the extension, for real? I'm on OS 10.11.6.

Posted on Sep 24, 2016 3:56 PM

Close

Q: How to make Export to PDF keep the extension

  • All replies
  • Helpful answers

  • by bjh333,Solvedanswer

    bjh333 bjh333 Sep 24, 2016 6:38 PM in response to CherylG3
    Level 1 (57 points)
    iWork
    Sep 24, 2016 6:38 PM in response to CherylG3

    Open finder preferences.

    Go to "advanced" tab

    Check Show all file name extensions

    It will help you.

  • by VikingOSX,Helpful

    VikingOSX VikingOSX Sep 24, 2016 8:18 PM in response to CherylG3
    Level 7 (21,401 points)
    Mac OS X
    Sep 24, 2016 8:18 PM in response to CherylG3

    Unfortunately, Pages v5, and now v6 on macOS Sierra provide no means to export documents with their extensions unhidden. Although there is advice that one should change the Finder preferences to reveal ALL extensions on every filesystem object, I personally disagree due to the added clutter.

     

    I prefer to keep a small AppleScript on my Desktop that allows me to select one or more documents with hidden extensions, and then just click the script, and it instantly unhides the name extension on every selected document.

     

    One copies and pasted the following AppleScript into their open Script Editor (Launchpad : Other : Script Editor), and clicks the hammer icon to compile it. Then it is saved twice: 1) as File format: text which puts an AppleScript extension on the current document, and 2) Option key : File menu : Save As... File format: Script, or Application to the Desktop, or in your Dock.

     

    Code:

     

    -- se.applescript

    -- Select the file(s) in the Finder whose extensions are hidden. Run this script to

    -- show the extensions.

    -- VikingOSX, Sept 24, 2016, Apple Support Community

     

    tell application "Finder"

           set sel to selection as alias list

           if sel = {} then

                display dialog "Select the files in the Finder whose extensions you want displayed."

                return

           end if

           repeat with afile in sel

                set extension hidden of afile to false

           end repeat

    end tell

  • by CherylG3,

    CherylG3 CherylG3 Sep 24, 2016 8:00 PM in response to bjh333
    Level 2 (274 points)
    Mac OS X
    Sep 24, 2016 8:00 PM in response to bjh333

    Thank you! That did the trick!

  • by CherylG3,

    CherylG3 CherylG3 Sep 24, 2016 8:18 PM in response to VikingOSX
    Level 2 (274 points)
    Mac OS X
    Sep 24, 2016 8:18 PM in response to VikingOSX

    Excellent. Thank you!