Find the job number in the path of the file

Hello

I need to find the Job only stored in the variable number.

In the path of the file below, I need only the number of 8 digits (98456357, 88456656, 98456357)

Path of the file sample are below:

/Users/shared/Siraj/98456357_Octt/ENL.indd

/Users/shared/Siraj/88456656_Octt/document/PHL.indd

/Users/shared/Siraj/98456357_Octt/document/check/PHL.indd

var CheminMonFichier = app.activeDocument.filePath

Thanks in advance

Siraj

Hello

Here is an example of what we can do with a regular expression

var myPath ='/Users/Shared/Siraj/98456357_Octt/Document/Check/PHL.indd';
var mJobNumber;

var reg = /(\/)([0-9]{8})(_)/;

if (myPath.match(reg)){
    mJobNumber = RegExp.$2;
    alert(mJobNumber)
}

Concerning

Tags: InDesign

Similar Questions

  • Photosmart C4780 installation fails at the "system cannot find the file specified."

    My problem began simply with your printer, a HP Photosmart C4780, who has always had a wireless connection and would not print.  Initially, the checked network connection fine control panel of the printer.  I ran a Microsoft printer troubleshooting, which found a block in line print and authorized.  The first test page print, but did print the "internal test page.  I did not understand what it meant, so I looked for help on the HP site.

    I ran the HP print and Scan Doctorand he suggested I have reinstall the driver.  I have downloaded and saved the current HP (PS_AIO_06_C4700_USW_Full_Win_enu_140_175.exe) and then uninstalled the existing driver.  When I tried to install a new, a window pops up saying "the system cannot find the file specified," with only a single box for click that simply says "OK".  The installation went through 'examining installation options', after entering "check updates, download updates, install updates" and then it was all in "audit system", who jumped out of the window "file not found" upwards, and when I clicked 'OK', the installation window as well as the error message box simply disappeared.  Which I suppose is the path to the file is under the window, but it didn't fit so he showed not the end.  What I read was "C:\Users\... \Local\Temp\7zS588E\Setup\.\Setup\hpzpnp40...»

    I found a topic on the same printer model for the same problem in the forum, which offered this hotfix:

    You must first complete a level 3 of the software uninstallation. I've included the steps below to do this.

    1. press the Windows key and the letter R
    2. type %temp%, and then click OK
    3. open the 7z folder (a more recent if there are multiples)
    4 open the util folder
    5 open the folder of the ccc
    6. double-click on the Uninstall_L3

    Once you have completed the Uninstall_L3, delete all of the items listed in the temp folder. Note, you will not be able to remove all the elements, please ignore those that do not. Then please empty the trash and perform a clean boot. I've included the document «How to perform a boot in Windows» If your computer does not request it, restart your computer.

    Once your computer is back, you must reinstall the printer software. You can do this either by using the Setup CD, or by downloading the software.

    I did what was suggested, until he got to the point where it says it was the case recommend not removing any more items if I had intended on using the HP Officejet printer (Yes, I have a second HP printer connected to the network) anytime in the future.  Not really understand how it all works, I decided to stop what I was doing, so unfortunately it has not solved my problem.

    Do I need to uninstall both printers HP before I can reinstall a?  And if I do that, is there a reason that I wouldn't be able to reinstall the two printers?  Looks like I'm asking trouble.  Bottom line... I can not install the driver.

    I tried to install the full versions and the driver base and still get the same result.

    I have a HP Pavilion dv6 - 3100t for computer laptop, running Windows 7 Edition Premium, version 6.1.7601 family service pack 1 64-bit.  I have not installed new hardware or software.  This printer has always had a wireless connection.  The router I'm using is a Netgear 54Mbps WGR614 v6 (provided by my cable company) and the network includes not only my laptop and the Photosmart printer, but also desktop ASUS, HP printer, an Officejet 6300 series (used only for printing graphics and photos via a wired to the router) and a chip on Vizio TV.  I use Norton 360 first Edition and disabled the antivirus auto-protect when I downloaded and tried to install the driver.

    Help, please!  And thanks in advance for your time and your attention.

    Oh, Jamieson, it worked!  I can print again!  A massive amount of thanks and congratulations to you.

    I couldn't believe it when he actually passed the point where it normally would stop the installation, but then almost at the end, upward jumped «Fatal error during installation»  My excitement sank into a depression.  He said while the installation was not successful and he needed to collect information in order to diagnose the fault.  I looked at what has been collected, and it was more or less gobblety-* beep * for me.  There was a code of 19714722 error condition, if that means anything.

    Then he placed on my desk, the "Error of Installation HP - Windows 7.hta" file and instructed me to do away with the current window, restart, and then open the file and move forward with these guidelines.  I did and he basically had me to restart the computer once again, and then turn the printer off, unplug the printer, then unplug the router, wait 30 seconds and then plug the TAA - DAA and back in, I'm back in the business of printing.

    Thank you very much for your time and patience.

    All the best to you and yours!

  • My Outlook Express gives me an 0x800C0133 error. Impossible to delete my messages from the Inbox. Also, I don't find the file indox.dbx.

    I read the post on the copy the messages from the Inbox to another folder.  I tried, but get an error message.  I decided that I would just delete all but the messages will not delete.  I used the search function of windows to search for inbox.dbx, but he could not find the file.  I have a large number of messages in my Inbox and its ok if I lose all.  I get the error message when I start outlook express and download messages from my pop3 e-mail.  It still downloads messages from one of my other emails which is also a pop3 server.  I have windows xp pro and it is completely up to date.  Thank you...

    Hello craigalene,

    This issue may occur because of corrupted inbox in Outlook express.

    Perform the following troubleshooting steps and check if this solves the problem.

    Step 1:

    Create a new folder and move all mail from your Inbox to the new folder in Outlook Express.

    Follow these steps:

    a. click on the file menu.

    b. Select the folder and select new.

    c. give an appropriate name for the folder.

    d. Select all mails in the inbox and move to a different folder.

    e. move mail to the new folder.

    Step 2:

    I suggest to delete the Inbox.dbx file in your computer.

    In Windows XP Outlook Express files user (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under Start, Control Panel, Folder Options and view.

    Follow the steps to delete the Inbox.dbx file.

    a. close Outlook Express.

    b. use the search option to find the box of Inbox.dbx.

    c. delete the Inbox.dbx file.

    Note: Another will be created automatically when you open Outlook Express.

  • What is causing the error event ' BCM42RLY service failed to start due to the following error: the system cannot find the file specified "Event Id 7000

    What is causing the error event ' BCM42RLY service failed to start due to the following error: the system cannot find the file specified "Event Id 7000

    Hello

    1. Since when are you facing this problem?

    2. What is the number of brand and model of the computer?

    3. have you made changes on the computer recently?

    BCM42RLY is a Broadcom network card driver. I suggest that you uninstall and reinstall the drivers and check if it helps.
    Uninstall or reinstall a device: http://technet.microsoft.com/en-us/library/cc725782.aspx

    Hope the information is useful.

  • Director of Windows can not find the file

    I made a presentation / film in windows movie maker, and it worked fine.  Then when I went to access the movie a month later, all photos in the film are absent, and the Director of windows message can not find the file you want to locate the file... There are a lot of pictures, I don't want to go to each of them... What's happening on why it does not find the photo files now?

    I made a presentation / film in windows movie maker, and it worked fine.  Then when I went to access the movie a month later, all photos in the film are absent, and the Director of windows message can not find the file you want to locate the file... There are a lot of pictures, I don't want to go to each of them... What's happening on why it does not find the photo files now?

    =============================
    The source files have been moved or deleted?
    The only records of the files project makes it the path...
    check the source file.

    If you navigate to the folder, they are saved in...
    the path must be restored. You should not
    to go to each photo. John Inzer - MS - MVP - Digital Media Experience - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • The system cannot find the file specified__' MOM. Implementation

    Could not load file or assembly ' MOM. Implementing version = 2.0.3182.4658, Culture = neutral, PublicKeyToken = 90ba9c70f846762c' or one of its dependencies. The system cannot find the specified file

    original title: the system cannot find the file specified__How can I fix it?

    Which is the EXACT content of the message - if not, what does it mean EXACTLY?  When this error happen?  It never happened to you before, and if so why and how is it resolved?  How many times this error happen?  What do you do when this error occurs?  When this error did first start occurring?  Did you recently (past few weeks before this problem started) any additions or deletions to ANY software or hardware (including updates) - if so, what these changes?  Which version of Vista you are using (for example, 32-bit Vista Business SP2)?  Try to intall something (perhaps a Dell Dock or an ATI Catalyst converter)-if so, what exactly (hardware or software - manufacturer, make, model, version) and at what point in the installation process the error occurs?  What is the manufacturer, brand, model and serial number or product Tag of your computer?

    I need your help to help you.  I'm not here with your computer, so I don't know what I'm dealing with other than what you provide me. Please reply with answers to ALL the above questions, then I can understand the situation better and perhaps arrive at a recommendation (or perhaps more questions or maybe even a proposed solution).

    Thanks and good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Error: Cannot run program "jar": CreateProcess = 2 error, the system cannot find the file specified

    Hello

    My apps works very well for the current code, but if I add a new function or class in my eclipse application code indicates the error of

    Error: Cannot run program "jar": CreateProcess = 2 error, the system cannot find the file specified

    I searched the forum and google for this problem, certain solutions are related to java path but myjava path is ok as the current code works very well

    So what problem here? and whats solution for that?


    has got the solution to the problem of its need for .jar files path previously I did not understand why he neede path of pot now his reason is here

    http://supportforums.BlackBerry.com/T5/Java-development/I-O-error-cannot-run-program-quot-jar-quot-C...

  • IO error: C:\Users\Shravan\AppData\Local\Temp\widgetGen.13585025011375276733210. tmp\sampleapp (the system cannot find the file specified) [ERROR] CAP exception has occurred

    C:\Program search in Motion\BlackBerry 2.3.1.5 > bbwp SDK WebWorks
    C:\apps\sampleapp.zip o C:\apps\Output2
    [INFO] Parsing of the command line options
    [INFO] Bbwp.properties analysis
    [INFO] Validation of archive application
    [INFO] The analysis of config.xml
    [WARNING] Cannot find an element of
    [INFO] The application of filling source
    [INFO] Compilation of application BlackBerry WebWorks
    IO error: C:\Users\Shravan\AppData\Local\Temp\widgetGen.13585025011375276733210
    . tmp\sampleapp (the system cannot find the file specified)
    [ERROR] CAP exception has occurred

     

     

     

    How do I solve this problem

    The tools are not compatible with JDK7. You need to install JDK6 and it must be the 32-bit version.

    If you have several versions of the JDK, you can modify bbwp.properties in the subfolder bin of your SDK WebWorks to include the following text:

    C:\Program Files (x86)\Java\jdk1.6.0_31

     


    You would update the JDK version to match your own, but note that this is the SEO Program Files (x 86); the path 32-bit installations. This way you can have several JDK if you need, but the command bbwp must reference the appropriate JDK.

    In short, he must be JDK6 and it must be 32-bit.

  • How can I recharge my favorites if I can't find the file "date.json" in my backup?

    My hard drive crashed and everything had to be recovered and reinstalled. I have a data folder Firefox but can not find the file "date.json" which is indicated to open the troubleshooting instructions. Y at - it another option?

    Hello

    If you have the latest version of Firefox, the file places.sqlite is what keeps your bookmarks. See the article for recovery of data from an old profile for more information.

  • I upgraded my computer, the new operating system on a new hard drive. Want to get my favorites on Firefox off my old drive, but can't find the file.

    I upgraded my computer, adding a second hard disk for a new operating system and kept the old drive as a data disc. I assumed that I could install Firefox on the new disk and import my favorites from the old installation of Mozilla on the old disk. I can't find the files on the old drive with my favorites. They're still here, or when I reinstalled Firefox, I lost everything even if it was on another drive? I can't find the backup on the old disk files and want to restore my old favorites. Is it possible to do this?

    You must find your profile folder in the old drive, the way in which must be:

    1. First display the hidden files and folders:

    2. Then go to:
      • < old drive >: \AppData\Roaming\Mozilla\Firefox\Profiles \Users\ < username >
    3. Enter in your profile, and then enter the folder bookmarkbackups .
    4. Copy the latest file from json (backup of bookmarks)
    5. Then restore from them:
  • I want to update my firefox so I downloaded ver 22. When I run the file it says "can not find the file to archive" Pl. help

    Extraction failed - cannot find the file to archive

    Hello, is it possible to update of in firefox by going to firefox > help > about firefox? which should trigger a search for an update & apply automatically...

    Update to the latest version of Firefox

  • Unable to find the file userChrome.css customization of Firefox. I just installed 20.0.1 firefox browser. You want to disable/remove the navigation bar. Pls Hlp

    Unable to find the file userChrome.css customization of Firefox. I just installed 20.0.1 version of the Firefox browser.
    I want to disable/remove the navigation bar of the browser window, making the browser works like the kiosk mode.

    Help, please

    Thank you
    Vishal.

    your profile folder is a subfolder of C:\Documents and Settings\XXXXXXX\Application Data\Mozilla\Firefox\Profiles\ and something like < randomstring > .default label - folder chrome with the userChrome.css file must go in this folder .default < randomstring > .

  • Mini 101NR - restore to fail, error message "cannot find the file.

    While restoring my Mini 1010NR with 8 GB SSD from the disk of XP SP3 operating system, everything fine until partially through the recovery an error message saying that it cannot find the i386\ASMS file.

    I tried the options "install fresh copy" and "repair" and get this same error message in both directions.

    I formatted the SDS with both regular and quick NTFS file system. My OSD software gives me the possibility of formatting of the SDS with fat? I have not tried. That I should?

    I looked at the CD, and in the i386 subdirectory, I see a subdirectory called ASMS. I see several subdirectories in this directory.

    I am booting from an external CD/DVD drive. This seems correct, as the installed much restoration program file until stopping in the message saying that it couldn't find the file ASMS.

    This OSD provided with the computer when I bought it new at HP.

    Thank you

    Peter

    The cd is corrupted or damaged or installation loses communication with the CD-ROM drive. If you can, try another cdrom drive.

    http://support.Microsoft.com/kb/q311755/

  • Update iTunes errors, can not find the file iTunes6464.msi

    Try to update iTunes on PC.

    Windows 7 (64-bit) with Intel i5 processor.

    During an update of base, update errors trying to find the file "iTunes6464.msi" he says is not available.

    I tried to delete all the software Apple on PC, but the file final iTunes will not uninstall because of the same file.

    The new apple software download now error with the same error.

    How can I solve this problem?

    For general advice, see troubleshooting problems with iTunes for Windows updates.

    Start by missing error MSI.

    The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach.

    Review the other boxes and other support documents list to the bottom of the page, in case one of them applies.

    More information area has direct links with the current and recent buildings if you have problems to download, must revert to an older version or want to try the version of iTunes for Windows (64-bit-for old video cards) as a workaround for problems with installation or operation, or compatibility with QuickTime software or a third party.

    Backups of your library and device should be affected by these measures but there are links to backup and recovery advice there.

    TT2

  • I need to get the bookmarks from a backup hard drive that the system failed on. were can I find the file/folder of bookmarks?

    I need to get the bookmarks from a backup hard drive that the system failed on. were can I find the file/folder of bookmarks?

    User Agent

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729 .NET CLR 3.0.30729; NET4.0C; Media Center PC 6.0)

    Bookmarks are stored in a file called places.sqlite in the profile folder.
    To find out where the profile folder, see http://kb.mozillazine.org/Profile_folder_-_Firefox

  • I can't access firefox, everytime I try I get that windows does not find the file, I tried it redownloading but he still gave me the same message?

    I can't access firefox, everytime I try I get that windows does not find the file, I tried to download again, but he still gave me the same message. the problem has nothing to do with my internet because it freaks on the internet explore and everythign is fine, just my computer can not access firefox for some reason any. I tried uninstallign it and then install again, but that did not work, I tried to install a different version and it still doesn't work.

    yesterday

    User Agent

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; MSDigitalLocker; FunWebProducts; GTB6; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322; OfficeLiveConnector.1.3; OfficeLivePatch.0.0 .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

    I'm sorry, but you have not answered my questions.

    (1) on the last stage Setup lets you start Firefox, if you keep all of the checkbox "Launch Firefox now", turns on Firefox when you click on "Finish"?

    (2) how did you launch Firefox when you receive the error message? How do you 'by clicking on the freshly installed target Firefox.exe?

    (3) what is the exact error message? (Post a screenshot if you cannot re-type precisely). Text you have posted it lacks an ending quotation mark and does not resemble any message I know.

Maybe you are looking for