35

I have opened a pdf file in preview, without knowing where this file is located. How can I find out?

4 Answers 4

40

Simply +Click on it's name in the title bar or secondary click (right click) on it .

(I have a polish OS X on the screenshot)

enter image description here

7
  • 2
    wow... that was "easy" to find.... thanks for the help as I couldn't find it for the life of me!
    – Brad Parks
    Commented Feb 26, 2016 at 18:14
  • 2
    @BradParks you can also secondary/right click on it too. Commented Feb 26, 2016 at 18:21
  • 3
    Bit late, but worth pointing out that this works in all applications that have standard windows*. I use this feature every day and find it so annoying when I have to use Windows. You can also drag the icon itself if you hold the mouse button down for a short time before you drag, e.g. to drag the file to the Trash. * Except for some non-standard apps, and if you're looking at an MS Office document opened from SharePoint I don't think it works either.
    – user535673
    Commented Mar 6, 2018 at 15:10
  • unfortunately this doesn't allow saving the path to the clipboard; I've asked that question specifically here: apple.stackexchange.com/questions/327085/… Commented Jun 5, 2018 at 4:26
  • But I happen to find that if the path is too long, it will fail. Say that the path is /a/b/c/d/e/f/g/h/i/as/fsd/awe/wqeq/123/w/re/qw
    – youkaichao
    Commented Feb 11, 2019 at 4:55
25
  1. Command+O this opens a dialogue with the current file.
  2. Select the file, and press Command+R, this reveals the file in Finder.
  3. In Finder, select the file, and press Option+Command+C, this copies the full path to the Clipboard.
5
  • How on Earth did you figure these hotkeys out? I'm trying to understand where these shortcuts are defined.
    – Atcold
    Commented Nov 6, 2019 at 15:56
  • Not that easy. But not that hard being a geek :)
    – youkaichao
    Commented Nov 7, 2019 at 11:45
  • Any pointer? It would help guide my search.
    – Atcold
    Commented Nov 7, 2019 at 13:58
  • 2
    Here: osxdaily.com/2012/07/06/…
    – youkaichao
    Commented Nov 8, 2019 at 13:28
  • those 3 steps work well. I'm sure there used to be a reveal in Finder option in the menu that would open the containing folder in the finder. Super simple. This is now silly and causes a long time to do a simple action. super frustrating
    – chris-net
    Commented Nov 4, 2022 at 12:49
2

Mojave - just click on the name, it will reveal the popup window with location. Alternatively, you can hover the cursor over the name - it will invoke a little downward arrow - click on it and you'll see the same popup with location.

2

Quick solution using the terminal (macOS 14.1.1):

osascript -e 'tell application "Preview" to return path of front document' | pbcopy
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .