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

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!

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...

Similar Messages

  • How can I determine the full path and filename of the currently opened .ai file?

    In Photoshop, right clicking the file name of the opened file in progress shows an option "Reveal in Explorer" so I know exacly where the file was opened from.
    In Lightroom, it is displayed in the metadata.
    New to illustrator, I have looked at loads of menu options get cannot see how to find this information.
    Would be grateful for some help.

    +1 for what Larry said if you are on OS X. You can then scroll through and select any of the listed items and when clicked upon it will take you to that folder/location.
    Not that it would offer ease of use or a better method, but you could also use a simple script to retrieve this info as another alternative method:
    Example Structure:
    alert("File Path/Location:\n" + File.decode(app.activeDocument.fullName));
    Results the Below Alert:
    alert("File Path/Location:\n" + File.decode(app.activeDocument.fullName).split('/').join('\n/ '));
    Results the Below Alert:
    But again, not that this approach would offer ease of use or a better method, just another alternative method (It works in my quick tests).

  • Get the absolute path and filename of the file from the command line

    Hi,
    when we run the class we give the command
    java <filename>
    How can I capture the filename given above and get its absolute path inside the
    public static void main(String [] args){}
    args[0] gives me the command line argument after the filename. How do I capture the filename itself from the command line argument and also get that files absolute path
    Thanks

    I don't know of any way to capture the java command input, but there are ways to find out where the application is being run from. (the "absolute path")
    http://forum.java.sun.com/thread.jsp?forum=31&thread=335394

  • File dialog box: how get  full path and filename

    Hello All
    i have a problem to save the full path and filename with file dialog box.
    I want to save full path and filename in the database for creating a link to a file.
    I use a file-dialogbox to choose a file.
    I see in the textfiled something like this
    \FULLPATH\filename.ppt
    but when i save the textvalue in the database or look at the seesionvalue I see
    this:
    F2087258868/filename.ppt
    but I need the full path to create a link. How I can get?
    I use version 2.2.1..
    Thanks
    Putcho

    Hi Putcho,
    You can create some javascript that puts it into a hidden item.
    In HTML Form Element Attributes: onChange="$x('P15_X').value=$x('P15_FILE').value;" Then create another process that stores the value of the hidden item in your own table...
    I quickly made an example with a normal text item, so you see it copies itself to the other box: http://apex.shellprompt.net/pls/apex/f?p=286:15
    Hope that helps,
    Dimitri
    http://dgielis.blogspot.com

  • File dialog box: how get full path and filename (firefox 3.0 problem)

    Hi,
    I have a smilar problem then discussed in this thread: file dialog box: how get  full path and filename
    Now this solution doesn't seem to work in firefox 3.0,I only get the filename but not the full path.
    I have tried to solve this problem by adding *"netscape.security.PrivilegeManager.enablePrivilege("UniversalFileRead");"* in a javacript function but that doesn't do the trick
    Although when i tested it local it does work.
    Any idees how to solve this?
    Best Regards
    Stijn

    Actually, that is strange and scarry. With 20% of the browser market share they decide to behave like Microsoft did in the past - they want to decide what users need and what they do not need. With 3.0 I have a real problem with some of my applications. They are all tested in IE6, IE7, FF2.0 and they all work the same way (they even work with Opera and Safari). Now, I will for sure not go there and make it work for 3.0, just because 2 out of 200 users use FF3.0. Up to now I have always recomended FF as the best browser. 3.0 causes my opinion to change completely. Competition is always good but it is a question if it is good if we have 20 different browsers out there with equal market shares.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How to get the full path instead of just the file name, in �FileChooser� ?

    In the FileChooserDemo example :
    In the statement : log.append("Saving: " + file.getName() + "." + newline);
    �file.getName()� returns the �file name�.
    My question is : How to get the full path instead of just the file name,
    e.g. C:/xdirectory/ydirectory/abc.gif instead of just abc.gif
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    public class FileChooserDemo extends JFrame {
    static private final String newline = "\n";
    public FileChooserDemo() {
    super("FileChooserDemo");
    //Create the log first, because the action listeners
    //need to refer to it.
    final JTextArea log = new JTextArea(5,20);
    log.setMargin(new Insets(5,5,5,5));
    log.setEditable(false);
    JScrollPane logScrollPane = new JScrollPane(log);
    //Create a file chooser
    final JFileChooser fc = new JFileChooser();
    //Create the open button
    ImageIcon openIcon = new ImageIcon("images/open.gif");
    JButton openButton = new JButton("Open a File...", openIcon);
    openButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    int returnVal = fc.showOpenDialog(FileChooserDemo.this);
    if (returnVal == JFileChooser.APPROVE_OPTION) {
    File file = fc.getSelectedFile();
    //this is where a real application would open the file.
    log.append("Opening: " + file.getName() + "." + newline);
    } else {
    log.append("Open command cancelled by user." + newline);
    //Create the save button
    ImageIcon saveIcon = new ImageIcon("images/save.gif");
    JButton saveButton = new JButton("Save a File...", saveIcon);
    saveButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    int returnVal = fc.showSaveDialog(FileChooserDemo.this);
    if (returnVal == JFileChooser.APPROVE_OPTION) {
    File file = fc.getSelectedFile();
    //this is where a real application would save the file.
    log.append("Saving: " + file.getName() + "." + newline);
    } else {
    log.append("Save command cancelled by user." + newline);
    //For layout purposes, put the buttons in a separate panel
    JPanel buttonPanel = new JPanel();
    buttonPanel.add(openButton);
    buttonPanel.add(saveButton);
    //Explicitly set the focus sequence.
    openButton.setNextFocusableComponent(saveButton);
    saveButton.setNextFocusableComponent(openButton);
    //Add the buttons and the log to the frame
    Container contentPane = getContentPane();
    contentPane.add(buttonPanel, BorderLayout.NORTH);
    contentPane.add(logScrollPane, BorderLayout.CENTER);
    public static void main(String[] args) {
    JFrame frame = new FileChooserDemo();
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    frame.pack();
    frame.setVisible(true);

    simply use file.getPath()
    That should do it!Thank you !
    It takes care of the problem !!

  • How to get the full path or name of the Layer to which Filter is applied?

    Hi All,
              I have created a layer using some background image as source. How to get the name or ful path of the background image?
    I checked the documentation and found GetPathNameProc(SPPlatformFileSpecification*) function, but I couldn't get the parameter SPPlatformFileSpecification*.
    Is there any other way to get the file path of background layer in my custom filter?
    Thanks,
    Dheeraj

    If this is a client side application then I'd say look into drag-n-drop tutorials.
    i.e. drag file to your application, action listener fires, create File object giving you full name and path of users action.
    If this is a web application then look into the "multipart/form-data" content type specifications on how to upload files.
    i.e. user specifies file from <input type='file' ... /> type, submits, servlet receives data and recreates file locally on application server side.
    If you are thinking that all you need to send a file to a program is the full path and name in a textbox its a little bit more complicated then that.
    Good luck, hope that helps!

  • Is it possible to set default path and filename to the upload UI element  ?

    Hello All,
       Can some advise on if its possible to set a default path and filename to the upload ui element ? I will like to set a default path and filename to be uploaded to the upload UI. The user will then have the option of using that path or clicking on the browse to set another location.
      Any suggestions or advise ? Thank you very much.
    from
    Kwok Wei

    Hello VS,
      So to confirm, from your opinion, you feel that its not possible to have my upload UI elememt to be displyed on the screen with the path and filename preloaded ?
    Btw, do you have an email that I can reach you at ?
    from
    Kwok Wei

  • I erroneously deleted some background icons, that now have left me with only thumbnail images, what appears when I want to enlarge is a grey circle containing a black exclamation symbol, how can I get back full function and undo my mistake

    I have erroneoulsy deleted icons repetious images from the computer which then affected my iphoto images, leaving me in some cases only with the thembnail image.   When I try to enlarge or perform any other function all that appears is a black field containing a grey circle with a black exclamation symbol( !)
    within it.  How to I get back full function of these affected images and undo my goof up.   I have tried restore, but my attempts have not proved successful. 
    Help !!!
    silvercoho

    What exactly did you do to delete these?
    How did you try to "restore" and what did you try to restore?
    Probably the only solution is to restore your backup of the iPhoto library  from before you did this
    LN

  • Full path and filename in wwv_flow_files after upload from UNC path in IE

    I have a page with a file browse item. After page submit I move the file from wwv_flow_files to another table.
    Normally the column wwv_flow_files.filename only contains the filename. However, when using IE9 and selecting a file from an UNC path the column contains the full path+filename.
    Does anybody have an idea what happens here?
    How can I make sure I only get the filename?
    Using Apex 4.02.007
    Edited by: Rene W. on Feb 28, 2013 6:39 AM

    Rene W. wrote:
    I have a page with a file browse item. After page submit I move the file from wwv_flow_files to another table.
    Normally the column wwv_flow_files.filename only contains the filename. However, when using IE9 and selecting a file from an UNC path the column contains the full path+filename.
    Does anybody have an idea what happens here?
    How can I make sure I only get the filename?For security/privacy reasons recent versions of browsers by default do not send local file path information from File Browse items to the server, nor expose the file path in the control's JavaScript methods. Firefox, Safari and Chrome only provide the filename. IE6 & IE7 still yield the path in Windows format. IE8+ and Opera have adopted an irritating approach of replacing the path with a wholly imaginary "C:\fakepath\"—and this monstrosity has sadly had to be enshrined in the HTML spec. A reasonably compatible way to strip the path in JS is provided there, or you should be able to do it fairly easily in PL/SQL when moving the file.
    The fact you are getting the full path suggests that the IE security config setting "Include local directory path when uploading files" (or IE9 equivalent) is used in your browser/environment to enable the path to be exposed in IE. This may be necessary to support dismal legacy applications. Consult whoever is responsible for browser security configuration at your site to see why/if this setting is necessary.

  • How do  I get my movies in and out of the iPad2?

    Please help.
    I know that the Ipad2 can take pictures and movies.  I also know that you can get iPhoto and iMovie for the iPad. 
    I also know things can be sent to YouTube and Facebook.
    But..
    How do you get the movies and photos you shoot with a camcorder or still camera into the iPad2 so that you can work on them in iMovie?
    And then...how do you get them from the iPad2 to a Mac so that you can make DVDs?
    Also, if you complete a movie in iMovie for iPad2, can you import that finished movie and work on it some more with iMovie for Mac or FCPX?
    It may be clear, but I am not finding it.  Hopefuly their is an APP that will allow drag and drop.
    Thank you very much.

    Depending on the format of the video, you can use the camera connection kit and connect USB cable to your camera, if the iPad does not recoginize the video format, you will have to convert them and then transfer them using the SD card or USB stick. Then to get them off you can do so several ways, either iPhoto or iMovie on your Mac, yes you can edit the movie in FCP.
    If you are on Windows you could use a service like Dropbox and upload them in app and they would get moved to the folder on your comoputer, this also works on a Mac the same way. I find Dropbox very resourceful and you can even upload them to your iPad like this also. Move them to the folder > open Dropbox > click your file > then choose "open in" which ever app on your iPad you want to open it in.

  • I have rented and watched 4 movies which, though expired still appear in my video folder.  I cannot watch them, but my ipad shows 4 videos in the "about" tab and shows several gigs of video used.  How do I get rid of them and free up the memory?

    I need to find a way to delete itunes rented movies that still seem to remain on my ipad after being watched.  The ipad shows memory allocated to the video and counts them in the "about" tab of my settings.  I can't watch them and cannot seem to delete them from the ipad or during sync.

    Go in Settings. Video. Un click the Show all videos

  • Path and filename containt the list of port used by OAS R3

    Could someone tell me the path and the file name that contains the port used by OAS R3.
    Thanks

    Previous versions used to have $OH/install/portlist.ini, this one doesn't but you can check ports used in....
    httpd.conf
    Check for directives
    Port
    Listen
    opmnctl status -l
    this will tell you the ports used by the OC4J, for rmi, ajp and jms for each one.
    And I think with this will do the trick, or if you need more, tell me.
    Regards.

  • The file path and directory about the .exe file created in LabView, who knows?

    I have a project, in the project, VIs and documents(.doc,.txt,.tdms,etc.) in different directories, and when the project run in the labView, it can find the directories and files, but when I created .exe file, I found the directories had changed and I didn't know the directory structure in the file, anyone know it?
    Thanks for any reply!
    YangAfreet

    Have a look at the link in my earlier post:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=267439#M267439
    LabVIEW Champion . Do more with less code and in less time .

  • My emails are appearing along the top of the page in the tool bar area? how do i get rid of this and back to the regular email page

    I opened my Mozilla yesterday and noticed my email page format was different then after a second, I noticed all my emails were now appearing along the top of the page in the tool bar area below "Fine Edit View Go ...etc" I'm not sure what happened. PLEASE help me I'm sure it's probably an easy fix, however I don't know how to fix it :)~ Also they are oldest email first, and since I normally save them for 45 days before deleting, I cant seem to get to the most recent email first. Ugh.
    Truly appreciate your help.

    This is what happens when you continually open messages in tabs but never close them. Pretty soon all you have are message tabs showing and you have pushed the Inbox off the screen.
    Get in the habit of closing message tabs after you read them.
    To get out of your situation now, right click one of the tabs and select Close Other Tabs. Then use the x to close the last one.

Maybe you are looking for

  • New iPad wont upload some checked songs from itunes

    New iPad will not upload all checked songs in iTunes from my PC and there is plenty of space.

  • Computer won't sleep on Energy Saver mode

    All of a sudden, the computer will not sleep while on Energy Saver mode. Any ideas on how to locate the culprit? Thanks!

  • 20" intel iMAC fan noise

    My iMAC's fan has begun to make a clicking noise like a card in the spokes of a bicycle wheel. Sometimes it's louder and sometimes it gets softer. Any ideas on what is causing it and how to fix it? Thanks

  • Configuration Manager Error

    Hi, I have got SQL 2005 Developer edition running and Websphere 6.1 installed, however when I run the LC configuration manager, at the steps where it tests the connection to websphere server, I get the following error: Failed to run JACL scripts. Doe

  • Package does not exist when compile in Jgrasp 1.8.3

    I have a package called jpb stored in a folder called jpb. The package has two files SimpleIO.java and Convert.java. My program has 1 of the line like this import jpb.*; I put the path and classpath in Jgraps pointing to the folder jpb but when I com