Skip to main content
Participant
April 11, 2006
Question

How do I get the full path and filename of the current document?

  • April 11, 2006
  • 2 replies
  • 805 views
I'm writing a format plug-in. How do I obtain the full path and filename of the current image (document) from within my plug-in? Any help would be greatly appreciated!
This topic has been closed for replies.

2 replies

Participant
November 16, 2006
Hey Guys,

The same call of PIGetDocumentName only returns the document name on the macintosh as opposed to the entire file path on Windows.
Does anyone know how to get the full path of the document open in Photoshop on the Macintosh.

thanks in advance,
Pawan Singh
Participant
August 27, 2024

Maybe you can use PIGetPathName()

Participant
April 11, 2006
I actually just figured this out. For anyone else who would like to know, check out the propetizer sample code in the photoshop sdk. It makes a "filter" plug-in that just spits out all the properties of the document you could ever want to know about. The function I used to get the full path and filename of the current document is PIGetDocumentName(). I hope this helps someone eventually...
Participant
August 27, 2024

I found that PIGetDocumentName() crashes with Photoshop Elements 2024