Skip to main content
Inspiring
July 25, 2021
Answered

How to select file name of an open file?

  • July 25, 2021
  • 3 replies
  • 1641 views

Sometimes I need to copy-paste the file name of an open file.

 

The only workaround I can think of (and am using) is the following:

File > Save As > Choose Different Folder
copy the file name

Then click on Cancel 

 

Is there an easier way within Acrobat?


Thanks.
(Adobe Acrobat Pro 2020)

This topic has been closed for replies.
Correct answer try67

I don't think so, although it's possible to create a script that will show the current file name in an alert box from which you could copy it, and assign it to a new menu or toolbar item...

But the way you described is quite easy, I think. If you use the keyboard it's even more so. You just need to do the following:

Ctrl+Shift+S

Ctrl+C

Esc

3 replies

try67
Community Expert
Community Expert
November 14, 2021

Here's how you do it.

Find the JavaScripts folder for your version of Acrobat or Reader.

If you're on a Windows machine it will be something like this:

C:\Program Files (x86)\Adobe\Acrobat <VERSION>\Acrobat\Javascripts

If you're on a Mac it will be something like this:

/Applications/Adobe Acrobat <VERSION>/Adobe Acrobat Pro.app/Contents/Resources/JavaScripts

You will need to create the JavaScripts folder if it doesn't already exist.

 

Download the attached file and rename it from ShowFileName.txt to ShowFileName.js (if you're on Windows make sure the option to hide file extensions for known file types is disabled in Windows Explorer, under View - Folder Options, before trying to rename it), and then place it in that folder and restart the application.

Once you do that a new menu item should appear under the File menu, directly below Properties, called Show File Name.

Click it and a window will appear with the file name in a text field, already selected, so you could directly copy it.

If you're on a Windows machine you can access it even faster, with the following keyboard combination: Alt+F, F.

Bernd Alheit
Community Expert
Community Expert
November 13, 2021

In Acrobat you can see the file name at File > Properties > Description.

adwul62Author
Inspiring
November 14, 2021

I know, but sadly though one can not clipboard copy the file name from there.

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
July 25, 2021

I don't think so, although it's possible to create a script that will show the current file name in an alert box from which you could copy it, and assign it to a new menu or toolbar item...

But the way you described is quite easy, I think. If you use the keyboard it's even more so. You just need to do the following:

Ctrl+Shift+S

Ctrl+C

Esc

adwul62Author
Inspiring
July 25, 2021

Many thanks indeed.

Okay, then there is no alternative but just to proceed as before.

Thanks again.