Get the name of the folder

I have an open Acrobat file. I can link to it and 'get' various parameters:

Set AVDocument = AcroApp.GetAVDoc (1)

Set PDDocument = AVDocument.GetPDDoc

GetOpenPDFTitle = AVDocument.GetTitle

GetOpenPDFName = PDDocument.GetFileName

What I get is the folder where the PDDocument. I was expecting something simple like

GetPDFFolder = PDDocument.GetFolder or ".". GetPath"or"GetFullName"or similar, but none exists.

How to determine the name of the path or in the folder of the current PDF file?

Hello

You can connect to JsObject (.. pddoc.) GetJSObject) and then use the statement of js doc path.

Path

the path independent of the device the document, for example:

/ c/Program Files/Adobe/Acrobat 5.0/Help/AcroHelp.pdf

Don't forget that through the IAC, you can use almost all statements of js.

HTH, Reinhard

Tags: Acrobat

Similar Questions

  • Files disappeared from LR (deleted?), but has pictures of LR and hard drive. How can I get the folder HD back structure in LR?

    I can be the first person to have ever done that. I don't know what I've done yet. I have spend hours to organize my folders. I had imported them all in the horrible mess that they were (many duplicates, etc.). After obtaining their almost perfect I went to delete what I thought, it was a trash folder. I think I must have accidentally deleted my pictures folder (where they were all stored). Strange is that the catalog has all the 10,000 photos, but I have no file. Not a single one. Not even the HD Mac one. All changes have been made in LR, I know better than to go messing around with something outside of Lightroom. All changes I made to the files are on the hard drive right now. I just need to find a way to find the LR folder structure. However, it won't let me import anything. When I try to add a folder nothing is re-elected under the menu folders. I don't know what to do. Help! I've been throwing these to print photos for a Christmas gift.

    Given that I'm not a MAC person, as far as I know is that this file preference is located in a hidden directory and so you must follow the instructions in the link.

    The user library file is hidden by default on Mac OS X 10.7 and later versions. For temporary access to the file library user, press Option and select go > library in the Finder.

    If you don't want to delete the preferences file, you can rename it instead, and Lightroom will create a new file, preferably when you launch Lightroom.

  • Folder opens in the search window and not file. left click and it opens in search right click then 'open' and it will open in the window of the folder. How can I open it directly with by clicking on the left button of the mouse

    I've created the new folder. When I left click it open in the search window.  If I right click on it, drop-down box and select open and it opens on the window of the folder as it should.  How can I get the folder to open in the right window when I left click rather than having to do the extra step by clicking on the right, and then open?

    Try this link:

    'Search Companion starts if you double-click a folder '.
      <>http://support.Microsoft.com/kb/321186 >

    HTH,
    JW

  • The appearance of the folder by dragging...

    When I drag a folder in the office, a preview of the folder appears mobile instead of the folder moving. How can I get the folder appear mobile (I don't like to see the mobile edge)?

    When I drag a folder in the office, a preview of the folder appears mobile instead of the folder moving. How can I get the folder appear mobile (I don't like to see the mobile edge)?

    Sorry, but there is no way to do it.

  • Get the selected value in the list drop-down/messagechoice

    Hi friends,
    App R12.
    I create a drop-down list programmatically in the process request:

    OAMessageChoiceBean OAMC = oapagecontext.getWebBeanFactory () .createWebBean (OAWebBeanConstants.MESSAGE_CHOICE_BEAN, null, oapagecontext, null) (OAMessageChoiceBean);

    oamc.setPickListViewUsageName ("MyVO1");
    oamc.setListValueAttribute ("MyId");
    oamc.setListDisplayAttribute ("MyDescription");
    oamc.setID ("xxMypicklist");
    oamc.setRendered (Boolean.TRUE);
    oawebbean.addIndexedChild (oamc);

    This shows the list of choices and there MyVO1 query search results.

    Now, I want retrieve value MyId in the processFromRequest (after pushing a button on the screen). I do the following:

    OAApplicationModule am = pageContext.getApplicationModule (webBean);
    ...
    MyVOImpl myvoimpl = (MyVOImpl) am.findViewObject("MyVO1");
    MyVORowImpl PicklistRow = myvoimpl.getCurrentRow ((MyVORowImpl));
    NUMBER auxId = (NUMBER) PicklistRow.getAttribute ("MyId"); THIS SENTENCE GIVES A NULL POINTER EXCEPTION

    Then..., is not enough to find the original Version? and get the rank "perceive"... and then get the desired attribute?

    Do I need to load data from MyVO1 into myvoimpl? How? How to get the folder selected on the screen?

    Many thanks for any help. It is very urgent for me to solve this problem. Dev guide does not help with this kind of usual problems.
    Jose L.

    Hello

    u can not get the value of this way, becz you try to get the value of the original Version which is used for bean of choice message, to get the value selected in this field of choicebean message, you must get the VO initialized for this page, both would be different VO, you can opt for the following approach

    (1.) an another VO wiil be there in your page get implemented to capture the data on this page, the attribute of this VO would be added to your field of beans of choice, need to understand that VO and and capture your selected value.

    or the other way is

    2.), you can change your code in the same way in the pR method

    OAMessageChoiceBean OAMC = oapagecontext.getWebBeanFactory () .createWebBean (oapagecontext, OAWebBeanConstants.MESSAGE_CHOICE_BEAN, null, "XXMypicklistBean) (OAMessageChoiceBean);

    and get the selected value in pFR method in this way

    OAMessageChoiceBean getCHBean = (OAMessageChoiceBean) (webBean.findIndexedChildRecursive ("XXMypicklistBean"));

    String val = (String) getCHBean.getValue (pageContext));

    thanx

    Pratap

  • Try to copy a folder with subfolders, some don't copy, get the message that the folder names are too long under Windows 7

    Hi, when you try to copy a folder with lots of subfolders, some files don't copy.  I get a message that the folder names are too long, and the only option is to ignore these files.  Anyone know the maximum folder (and also) name length that will copy windows 7?

    Thank you

    Steve M

    Hello
     
     
    a. What are the data you're trying to move?
    b. what operating system (for example Windows files) files?
    c. What is the method that you use to copy data?
     
     
    Windows 7 supports filename up to 260 characters. I would ask you to decrease the characters in the file name and then try to copy the files.

    Let us, run disk checking hard disk utility and then check.
    Here's how:
    1. open the computer by clicking the Start button, click computer.
    2. click on the drive you want to check, and then click Properties.
    3. click on the Tools tab and then, under check for errors, click Find now. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    To automatically repair problems with files and folders that the scan detects, select automatically fix file system errors. Otherwise, the disk check will be a problem, but not to fix them.
    To perform a thorough check, select search and attempt to recover bad sectors. This analysis tries to find and repair physical errors on the disk itself, and it may take much longer to complete.
    To check for errors file and the physical errors, select both automatically fix errors in file system and search for and attempt recovery of bad sectors.
    4. click on start.
     
     
    Depending on the size of your drive, it may take several minutes. For best results, do not use your computer for any other tasks while it checks errors.
     
    Important: Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.
     
    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Use Folder.userData to get the name of the user? (Windows/CS5)

    I am looking for a way for our Stylists to digitally sign the "" on the graphics they export them, what we do via javascript. Through other posts in this forum, I know how to add text in a textbox via JS, but finds it difficult to get the information from user name.

    I was hoping that I could follow somehow the user name of one of the folder options, but he always goes back like a truncated file that does not include the user name part.

    So, for example when I use this:

    alert(Folder.userData.absoluteURI);
    

    my result is:

    ~/AppData/roaming

    The info that I need are there where pesky ~ is! Any ideas on how to get it to give me the full path name?

    I tried:

    Folder.userData.absoluteURI
    Folder.userData.path
    Folder.userData.fullName
    Folder.userData.parent
    

    All except .parent give me the same result "~/AppData/Roaming".

    .parent gave me '~/AppData '.

    . parent.parent gave me «~»

    When I went to parent.parent.parent he gave me "/ c/Users.

    The username property is blocked somehow be returned? Is there a way around this if yes?

    Tech Specs: Windows 7, using Illustrator CS5 64-bit

    use

    alert(Folder.userData.fsName); // C:\Users\Carlos\AppData\Roaming
    
  • Get the exact name of the folder on the data of a model store

    All,

    So pretty much miss me it there only a few items.  I want to specify a specific data store and get the names of models and their folder on the data store locations.

    I have this command and it gives me the info of the HD, but is not correlated with the virtual computer name.  Question: How can I format this to get VM name mapped to the location of the data store?

    Get-data center-name 'main data center 1 | Get-data store 'templates_isos ' | Get-model | Get-hard drive

    That is, look at the Parent property

    Get-data center-name 'main data center 1 | Get-data store 'templates_isos ' | Get-model | Get-hard drive | Select Name, Parent

    In the default view you see not all the preoperties that are there.

    You can use the Get-Member cmdlet to see the available properties

    Get-data center-name 'main data center 1 | Get-data store 'templates_isos ' | Get-model | Get-hard drive | Get-Member

  • Is it possible to get the name of the folder that contains the current document?

    Hi all!


    I know how to get the name of the active document


    app.activeDocument.name;


    but I was wondering if you could also get the name of the folder that contains the current document. Not sure if this is possible or not, so I thought I'd ask, if so it save me a lot of time.


    Thanks in advance!

    Hi djbgraphicdesign,

    does this work for you?

    if (app.activeDocument.saved){
    alert(app.activeDocument.path.name);
    }
    

    Have fun

  • How to get all the names of files in the folder and move it to another folder

    Hello
    How to read the files in a particular directory with PL/SQL, without knowing the exact name? My application interface with another system that puts the files in a specific directory on the server. UTL_FILE method reads a file when you know the name of the file, but I don't know the name in advance. Is it possible to output the name of the file? I also used the method of Tom "http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:439619916584" (related to the Java stored procedure) but am getting error of procedure "ORA-00900: invalid SQL statement. Here's the code I used Tom - forums

    CREATE or REPLACE AND compile java source named 'DirList '.
    AS
    import java. IO;
    import java.sql. *;

    public class DirList
    {
    Public Shared Sub getList (string directory)
    throws SQLException
    {
    Path = new file (directory);
    List of strings [] = path.list ();
    Element string;

    for (int i = 0; i < list.length; i ++)
    {
    item = list;
    #sql {INSERT INTO DIR_LIST (FILENAME)
    {VALUES (: element)};
    }
    }

    }
    /
    **********************************************************************
    CREATE OR REPLACE PROCEDURE get_dir_list (p_directory in VARCHAR2) AS java language
    name ' DirList.getList (java.lang.String) htp.p (p_directory) ";
    **********************************************************************
    get_dir_list exec (' / CERT_XML');
    **********************************************************************

    I would like to know is there any alternative approach to retrieve all the names of the files in the folder of the server and move these files to a different folder?

    Thank you
    Amit Bhandari

    Hello

    It is a limitation of UTL_FILE in Oracle that we can do with Java stored procedures in Oracle.

    We can read the files in Server directory using the following steps:

    Please follow the steps below:

    1. creating a Type of Type Varchar2.

      CREATE OR REPLACE TYPE file_list AS TABLE OF VARCHAR2(255);
    

    2. next, we need create a library of Java file

    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "ListVirtualDirectory" AS
      import java.io.*;
      import java.security.AccessControlException;
      import java.sql.*;
      import oracle.sql.driver.*;
      import oracle.sql.ArrayDescriptor;
      import oracle.sql.ARRAY;
    
      public class ListVirtualDirectory {
        public static ARRAY getList(String path) throws SQLException, AccessControlException {
    
        Connection conn = DriverManager.getConnection("jdbc:default:connection:");
    
        File directory = new File(path);
    
        ArrayDescriptor arrayDescriptor = new ArrayDescriptor("FILE_LIST",conn);
    
        ARRAY listed = new ARRAY(arrayDescriptor,conn,((Object[])directory.list()));
      return listed; }}
    

    The most advanced method overrides by removing information about java.properties of exception management settings. You can do this by catching the exception thrown in native mode and rethrow it or ignore it. The example it up again.

    3. then, you must create a Wrapper function:

    CREATE OR REPLACE FUNCTION list_files(path VARCHAR2) RETURN FILE_LIST IS
    LANGUAGE JAVA
    NAME 'ListVirtualDirectory.getList(java.lang.String) return oracle.sql.ARRAY';
    

    4 grant permissions to the Driectory:

    BEGIN
      DBMS_JAVA.GRANT_PERMISSION('USER_NAME'
                                 ,'SYS:java.io.FilePermission'
                                 ,'C:\JavaDev\images'
                                 ,'read');
      END;
    

    5. then you can read the contents of the directory

    SELECT column_value FROM TABLE(list_files('C:\JavaDev\images'));
    

    That displays all the files in the mentioned directory.

    Thank you
    Shankar

  • Get the name of the folder after parent.

    Hi forum.

    I need a big help on your part.

    If I could get the name of the folder that is between the office and the indesign files where it saved ls...

    for example.

    /Users/wleastudio/Desktop/rantacacb.indd.

    I need to get the file name selected in red and alert...

    If it isn't immediately on desktop I can do easily alert as below...

    name = Folder("/Users/wleastudio/Desktop/");

    If (app.activeDocument.filePath == name.path + "/" + name.name) {}

    Alert ("the document is in the office"), out;

    }

    If the document is saved in a folder on your desktop, that's the problem, I find it difficult to find the name of the folder and get alert...

    /Users/wleastudio/Desktop/rantacacb.indd.

    Thanks in advance

    Hello

    artCraft2 wrote:

    ...

    If it isn't immediately on desktop I can do easily alert as below...

    ...

    It's always all right way:

    the last folder name: app.activeDocument.filePath.parent.name

    last folder: app.activeDocument.filePath.parent

    You could step using parent.parent and so on...

    Jarek

  • How to get the right folder name/location during import?

    I can't get LR 3.x to import into the desired folder structure, as I used to do with

    LR 1.x and 2.x.  I am trying a structure that looks like this:

    http://content.screencast.com/users/jfriend/folders/Jing/media/2e238e71-feda-4a1d-adb1-65124c611838/2011-02-26_2200.png

    I want LR to automatically create a folder with the timestamp in it and find the right year and then let me in the last part of the name of the folder that identifies the object, prior to importation.  So far, all I can get is the name of the file generated automatically by date with no ability to edit or a folder name completely custom where I locate correctly and typing the entire name, including the date.  In LR 1.x and 2.x, it was really easy.  LR suggest the name of the folder (or multiple folder names if the images extend over several dates) with the date in it, and I could double-click it to add the additional designation prior to importation.  Could not find any way to do in LR 3.x.  Does that mean, that I have to do the import, wait it ends and then go back and manually rename each file that it created.  It's especially a pain when there are several folders (through multiple dates) or when my backup program has already hit and made a backup of the date generated automatically until I come and rename it manually.

    So my question is, how do I get LR for the right folder name based on the date in the folder location good auto suggestion and I would like to add something on the end of it before importing?  It was very easy in the import of LR1.x and 2.x.

    jfriend0 wrote:

    Isn't "this a common way to organize images?  He was born in LR1.x and 2.x.  I guess I'm surprised they would take something like this in LR3.x.

    He slipped under the radar when again the new window import. If all goes well, we will get it back in the next major update. In the meantime. You can add the importation of additional text in right click on the folder name and then selecting rename in the context menu.

  • The Acrobat 9 batch - get PDF files of the folder names?

    Hello

    Can someone give me an example with the use of batch (when the value of a specific folder/files) for a list of the names of files in this folder? I was not able to find examples online. It does not seem be any batch built in sequences that automatically do so I guess it will have to be done with javascript?

    In the end, I need to automate a process (I was hoping to create a batch sequence to do this) which will allow me to invite a user to choose a record source to PDF files and then based on this selection, run a Javascript that I create, which will merge all of the PDF files in this folder into a new PDF apply some culture settings to each page, and then ask the user where to save the merged PDF file?

    Has anyone ever done something like this? I'd love to see an example of how this could be able to achieve.

    Thanks in advance.

    Have you tried to create a batch process to test (now called 'Actions')?  Actions in Acrobat 10 has the 'Merge all the files in the folder' option, and batching in previous versions has always included a commad culture page, but also an option to ask the user where to save the file.

    There are many examples and articles on this topic at http://www.acrobatusers.com

    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com

    The Acrobat JavaScript Reference, use it early and often

    Then more important JavaScript development tool in Acrobat
    The Console window (video tutorial)
    The Console Window (article)

  • How can I get the names of beach for music after import?

    Hello

    I have several CDs that I imported into itunes and songs/artist is incorrect. How can I me track names/artist gracenote to search for info again without inserting the CD? I read several posts online, where it is said to highlight titles and click again while holding the CTRL, and then select "get the track names" or "get metadata" according to the post, but I don't have one of these options. I have itunes 12.5.21. Thank you.

    12 iTunes for Mac: If you do not see your information on songs - https://support.apple.com/kb/PH19609

    It is not clear from this article if the CD should actually be reinserted and once it is identified if he then turns also names to track stolen from the CD.

    Personally I never use iTunes to rip CDs. I use XLD and XLD has a feature where you can select a folder of tracks in the Finder and open it as a CD which can then be identified.

  • Move the file in the folder of the same name in AppleScript

    I had a problem with the script below. Basically, on the execution of the script, I want to create folders based on the name of the file and move the files in the files of autocorrelation. However, at the minute, that I'll have to choose the folder in which the script should run.

    Folder to choose a folder

    say application 'Finder '.

    located fileList to the name of every file in Folder with name extension is "m4v".

    end say

    the value point text delimiters to ".".

    Repeat with dittos in list of files

    get each text element of dittos

    masterFile defined in the point 1 of the result

    say application 'Finder '.

    create a new folder to Folder with properties {name: masterFile}

    move (each file from the folder Folder whose name contains masterFile) will cause

    end say

    end Repeat

    Ideally, I would like it to run automatically, but the folder is on an external hard drive. (\Volumes\Lacie\Movies). and I had problems to use the POSIX and 'alias' to properly re-create the path of the file desired.

    Any help would be greatly appreciated. Thank you!

    Hello

    You can try something like the AppleScript script which is a simple shell script wrapper.

    set d to (choose folder)'s POSIX path
    do shell script "/bin/bash -s <<'EOF' - " & d's quoted form & " 2>&1
    cd \"$1\" || exit
    shopt -s nullglob
    for f in *.m4v
    do
        m=${f%.*}
        [[ -d $m ]] || mkdir -p \"$m\" || continue
        mq=$(sed 's/[^[:alnum:]]/\\\\&/g' <<< \"$m\")   # quote meta characters for regex
        find -E . -depth 1 -type f -iregex '.*/'\"$mq\"'.[[:alnum:]]+$' -print0 | xargs -0 -J% mv % \"$m\"
    done
    EOF"
    

    For example, given that you choose/path/to/directory in the folder - source

    Input state:

    /path/to/directory/abc.m4v
    /path/to/directory/abc.txt
    /path/to/directory/abcd.m4v
    /path/to/directory/abcd.txt
    

    Status of the output:

    /path/to/directory/abc/abc.m4v
    /path/to/directory/abc/abc.txt
    /path/to/directory/abcd/abcd.m4v
    /path/to/directory/abcd/abcd.txt
    

    Briefly tested under OS X 10.6.8 but no guarantee of any kind. Please make sure that you have a full backup of the original files and directories before you run this kind of script.

    Good luck

    H

Maybe you are looking for

  • How can I take my monitor off mode "Eve"

    How can I take my Q1859 monitor off mode "Eve"

  • FN keys not working not not on my Satellite A100

    I have a Satellite A100 and the FN keys do not work. When I had first of all that they did, I reinstalled everything on the model again and now the working fn keys will be the computer starts but once it is fully initialized they do any work. I use F

  • WDDM service does not

    The message "WDDM Service not responding" lights when the computer is turned on.  problem is, I'm not able to do anything at all.  It disconnect, run analyses, whatever it is.  What can I do to get this puupy moving again. I even tried a system resto

  • FS7610 error creating cluster NAS

    I have one Equallogic FS7610 I am trying to add to my Equallogic Group Manager. It is all fresh out of the box, so I don't have my client network and DNS to the top yet.  I do see the unit and start the wizard to configure.  I can't seem to put in al

  • Windows XP Pro cannot access shares Windows 7 Ultimate

    Delalande