Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Pages 5.6.1 how to insert a filename

In past versions of Pages I could insert the filename or the entire path of a document in the footer. I create many documents for our company. This was invaluable when changes had to be made to a document or form. I can't find this option in Pages 5.6.1. Where did it go? How do I insert a filename?

iMac (21.5-inch, Late 2013), OS X El Capitan (10.11.3)

Posted on Feb 11, 2016 9:41 AM

Reply
5 replies

Jan 5, 2017 3:55 AM in response to Paul--W

Apple leadership and product teams do not participate in the Apple Support Communities. So, your comment is being addressed to just another user in this user-to-user support community. Use the Pages menu : Provide Pages Feedback menu item to address your comments to the Pages product team directly.


Yes, we have used the s-bomb, and a few other expletives about the migration from Pages '09 to less functional releases of Pages since Fall 2013. After 3 years, Apple is showing no signs of conscience, or restoring Pages '09 features. Pages '09 v4.3 still continues to work on macOS Sierra 10.11.2.


If all that you want is just the filename, and not the path to a filename, then click the document name in the title bar of Pages v5/v6. A drop-down will have the filename selected. Copy and paste that selection into your document. It just s***s alittle less.

Feb 11, 2016 1:58 PM in response to jake4700

Pages v5 (all releases) was a complete rewrite — not based on Pages '09. Insert menu : Filename was never added to the application. There is no provision in the Pages v5 application to insert entire path either.


If you click on the document name in the title bar, a panel will open with the filename pre-selected, copy/paste that into your footer. There never was a capability within Pages '09 to insert a document path.


The following AppleScript will display a POSIX path to the currently opened document in Pages. It will handle three different Pages installation scenarios:

  1. Pages v5 only installed with open document
  2. Pages '09 only installed with open document
  3. Pages v5 and Pages '09 installed and one running with open document


Launch the Script Editor (Launchpad : Other : Script Editor). Copy/paste the following AppleScript into the Script Editor. All of the text will be purple (normal). Click the hammer icon to compile. Now the text is mixed colors (good). Two successive saves:

  1. File menu : Save… Filename: Pages_path. When you select Text from the FIle Format: selector, applescript will be appended to the filename. Check no other boxes, and Save into your Documents folder. This is the source only.
  2. File menu : Option key : Save As… Pages_path. From the File Format: selector, choose Application. A .app extension will be appended to the filename. Click Hide Extension box. Save to your Desktop. This is the clickable application.
  3. When you want an opened document's entire path, you click the Pages_path icon on your Desktop and a dialog will appear. Select, copy, and paste this filepath into your Pages document.


-- Pages_path - display the full path to the current document

-- path can be copied and pasted from the dialog into document

-- Handles three scenarios

-- 1) Pages v5 only

-- 2) Pages '09 only

-- 3) Pages '09 and Pages v5 both installed, but one running


set p9 to ((path to applications folder) as text) & "iWork '09:" & "Pages.app:"


if (version of application "Pages") is greater than "4.3" then

-- any release of Pages v5 open with document

tell application "Pages" to set document_path to POSIX path of ((front document's file) as text)

else if exists (p9) then

-- Pages '09 open with document

tell my application p9's front document to set document_path to path of it

else

-- OS X App Store Pages '09 only installed

tell application "Pages" to set document_path to front document's path

end if


display dialog "Current document path" & return & document_path as text


return

Pages 5.6.1 how to insert a filename

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.