I have opened a pdf file in preview, without knowing where this file is located. How can I find out?
4 Answers
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)
-
2wow... that was "easy" to find.... thanks for the help as I couldn't find it for the life of me! 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
-
3Bit 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. 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
Commented Feb 11, 2019 at 4:55
- Command+O this opens a dialogue with the current file.
- Select the file, and press Command+R, this reveals the file in Finder.
- In Finder, select the file, and press Option+Command+C, this copies the full path to the Clipboard.
-
How on Earth did you figure these hotkeys out? I'm trying to understand where these shortcuts are defined.– AtcoldCommented Nov 6, 2019 at 15:56
-
-
-
2
-
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 Commented Nov 4, 2022 at 12:49
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.
Quick solution using the terminal (macOS 14.1.1):
osascript -e 'tell application "Preview" to return path of front document' | pbcopy