How to replace the Losing fonts with scrip in photoshop,by script

Frequently,I Receive some PSD files, It is did by Other people.
When I open it with my computer,I find it missed a lot of fonts.
Some times,I have this fonts, but the name is not  like with the fonts of the PSD file.
So,I need to replae the Losing fonts, but it  always have a lot, It wast my much times.
In Indesign, it is Very easy~~
Could you help me Achieve it by scrip in Photoshop?
Thank you very much

Hi Sridhar,
I would like to Replace the Charecter values with numeric value in my string.
Exp : first in my string I am having the value like this : 'ABCD1234' ( may be any char and num values ), and I want too get it by '99991234'.
So, if i understand you correctly, you want to replace all characters in a string with 9 as in the above example, irrespective of position of the character, if so try with the below code.
DATA: l_str TYPE string.
l_str = 'ASKHSIUDNSBDKJSDH124312431243124saasdfsf'.
REPLACE ALL OCCURRENCES OF REGEX '\D' IN l_str WITH '9'.
IF sy-subrc EQ 0.
  WRITE: l_str. "Result will be 9999999999999999912431243124312499999999
ENDIF.
Regards,
Chen
Edited by: Chen K V on Jun 13, 2011 12:36 PM

Similar Messages

  • How to replace the update staement with a modify statement

    how to convert this update stat to a modify stat?
    Message was edited by:
            Ashwin A

    Hi
    MODIFY <DB TABLE> FROM <INTERNAL TABLE>
    To insert or change a single line in a database table, use the following:
    MODIFY <target> FROM <wa> .
    The contents of the work area <wa> are written to the database table <dbtab>. The work area <wa> must be a data object with at least the same length and alignment as the line structure of the database table. The data is placed in the database table according to the line structure of the table, and regardless of the structure of the work area. It is a good idea to define the work area with reference to the structure of the database table.
    If the database table does not already contain a line with the same primary key as specified in the work area, a new line is inserted. If the database table does already contain a line with the same primary key as specified in the work area, the existing line is overwritten. SY-SUBRC is always set to 0.
    A shortened form of the above statement is:
    MODIFY <dbtab>.
    In this case, the contents of the table work area <dbtab> are inserted into the database table with the same name. You must declare this table work area using the TABLES statement. In this case, it is not possible to specify the name of the database table dynamically. Table work areas with the same name as the database table (necessary before Release 4.0) should no longer be used for the sake of clarity.
    Reward points if useful
    Regards
    Anji

  • Looking to find out why icons appear for only certain bookmarks and how to replace the dashed rectangle with a valid icon in those cases.

    As the question explains, some of the icons for visited sites appear only as a dashed rectangle. There are several bookmarks that have been successfully imported from an html file and a few of them have no icon showing on the Firefox toolbar or bookmark list yet they did on the original browser where they wre imported from. Typically, the icons will "fill in" when each of the imported sites are visited some some do not regardless of how many times visited.
    I have checked to make sure that the fonts and colors are being selected by the site/server so that is not the problem.
    Although it is a somewhat cosmetic feature (navigation works fine, just no icons), the icons make site recognition much faster visually, making browser that much faster and easier on the eye.
    Any help to resolve this issue would be greatly appreciated for a "second-time-around" Firefox user.

    The reloader did the trick! Not sure why it took the add-on to get the correct favicon but problem solved, easily and quickly. I'll be sure to recommend the Firefox/Mozilla Support Forum to friends that use the browser. Thanks!

  • How to replace the root tag in ABAP Mapping

    how to replace the root tag with the certain string in ABAP Mapping
    just like
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
         <name>Lawrence</name>
    </root>
    into
    <?xml version="1.0" encoding="UTF-8"?>
    <myRootElement>
         <name>Lawrence</name>
    </myRootElement>
    i don't want to implement it in message mapping
    please give me the sample code
    thanks in advance

    Use below code
    odocument = ixmlfactory->create_document( ).
    msgtype = odocument->create_simple_element(
    name = 'myRootElement'
    parent = odocument ).
    Thanks
    Praveen

  • How to replace the certificate of Cisco 2106 wireless LAN controller for CAPWAP ?

    I have interested in CAPWAP feature and I download the open capwap project to make Access Controller (AC) and Wireless Terminal Point (WTP). I had built the AC which used PC and WTP which used Atheros AP. The CAPWAP feature work well when I enabled the CAPWAP that used my own AC  and WTP. When I got the Cisco 2106 wireless LAN controller (Cisco WLC), I configured the Cisco WLC to instead my own AC but I got the authorize fail in Cisco WLC side. It seem the Cisco WLC could not recognize the CAPWAP message which sent form my own WTP. I think this issue just need to synchronize the certificate between Cisco WLC and WTP.So I need to replace the Cisco WLC's certificate manually. Does anyone know how to replace the certificate manually with Cisco WLC ?
    Best Regards,
    Alan

    Unfortunately this Support Community is for Cisco Small Business & Small Business Pro product offerings.  The WLC2106 is a traditional Cisco product.  You can find this type of support on the Cisco NetPro Forum for all traditional Cisco products.
    Best Regards,
    Glenn

  • Replace the standard page with the customised page.

    how to Replace the standard page with the customised page.?

    Hi,
    I am not cleared with your requirement. However u can try this:
    Check if your standard page is attached with some function.
    You can then create a new custom function, attach that with the same responsibility as that of standard one. Thus u can access your custom page.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I no longer have access to system folders that allow me to remove old or incorrect PAGES templates. Need to find out how to do that. The only way I can do it now is to blank the template and replace the bad template with a blank.

    I no longer have access to system folders that allow me to remove old or incorrect PAGES templates. Need to find out how to do that. The only way I can do it now is to blank the template and replace the unwanted template with a blank. It was previously possible to go to MY TEMPLATES and remove the unwanted templates. I don't if this issue is before or since installation of 10.8 (a nightmare in my case, which led to significant failure issues).  And because I haven't tried to remove templates since finally managing to install 10.8 (now at 10.8.4), I don't know if this is typical of the newer OS or a problem. I've been a Mac user for more than 25 years, but I think I'm nearing the end of the road. By the way, I've never needed to do this before because the manuals always offered an answer... they don't seem to do that anymore. In any case, I don't know how this works... I'd prefer an email reply if that's possible. But that would probably be too easy, and I don't know how to get a reply.

    Thanks, I appreciate the help.  I think this is one of the problems Apple is creating by changing the OS so often. I had fomer colleagues at [a major aerospace contractor] who told me that so many original files were ultimately lost because of the deadly change in the "Save As" operation that they are now afraid of every OS update. Apple has badly damaged their support base with that very prominent company (they won't update now until they've fully examined and understand changes in the pre-conditioned nature of OS computer functions), and they are a whole lot less enthaled with Mac-related equipment/software. Can't blame them, I too used orginal files that way (as easy-to-use templates), and lost some important files before I realized what was happening (to late to revert). Companies should not have to retrain employees each time an OS gets an update, it's can be very expensive several different ways. They learned a painful lesson with that one. And because I'm now retired and don't use multiple devices, I need iCloud like I need a hole in the head... but I'm told there's no way to keep Apple out of my computer. Fortunately, because of major problems when initially installing Mountain Lion, one hold-over of the hardware/software damage I experienced was that iCloud can no longer access my computer even though everything else is working fine again. That was the only "good luck" I had as a result of that expensive nightmare.

  • I downloaded CS6 Red Plug-In and added to Package Contents, replaced the current files with the new without backing up, now my RED footage thumbnails and color-correction don't WORK! How do I get my old importerRed file back!!?? HELP!

    I downloaded CS6 Red Plug-In and added to Package Contents, replaced the current files with the new without backing up, now my RED footage thumbnails and color-correction don't WORK! How do I get my old importerRed file back!!?? HELP!

    Try asking in the Premiere Pro  forum seems to be an Adobe Lab for Premiere Pro

  • Since I am writing the book in Italian,how can I replace the word CHAPTER with CAPITOLO ?

    Since I am writing the book in Italian, how can I replace the word CHAPTER with CAPITOLO ?

    I think you need to run iBA in Italian so the templates are in that language.  You can do that by switching your OS X to Italian and then reopening iBA or perhaps by using this app to just change the iBA language:
    http://www.tj-hd.co.uk/en-gb/languageswitcher/
    see also
    https://discussions.apple.com/message/20745332#20745332

  • Replacing the ul bullet with a character (no image)

    Can this be done? All the tutorials I've found via Google explain how to replace the bullet by an image. I'm looking to replace it with a character (like ★ or ♬)

    Yes. You could do this with the CSS before selector and HTML special characters.
    http://designshack.net/articles/css/the-lowdown-on-before-and-after-in-css/
    You need to use an utf-8-charset
    ul li {list-style:none}
    li:before {
    content:'\266b';  /**musical note**/
    padding-right: 12px;
    font-family: Times, serif;  /**for consistency**/
    Nancy O.

  • Replacing the glossy screen with a 3rd party anti-glare or matte

    I had my credit card ready to purchase 2 iMacs (finally rplacing our two G5's), until I realized that the anti-glare option with the 15" and 17" MBP would not be carried over to the iMacs. So I was wondering if anyone know of a third party with an option to replace the glossy screen with either a matte or an anti-glare screen. Would this void any warranty?

    Open letter to Apple:
    Let me first say, I'm a long-time, loyal Mac user (and defender). My first experience with Apple was in elementary school - on the Apple IIE. I created a game using DOS code in grade 5.
    My father was a high school teacher and brought home a Mac Plus when I was in high school. The "Paint" program that it came installed with initiated my humble beginnings as digital designer - even on the small black and white screen, with it's limited capabilities, I could see the potential. We were always a Mac family. When my mother finally retired, I talked her into getting the same 24" white IMac I currently have, because that way I could walk her through the setting up and use of it, and now we can skype each other and it's like she's here in the room with me, not a whole province away.
    I even had a Mac as a single mom struggling as a full time Communication Design student at Emily Carr University of Art and Design. My young daughter and I lived off my student loans, but they weren't enough to buy a Mac, so I asked my dad to co-sign a student line of credit so I could get a Mac to be compatible with the computers at school. This was the only way I could take my homework home and work while my daughter slept. I sacrificed a lot to have a Mac. We sacrificed.
    Skip ahead about a decade, I have my own small graphic design business, I currently have 3 Mac computers: I have a 24" white Imac as my main business tool; I have a titanium laptop for meetings and presentations, and a white Macbook laptop that my high school-aged daughter uses for school and socializing.
    I am now at the point in my growing business that it is finally time to upgrade all of my equipment. I've been excitedly holding out for the newest Imac release. I went in to our local BestBuy a few weeks ago to buy my new 27" fully loaded Imac (hey I've worked hard, why not splurge a little?) As I walked up to the Mac display and finally laid eyes on my long awaited dream machine, all I could see was the shocked and betrayed look on my face reflected in the shiny surface of the screen. I nearly cried, I was so disappointed. All I could think was "How could you? "
    What is the point of having the shiny screen? I feel so betrayed, so foolish, for sticking with Apple through thick and thin for nearly a quarter of a century. I have invested thousands and thousands and thousands of dollars in Apple products, peripherals, and MAC compatible software for all of my Macs. Adobe CS3, Microsoft Office, 3rd party applications, Mac compatible fonts, and even games. I have purchased protection plans, extra RAM, home insurance and back-up devices for my Macs. I was invested in you, Apple. So what now? Will my hard earned savings now go toward buying the new PC software needed to convert my business to PCs?
    The graphics industry, for a large part, has kept Apple going all these years. We have paid the premium for our Apples, and we have just been stabbed in the back by Apple. On behalf of the entire graphic design community in North America, Apple, please offer us a matte screen option on all your new computers.

  • How to Change the Default Font in Firefox 4 ?

    How to Change the Default Font in Firefox 4 , for this >>
    http://store2.up-00.com/Mar11/AJG18655.png << ?

    Go to properties first: and set before typing anything in as shown here:
    http://screencast.com/t/ZTgzOTM3Y
    Then right click bring up this menu while inside active field and click on item with arrrow:
    http://screencast.com/t/ZTRjMWRkMzk
    Now what ever you typed should reflect the new Font setting.
    we may be as you say. But then again other people act like whats on the other side.
    We do our best. And if we fall short, well we gave it our best shot.
    Okay. In the interests of being completely clear:
    I have already tried this. Several times. This procedure will change the default for any of the fields that I place by hand. It does not change the default for any of the fields placed by the Wizard. I was unable to find a solution to the problem in any of the manuals, books, or on-line forums, which is why I posted here as a last resort. This leads to two conclusions:
    A. Your advice is incorrect
    B. There is a problem with my installation of Acrobat
    I will assume that A is not the correct conclusion. I will therefore try a re-install of my software to see if this clears up the problem. There have been other issues with other Adobe software on my machine that a re-installed has fixed nicely. Luckily, I don't have to do this at all often.

  • How to change the default font (Noteworthy) in Preview Annotation Note ?

    How to change the default font (Noteworthy) in Preview > Annotation > Note ?
    Thanks for any help guys. Noteworthy is horrible, in my view. But this does not matter. I simply do not want to use it, and woudl be fine with having helvetica back as the annotation typeface.
    Neither is Preview responding to changes I attempt in the type menu, nor did I find an entry when using “defaults read com.apple.Preview” in the Terminal.
    Any idea? Cheers.

    Sorry if this doesn't apply in Mountain Lion (no way to look at ML right now), but I see this in Preview under Mavericks:
    I click the annotation button (circled in red) and draw a box. I can then change the text to any active font using the drop down menu (circled in green).

  • How to embed the needed fonts in a pdf file

    Dear Sir/Mam,
    We had purchased licenced version of adobe acrobat x pro
    We are facing issues while embedding the font in the pdf file
    Please find the below mentioned requirement
    Requirement:
    We have a pdf file (template) with some static images and static text in it
    We need to populate dynamic data in the pdf file for this we may use text boxes
    We need to set the font name for the text box and embed that font in the pdf template (Eg:Font to be used in textboxes is "RotisSansSerif-Bold")
    Queries
    Please let us know how to embed the needed fonts in the pdf file?
    Once user exports the pdf file, even if user doesnot have the fonts installed in his system the text need to be displayed in the same fonts,how to acheive this?Eg:if we define "RotisSansSerif-Bold" as font in the textboxes,after exporting the data the text need to be in the same font.
    Note:
    Fonts will only installed in the application server and not in the client system
    The mentioned requirement need to work on below mentioned specifications
    OS:Windiows-XP,  Browser:IE
    OS:Mac osx, Browser:Safari
    Regards,
    S.N.Prasad

    There is a similar post just a few away from yours. I will suggest what I would try. Open your job settings file (press or print preferred to get all fonts) and then select the properties and the font tab. At your font to the always embed list and you will likely need to uncheck the subset box. Then save your job settings (give it a name that is meaningful to you, you can not use the settings file you started with as they are read only and I do not recommend changing that). Maybe that will do the job. Of course that is for the creation of the PDF, I forgot you were talking about a form. You might check the form field properties, but I suspect you have already tried that. Guess I don't play with forms enough. Others may be by to answer.

  • How to replace typewriter (straight) apostrophe with typographic (curly) apostrophe?

    I have a manuscript I got off the Internet that has a bunch of isn?t's and wasn?t's and the like—due, I assume, to some miscommunication between MS Word's automatic curly quotes and the ASCII limits of ISO Latin 1. I tried doing a find-and-replace to put typographic apostrophes in place of the question marks. Pages found the question marks and put typewriter apostrophes in place of them, though I'd carefully entered a typographical apostrophe ((opt-shift-]) in the Replace field. So I tried again, to replace the typewriter apostrophes with typographical apostrophes. Pages now replaced the few typographical apostrophes I'd manually entered with typewriter apostrophes. Well, at least it's consistent. So far as Pages, Apple's flagship word-processing/page-layout app is concerned, there's apparently no such thing as a typographical apostrophe—something that was understood, as I recall, by the original MacWrite 25 years ago. So do I have to go back to doing all my editing in TextEdit (which seems to be much better at text work than Pages), or can somebody tell me how to persuade Pages to take care of this trifling little task correctly?

    Copy these two paragraphs into a Pages WP document:
    When you?re sleep deprived… parental control of baby?s sleep… meet baby?s needs consistently… respond to baby?s cries…
    "Parents should recognize that having their babies cry unnecessarily harms the baby permanently," Commons said. "It changes the nervous system so they?re overly sensitive to future trauma."
    Open the Find & Replace dialog. Enter Find: ? and Replace: ’ (opt-shift-}). (I.e. replace question mark with typographical apostrophe.) Click Replace All. It should say 5 Replaced. Check any of the replacements by enlarging the type; you’ll see an ASCII apostrophe ['] rather than the requested typographical version [’].
    Then enter Find:  " (space-") and Replace:  “ (space-opt-[), and click Replace All. It will say 1 Replaced, meaning the quote mark preceding "It" in the second sentence (the only quote mark preceded by a space). Enlarge the replacement to see it clearly; it's replaced an ASCII " with another ASCII ".
    So far as I can tell, Pages’ Find-Replace function can't tell the difference between ASCII apostrophe/quote marks and the typographical versions. Maybe it will once you turn on smart quotes in preferences; I haven't tried that -- but then of course you'd get smart quotes when you don't want them, for instance for something to be posted on an Internet forum, which often doesn't understand them. (The problems above and similar, often seen on the 'Net, are due to MS Word's having smart quotes on by default, so unaware users compose material with them and send it out over teh Interwebz, where they sometimes come through correctly, sometimes don't.)
    Try the same experiment in TextEdit; you'll get the requested typographical versions. And so I did, then copied the text back to Pages. Like I said, kinda shoddy for Apple's Pride & Joy word processor. AppleWorks, by the way, does it right.

Maybe you are looking for

  • Accessing *.mdb from java

    Hello, I�m working in an aplicattion (developed under Linux), that reads an access file and update an Oracle Database. It works under Windows, but not in Linux. I can�t install a driver, because I need to be root, so I can�t. Can anyone help me? impo

  • Will it slow down Mac book aluminium with Mountain lion?

    I m very interested with new os of Mountain Lion and i consider to upgrade it. But I really concren about will it slow down my current Mac Book Aluminium? As I have upgraded to 4GB RAM.

  • Can i delete the Previous request and create the new request for loading

    Dear Experts, I use 0FIGL_V40.Cube in my system. These Cube does not contain delta capability.i mean for every time i wil load Full only. Here my question is  the first day  load full load,and second day i want to load the data.But can i delete the p

  • Plant to plant configuration

    Hi guys, Our requirement is that, PO will be placed by Plant-A and Goods are to be received at Plant -B.  Plant A and Plant B belong to the same company code,  But both of them have different purchase organisations. The acceptance of goods, payment e

  • Enable Debug on Startup?

    Hi Everyone: is there a way to configure the J2EE engine to enable debugging on startup? Thanks!