change the name of the file using GREP

Hello

I try to get these lines of code to change the name of file saving;

from: zAlcatraz

to: HAlcatraz

{if (myDocName.IndexOf ('z')! =-1)}

var myRegularExpression = / \ < z/IM

myDocName = myDocName.replace (myRegularExpression, 'H');

}

I try to target just the first z in front of each file name, but can not get the correct grep.

Any thoughts?

Thanks in advance,

GR

Vel code will replace all instances of lowercase 'z' by 'H' capital - even those in the path of the file.

Better try this:

myDocName = app.activeDocument.fullName.path+'/'+app.activeDocument.fullName.name.replace (/ ^ z/i, 'H');

(Looking for the GREP code probably is ' ^'-beginning of the 'line', in this case equal the beginning of the string.)

Tags: InDesign

Similar Questions

  • Can I add date to name the file using burst

    Hi all

    I know that we can add the date to the file using %y and %m %d for

    E-mail
    AT·
    WEBDAV

    But is it possible to add the date to the file name if I'm bursting my file to a shared location.

    I tried this %y and %m %d but it does not work for explosion.

    Please answer

    Thank you
    Ronny

    Raise an SR to support this for the file option
    and
    To work around this problem, change your query bursting enrollment, to_char (sysdate, 'DDMMYYY') for the day, month and year, inorder to add to the file name component.

  • My Windows XP pro would not let me change the option 'Use the home screen', so I removed a vital .dll file. I can't start Windows now!

    My Windows XP pro would not let me change the "Use welcome screen" option under: user accounts/change the way users connect or power off.

    He gave a message to the effect (I forgot to write it!) "a recently installed program does not change this setting. Search in the file named "RtlGina2.dll for a clue. So as silly as I can be, I did a search, finds the file RtlGina2.dll in the Windows/System32 folder and cut and paste on my desk. My thought was to isolate this file to see if it will address the problem of not being able to change the option use Windows screen.

    Now, I can't run Windows! It gives a message that this file RtlGina2.dll is not found! Specifically, it says, User Interface failure. The UI for logon RtlGina2.dll DLL failed to load. Contact your system administrator to replace the DLL or restore the original dll.

    How can I replace the dll if I can't even get started? Help, please! I know just enough to get me in trouble I see.

    WyoPathfinder,
    Are you able to boot mode safe mode with command prompt?  If Yes, then you can search for the file "dir /s /a RtlGina2.dll" lists the location where you moved to.  Then you can just copy (path\filename) c:\Windows/System32\(filename)

    If you do not work in safe mode, then you can boot from a XP disc and go into the recovery console and do the same thing.

    Hope that helps. QQ learn manage!

  • Can I change the file name of the .bar file

    Hello

    I built an application in Release for device mode.  He prodcued a filenamed bb10app.bar. Is it possible to change the file name to tell xyz.bar after it is built.  It is an application internal meaing only avaiable to our staff.  If I do not file name change how will I know what app it is. Given that bb10app.bar seems to be a default file for any application name.

    Thank you

    Joe

    Yes, you can change the file name of the file BAR, just keep the .bar extension and you shouldn't have any problems.

  • How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    I have only:
    D: / images (where are necessary + not need files)
    -a list with only the necessary files
    -a list with new names for the files needed
    Thank you.

    Hi Pustiu,

    Thanks for posting in the Microsoft Community.

    You want to know how to select the files in a folder using a list with the files you want and after that rename only the files using another list with desired new names.

    I would have you post your query in the TechNet forums because it caters to an audience of it professionals.

    Your query will be better addressed there.

    Check out the link-

    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/threads

    We know if you need help. We will be happy to help you. We, at tender Microsoft to excellence.

    Thank you.

  • How can I force change manager type by default file using GPO to all the users in my organization.

    On Windows 8 and above all how to change the file manager by default for a file type on all computers in my organization? Is there such an option available via GPO?

    I know that on Win 8 and above each user can set their default value of file managers using 'Open with' option when they right-click on a file, but I want to substitute their choice and apply by default when file type Manager they identify yourself again. How can I do this via GPO?

    Here are the excellent instructions that I have used myself before:

    How to deploy Windows 8 company type of file Associations

    In the future, you should know that the Microsoft Community forums are not the right place to ask this type of question. These forums are intended for assistance to consumers with their computer questions.

    Microsoft TechNet forums is a better place to get your computer questions.

    Let us know if this solution worked for you.

  • How can I change the file name on the home page?

    I'm changing the file name of the home page...

    I'm on page properties > options > filename... but he is frozen as index.html

    Is there a way to change that and name it something else?

    Hello

    As most web servers consider index.html as the site's home page, the option is grayed out in Muse to rename indexes (homepage).

    How ever, you can go ahead and change the name to other pages in the site map.

    Concerning

    Vivek

  • [Solved] When you change the file type for RAR files, it also changes the file type of the ISO XP files

    I tried to change the file type description, as well as in default and the icon for the rar and iso programs file types inmenu\ tools\folder options\file typest\advanced, but to change the settings on a file type automatically changes settings on the other.

    How can I do this via regedit?  What can cause a bug?

    * original title - xp: types of files RAR and ISO locked together, the same treatment! *

    Hello

    1. How are you sure that you change the individual file extension and not the entire folder?
    2. how exactly you try this?

    To change a name of file, all you have to do is right click on the file, and then click Rename, instead of the path you describe in the thread.

    See also the section below to associate the default program for different file types.
    How to change or choose the program that starts when you double-click a file in Windows XP
    http://support.Microsoft.com/kb/307859

  • Change the file extension

    I use Windows XP Home Edition.  How do you change the file extension when the system cannot open the picture?  It was recorded as "All Files".

    Go to control panel, folder (in Classic view) options, go to the view tab and scroll down to find Hide extensions of known file types.  Uncheck the box and click on the file.  Rename the file and change the file extension.

  • How to add programs to the start of the file using Vista

    How to add programs to the start of the file using Vista

    Hi Harry,.

    Oddly enough, you can actually do it in msconfig except if it is already there and simply not checked as opposed to not being do not at all (although you would think that they would understand this option).

    The easiest way is to add the program (or a shortcut to the program) in the folder all Menu Programs Startup.   Here is the procedure: http://www.ehow.com/how_5098465_add-startup-programs.html.  Remember, to do this, you must either a shortcut existing (perhaps on the desktop or elsewhere in the menu all programs) or you need to find the source file (probably somewhere in C:\Program Files depending on what you want to add) and either copy it and add it to the startup folder or right-click on it and create a shortcut to copy into the startup folder.  Once you reboot, this program starts during the initial commissioning process and you will now be able to control using msconfig.exe, if you wish.

    Another option is to do this by using the registry editor.  If you decide to try this, first create a restore AND system restoration point backup of the registry before you begin.  Here is the procedure: http://www.ehow.com/how_7304438_add-program-msconfig-regedit.html.  I recommend to use this ONLY if the previous procedure does not work for some reason any as long as that the procedure is simpler and safer.

    If you want a simpler way to manage and control startup programs, you can try it free WinPatrol http://www.winpatrol.com/download.html that change monitors for startup programs if you set it to run in real-time so that you know when to try new programs are added to your Start menu and, for the purposes of this question includes an Add button which opens a link to a window of Windows Explorer where you can browse the program you want to add, click open to select and then add it directly to the commissioning.  If you prefer it does not work all the time, you can simply uncheck the box which includes this program and it will work only when you choose to run (but at the start, will work as an indication otherwise or configured).  It will appear not in the start menu in all programs (Finally, WinPatrol is, but not programs, it adds to the start), but it will appear in WinPatrol (which also lets you manage what you want or not start with checkboxes as in msconfig) and sure in msconfig - but only after a reboot is complete the process of adding.

    I hope this helps.  Personally, I use WinPatrol myself and let it run in real time.  Since I do a lot of installations, it helped me often prevent the addition of a startup item I haven't really need and reduces how many times I actually need to check what is happening out there.

    If this answers your question without the need to repost in another forum, please mark it as an answer.  If this isn't the case, then of course you must republish as suggested above.

    Good luck!

  • How to change the rendering used for video playback in Windows Media Center Version 6 engine

    I usually use other media players, but I would like to first of all using Windows Media Center. However for the moment video playback is not good because of the weird colors (everything is displayed in black and Red instead of normal colors). When you use other media players, I use the Haali rendering engine which gives good results for video playback.

    Can you tell me how to change the rendering used by Windows Media Center?

    Also, I noticed the same weird color effect in Windows Media Player 11.

    Hi Woobee,

    1. What is the brand and model of the computer?

    2. what graphics card use on the computer?

    If you are using an Nvidia graphics card on the computer, in the Nvidia Desktop Manager, you will find an option for saturation to ensure it is set to 100%.

    And if you are any other graphics card on the computer and search for a similar option for saturation.

    If the previous step fails in Windows media player, so be sure that the hue and Saturation are defined by default.

    1. click on the arrow on the tabplaying , point to enhancements, and then clickcolor picker.

    2. do one of the following:

    1. to return to the default color, click thereset link.

    Also, make sure that the video settings are set by default.

    1. start the playback of a file.

    2. click on the arrow on the tabplaying , point to improvements, and then clickvideo settings.

    3. click onreset.

    Check also in Windows Media Center if the

    1. on theStart screen, go to tasks, click settings, clickgeneral, then Visual and sound effects.

    2. undercolors ensure that Windows media center standard is enabled.

    Turn off Visual and sound effects in Windows Media Center

    http://Windows.Microsoft.com/en-us/Windows-Vista/turn-off-Visual-and-sound-effects-in-Windows-Media-Center

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • How to get a list of paths for all the files used in a project

    I have a CC Pro first project that has a large number of bins.  A sequence in one of these bins uses files of the other tanks.  I'll try to find the locations of all of the files used in the project.

    (1) obviously I can select each item in the timeline and display in the finder, but there are a lot of clips

    (2) the use of the video associated with each file in the project would help.  However

    1. I have not found a way to display only the clips that have the use of the video if all locations have not been developed.

    2. use video shows its use for all sequences, so it should be manually checked traction towards the bottom for each file see if it is used in the sequence in question.

    (3) I tried to export the project to the final cut pro xml.  The url path gives me the information I need.  For some reason, however, when I do the single export item information are here, not the information for all the other elements of the project.

    (4) I got tired of export for speedgrade, and all file names are there.  However, the railways are not.

    Basically, I want to find all the files in the project and transfer them to a specific folder for this project.  There must be a way to do this, but I'm not...

    You can import the sequence in a new project and then use the project manager to make them all together.

  • I changed my password of gmail e-mail. How can I change the password used by Thunderbird to connect to gmail.

    I changed the password used to access my gmail account. Thunderbird still uses the old password to access the account. How can I change the password that is using Thunderbird. The last time this happened I ended up creating a new account to Thunderbird for gmail. Create the new Thunderbird account at least let me enter the new password. I don't really want to have three accounts of Thunderbird for the same gmail account.

    Please do not respond with suggestions on using password manager. I do not use it and do not want to start. I looked, and none of my Thunderbird passwords are displayed here. All I want to do is change the password in Thunderbird. If Thunderbird does not have a feature that allows you to change passwords, should be added.

    The link posted by Christ1 gives WRONG directions. In Thunderbird 24.4.0, is:
    Tools, Options, security, passwords, saved passwords

    Admittedly, in fact, you want that he SHOWS you the passwords, and then you can delete them.
    Once fact you check for mail, it will tell you, it didn't, and then you have the option to enter a new password.
    MUCH too complicated. Time to put the password and the ability to change, in the e-mail account options.

  • How will I know if my Airport Extreme has the latest firmware?  And (not related) how to change the password used to connect to my network?

    I think I bought the latest version of Airport Extreme.  It is the unit which is rectangular, is about 6 to 7 w., etc.  I have some basic questions that I do not understand:

    1. How will I know if I have the latest firmware for this device?  I read a few posts that make it sound as if it was just automatically updates.  Is this true?

    2. can someone tell me how to change the password used to connect to my wireless network?

    Thank you very much!

    Chris

    If a firmware update is available, AirPort Extreme flashes orange.

    The most up-to-date version of the firmware is 7.7.3.

    You can see what version you currently have the following on your Mac...

    Open Finder > Applications > utilities > AirPort Utility

    Click on the image of the AirPort Extreme

    Look for the Version

    If the new firmware was available, you will see a button update here

    To change the wireless network password...

    Click on edit in the window smaller than you watched just to check the firmware version

    Click on the Wireless tab at the top of the next window

    Go back / change the wireless password and enter a new password

    Do the same thing to check

    Click Update at the bottom right of the window and give the airport a minute full for restart

  • Change the headings used in Command Center?

    I was wondering if there is a way to change the elements used in the command center? For example, to replace the calendar with something else.

    Thank you

    There is currently no way to change the applications that are launched via app Droid Turbo command center. The clock, batteries and the Accu Weather apps are the main applications, and calendar via the "Pop out" are the only ones available.

    There are other applications on the game you might like better as the "Rings Digital Weather Clock" you might find more functional for a particular use from you.

    I hope this helps!

Maybe you are looking for