Read the character 3 + 4 of file name and move it to another position

Hello

I need a JavaScript to read the name of my file (I have one for the full filename) and especially the 3rd and 4th position of the file name.

The characters on the position 3 and 4 must be moved to the position just before the extension.

Example:

4 pIN12345.pdf (old name) should be 4 P 12345_en.pdf

Now, I have the following script to extract all pages in an existing pdf file to separate pages with the suffix still before the extension

/ * Extract Pages to the file * /.

var re = /. * \/|\.pdf$/ig;
var filename = this.path.replace(re,"");

{
for (var i = 0;  I < this.numPages;. i++ )
this.extractPages

({
Start: I,.
nEnd: I,.
cPath: filename + "_page_" + (i + 1) + "3_en.pdf".
});
};

Can someone help me to put me on the right track?

It is not related to Scripture, it has to do with the output parameters of the Action...

Tags: Acrobat

Similar Questions

  • What are all the default iOS image (homescreen) files names and directions for all devices?

    There is no conflicting information. What I do is the correct orientation of my splash screen for landscape modes.

    I would like to know the names of files and their respective directions. For example by default - LandscapeRight.png must be an upside? Retorical because it certainly does not work right.

    Haha never mind. 2 problems, I assumed that the image by default - LandscapeRight.png must be returned and I had by default - Landscape.png which is probably not necessary.

    http://iphonedevelopertips.com/iPad/iPad-managing-multiple-launch-images.html

    everything is ok now.

  • Whenever Adobe reader tries to update it is said that the documents is not a valid file name and he ceases to make the update

    Original title: update problems, installation, uninstall, even adobe reader...

    Whenever trying to update my adobe reader it says that documents is not a valid file name and he continues to do the update and says update failed. I can not uninstall. What is happening and how to fix it?

    Hi SMHaney,

    1. What is the full error message you get?

    You can read the following article and try the steps and check:

    How to troubleshoot issues that may occur when you install, uninstall, or upgrade one program on a Windows computer

    You can also check out the following link and check if it helps:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-windows_programs/error-1325-documents-is-not-a-valid-short-file/2d9db4a9-25F3-4563-BDDA-ef71e31f7573

    Important: The above article contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs.

    For more information about how to back up and restore the registry, follow the steps from the link below:

    Back up the registry

    You can also try to create a new user account and check.

    Create a user account

    Hope this information is useful.

  • When I try to use a MS fingerprint reader I get the message "no mapping between account names and security IDS was done."

    Original title: fingerprint digital mapping

    When I try to use a MS fingerprint reader I get the message "no mapping between account names and security IDS was done."

    I tried the fix (http://support.microsoft.com/kb/890737?wa=wsignin1.0) without success.

    Any ideas?

    Hello

    Have you tried to reinstall the fingerprint reader, as mentioned in the previous post article?

    If your computer is on a domain, the question you posted would be better suited for the IT Pro TechNet public. I would recommend posting your query in the TechNet Forums to get help:
     
    For more information, see the articles:
     

    Hope the helps of information.

    Let us know if you need help with Windows related issues. We will be happy to help you.

  • Playlist shows as file names and will not play in the order of songs

    Why did my playlist showing as file names and not using their iD3 tags as they do in my music folder? For example: "Feeder - 03 Helium.mp3" instead of "Feeder - helium" as it should be?

    EDIT: Thanks to bob for the help on this.

    I do not understand why, but I have a playlist in MTP mode folder but in MSC playlist folder disappeared. I just tried to create a playlist in MSC mode folder and put my m3u playlist, he sees the video, but when I choose it it says it's empty...

    Someone please help! I have to use my old 2 GB for my playlists until this issue is resolved.

    EDIT: just redid all my playlists and it works now.

  • Given the file name or path contains Unicode or DBCS characters. Retry using ASCII characters for the file name and path whatever that means? This happens when I publish an OAM

    Given the file name or path contains Unicode or DBCS characters. Retry using ASCII characters for the file name and path

    What does that mean? It happens when I try to publish an OAM for Dreamweaver.

    Also: How can I specify the onboard browser animate? It's just going as far. Are there no preference to animate it dashboard?

    BTW. Just call him edge. Seriously. You call Illustrator draw? Photoshop editing?

    No, my file name is mainContent.oam

    My project name is mainContent.an

    This error occurs when I try to import into Dreamweaver. Sorry, I was unclear about that earlier.

    I thought maybe it was because I had saved my image as a png image. So re-saved as an svg, still get the error.

    Should I have a setting is CC of Dreamweaver that will not? I should try this in Dreamweaver CS6? I might try that next.

    Why is this so difficult program? I know that Flash. I know that After Effects. I can work the chronology part simply awesome. He's still export I have problems.

    On a MacPro, 10.7.

    You are a person of Adobe or simply a beautiful assistance program?

  • The unsaved changes in queue: [File name] save before closing?

    Hello!

    FM 9 on Win 7 Pro.

    I'm a long-time user of FM.

    I am trying to open the files I could successfully open before I left work yesterday. I can open FM and open the books of FM. When I try to open an FM in a book, or an FM file not in a book, I get this message:

    "The unsaved changes in queue: [File name] save before closing? No Yes No Cancel.

    It doesn't matter which choose (Yes, no, cancel), following FM shows this message:

    FrameMaker 9 Application has stopped working. Windows can check online for a solution to the problem.

    Search online for a solution and close the program

    Close the program.

    Details of problem

    It doesn't matter what file I try to open (recently worked on the files and I have not touched it since some time). Same messages, anything.

    I tried to update the book (the update seems to happen), save the changes and then try to open. Same error messages. I had hoped that updating the book would clearly any possible referral.

    I tried several reboots, nothing works.

    Help!

    Thanks in advance for any help!

    Terri

    Since his happens with all files, my suspicion is that your application data are damaged. Try this:

    1. close FrameMaker.
    2. Delete the following directory: C:\Users\[user]\AppData\Roaming\Adobe\FrameMaker\
    3. reopening of framemaker and see if the problem is reproducible.
  • Question about file names and organization

    Background

    I connected my camera to my iMac and downloaded my photos directly into iPhoto without ever thinking about it. I just thought it was the way to do it.  Now that I began to rethink the organization / structure of how I want to drop my photos I find myself with what to do on all my previous photos.

    Question

    I am wanting to rename all the photos of my real FILE NAME to a certain format that I read recently on the subject, and I wonder about how this topic with all the previous pictures I imported into iPhoto.

    Is my only option to EXPORT all of the photos to a certain spot on my hard drive, rename them and then re - import in the iPhoto library, or possibly create a whole new library?

    I understand that the change of name to a photo in iPhoto does nothing for the name of the file on the computer so I'm looking for all of the options that I might have.

    iPhoto v9.5.1

    iMac 27 end 2009

    OS X 10.9.5

    3.06 GHz Intel Core Duo

    16 GB 1067 MHz DDR3

    Is my only option to EXPORT all of the photos to a certain spot on my hard drive, rename them and then re - import in the iPhoto library, or possibly create a whole new library?

    Yes. It's your only option to change the file names.  But here's the thing: If the photo is in iPhoto, then the file name is not just serious. Not at all. Never.

    So it would be totally useless.

    Replace the title by any means, and then if you move ever leaving iPhoto you can export using the title as the file name.

    I don't know what naming scheme you will think, but be sure that it involves no character ' / '. Avoid colon.

  • File name and path to some programs and processes.

    Original title: Windows Vista and XP

    I am looking for more information on the file name and the path in Windows Vista and XP for Task Manager, Configuration utility system, Console Services, computer management, Microsoft Management Console, observer of events, reliability and performance monitor and the Publisher of the registry.

    Hello

    You can find the names of files in this way, C:\Windows\System32 (where C is the system drive).  This applies to Windows Vista and Windows XP.


    File names

    Task Manager - TaskMgr.exe
    System Configuration Utility - msconfig.exe
    Services Console - services.exe
    Computer management - compmgmt.msc
    Microsoft Management Console - mmc.exe
    Event Viewer - eventvwr.exe
    Reliability and Performance Monitor - perfmon.exe/perfmon.msc
    The editor of the Registre-regedt32.exe/regedt64.exe (based on the operating system)

  • Installation of Windows 7 Home Premium 64 Vista Home Premium 64. It hangs on the last part of "transferring files, settings and programs.

    Install Windows 7 Home Premium 64 Vista Home Premium 64.  It hangs on the last part of "transferring files, settings and programs.  Before installation, the installation program tells me Logitech Quickcam 9.0.2 and Mirotune ATSC Capture Device was born to be unintalled.  But neither are installed that I can see.  What can I do?

    so eager to upgrade to Windows 7, it will depend on if the manufacturer of your computer/laptop has windows 7 drivers available for your computer/laptop as to whether Windows 7 will work properly on your machine

    check with them

    and read this

    Windows 7 upgrade advisor

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=1b544e90-7659-4BD9-9e51-2497c146af15

    Windows 7 system requirements

    http://Windows.Microsoft.com/en-us/Windows7/products/system-requirements

  • file .avi and .mov on iMac changed in .m4v when they are copied to the external hard drive. I will be able to open these files on other devices like a Windows PC?

    file .avi and .mov on iMac changed in .m4v when they are copied to the external hard drive. I will be able to open these files on other devices like a Windows PC?

    FWIW, do not change the extensions of file simply by copying the files to an external drive.

  • PowerCLI - there cmdlets to browse the store of data for files/directories and their creation?

    Hello

    PowerCLI - there cmdlets to browse the store of data for files/directories and their creation?

    If Yes, can you please let me know.

    I took a glance at the reference of the cmdlet, but can not find...


    Kind regards

    Dreamer

    You can use the data store provider.

    It is documented in the vSphere PowerCLI Administration Guide that was installed with PowerCLI.

  • When I try to install flash player on my mac, I get to the Panel who asked for my name and my password, and it will not take my password.  tried to change to a new password and the same result

    When I try to install flash player on my Mac, I get to the Panel who asked for my name and my password, but it won't take my password.  Tried to change the password, but same result.  Suggestions?

    This password is presented by your operating system and is designed to prevent you from accidentally installing the software.

    If it comes to your personal computer and you don't need a password to connect to the computer when it first starts, you can probably leave the password blank and click OK to go to this prompt.  If it comes to your personal computer and your normal password does not work, make sure that CAPS LOCK SHIFT is off, and then type the password carefully.

    If this is your work machine and he asks an administrator password, well, you will need to have a conversation with your computer friendly.

  • First character left in file by reading the first line in text file

    When you use the function of reading text from a file file, I noticed that the 1st character is left in the file. I read the line correctly.

    When adding a 2nd line this character is in the file.

    Part vi code is attached.

    Any ideas?

    Thank you.

    Elik

    Can you attach a file of real data and tell us what you mean by "first character". The number of characters per line do you have?

    Can you tell us what you see in the modified file and what you expect to see.

    Everything seems good.

    1. Read you the first line and so the file pointer is just after the first line
    2. You set the size of the file at the end (seems unnecessary, because it does nothing). The file pointer is always right after the first line.
    3. You write the first line you read concatenated with a second line. It will be written on the current file pointer, i.e. after the existing line
    4. The first line is in the file twice, as planned.

    Setting the file size to the 'end' on an existing file does not have something useful. If you want to set the position of the file instead?

    Try to set the file position from and new data will be written at the beginning of the file.

  • 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

Maybe you are looking for

  • What happens to the link to organize the bookmarks in FF4?

    After the upgrade to FF4, I noticed the link to organize the bookmarks is no longer there. Where can I go to organize favorites for example to add a new folder, move sites from one folder to another, etc. ? Using XP sp3

  • Re: There is no driver for the Officejet Pro 8500 for Windows 10?

    Tried to load the complete package of windows 8. did not work.  Tried it on 2 10 Windows - had already installed win10 and the other has been upgraded to win7.  I REALLY need to be able to scan.  Any suggestions out there? Thank you

  • The particular codes within a sequential loop output

    I want to leave the individual codes inside the while loop depending on who achieved the result of the comparison first, but do not know how to go on this issue. Any help or pointer will be appreciated. TNX

  • double session VISA?

    I have a VISA session (for example a session series on COM1) How can I programmatically determine if the session is open? (I see on the screen as an icon appears when a session is opened. What is the representation of this?) -I want to be able to ope

  • Updates still do not download, please help!

    I tried to download the update available - network - Realtek Realtek RTL8101E Family PCI-E FE NIC but when I select it and tap on install, after 1 minute, it shows me that the update failed and there is that an update of windows code 80070103 error h