Script with replace some of the characters respectively

I want to change some of the characters respectively
where error
app.findGrepPreferences = app.changeGrepPreferences = null; 
app.changeGrepPreferences.appliedFont = "Symbol";
app.findGrepPreferences.findWhat =  {"α", "é", "β"};
app.changeGrepPreferences.changeTo = {"à",  "é", "á"};
app.changeGrepPreferences.appliedCharacterStyle = myChar1;
app.activeDocument.changeGrep(); 
app.findGrepPreferences = app.changeGrepPreferences = null;

OK I writed a script
but How can I change the font of "a" character
main ();
function main(){
  app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
  if(app.documents.length >= 1){
                 var myDoc=app.activeDocument;
        editT(myDoc);
    else
  alert("Pleace Open İndesign Doc");
function editT(myDoc)
    var oldA =["a", "b", "c"]
    var newA =["1", "2", "3"]
    var changee =[["a",0],["b",0],["c",0]]
    for (var i=0; i<oldA.length; i++)
        app.findTextPreferences = NothingEnum.nothing;
        app.changeTextPreferences = NothingEnum.nothing;
        app.findChangeTextOptions.caseSensitive = true;
        app.findChangeTextOptions.includeFootnotes = false;
        app.findChangeTextOptions.includeHiddenLayers = false;
        app.findChangeTextOptions.includeLockedLayersForFind = false;
        app.findChangeTextOptions.includeLockedStoriesForFind = false;
        app.findChangeTextOptions.includeMasterPages = false;
        app.findChangeTextOptions.wholeWord = false;
        app.findTextPreferences.findWhat = oldA[i]
        app.changeTextPreferences.changeTo = newA[i];
        changee[i][1] = app.activeDocument.changeText().length;
        myDoc.changeText();
        app.findTextPreferences = NothingEnum.nothing;
        app.changeTextPreferences = NothingEnum.nothing; 

Similar Messages

  • Suddenly some of the characters in mail have turned into 'A's with boxes around them?

    I don't think I changed any settings, but suddenly some of the characters in my emails received have utrned into 'A's with boxes around them. A think the characters that have changed are in italics (see pic below).
    Any suggestions what has gone wrong here and how I can fix it?
    Thanks!

    Back up all data.
    Launch the Font Book application and validate all fonts. You must select the fonts in order to validate them. See the built-in help and the support article linked below for instructions. If Font Book finds any issues, resolve them, then boot in safe mode* (by holding down the shift key at the startup chime) to rebuild the font caches. Boot again as usual and test.
    Mac 101: Font Book
    *Note: If FileVault is enabled under OS X 10.7 or later, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode. In that case only, after running Font Book, launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    sudo atsutil databases -remove
    You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. After running the command, reboot as usual.

  • How do I share the iTunes library with all/some of the other users on the same iMac?

    How do I share the iTunes library with all/some of the other users on the same iMac?

    Check out these articles it may help...
    http://support.apple.com/kb/HT3819
    http://www.apple.com/itunes/how-to/#playlists-shareplaylists
    hope this helps.

  • Yesterday i made some purchases in itunestore. the download went well. till the synch of itunes with ipod. some of the downloaded music did noch synchronize. the message was: the ipod does not support the file format (mp4). strange, right?

    Yesterday 20 november I have made some purchases in Ittunestore. The download went well. Till the synch of itunes with ipod. Some of the downloaded music did noch synchronize. The message was: the ipod does not support the file format (mp4). Strange, right? All the rest of downloaded music items has been synchronised without any problems. What may be the problem?

    For music files purchased via the iTunes Store, Apple has used the following file extensions -
    .m4a unprotected AAC format music files
    .m4p protected AAC format music files
    .m4b protected Audio Books
    .m4r unprotected ringtones in AAC format
    As you can see Apple have never used .mp4 for music files via the iTunes Store.
    For videos Apple use .m4v and these are in H.264 format.
    You could try changing the file extension to .m4a, first then see if it plays on your computer and then try re-synching it.

  • Error Message with Itunes "Some of the items in the Itunes Library...

    Itunes gives me the following message when I hook up my Ipod.
    "Some of the items in the Itunes library were not copied to teh Ipod because they could not be found"
    For some reason my Ipod gave me this message. I went through and recopied my songs from the file on my computer and deleted the duplicates that had issues. Everything works fine for awhile. Then I hook it up again and get the error message again. I am not sure what to do now. Any ideas? Thanks for any help you can give me.

    I got this message regarding my iTunes purchases when I got a new computer. I had to go into the Store/Authorize Computer... menu selection in iTunes and provide my iTunes Store ID and password. Don't know if this applies to you, but it fixed my problem. Even if you aren't on a new computer you might want to give it a try.

  • I created a website with iweb, some of the links do not work on ie

    Icreated a website on iweb, originally had problem with firefox, I was helped and that issue was resolved.  I just discovereded that some of my links within the site are not hot/working.  It seems to be working on safari, firefox and google chrome but not on internet explorer and it is not all the links.  Any suggestions?

    Hmm, okay I'm not entirely sure about this one. I know that a lot of iWeb users say that they have some issues with IE, and I know that lots of shapes and shadows can have an affect on an iWeb site's appearance in iWeb. But it seems strange that it would only happen on that one page, when the other pages are pretty similar.
    I would try the rage software/webcrusher method, as it is possible that if you run your site through webcrusher, it will end up working. That tutorial mentions not having shapes and shadows, but I doubt that's something you'd want to get rid of entirely as that seems to be the bulk of the design, but it's still worth a shot to just optimize the site and see if it works.
    If you need help with it, e-mail rage software and their support guys will be able to lend a hand.

  • BB Link Install fails with message "Some of the installati​on files from the previous versions of the software could not be removed. Make sure that no other applicatio​n is using these files."

    Has anyone seen a solution to BB Link failure with this mode?

    Yes - there was an interval of days between the unsinstallation of the original BBL, when I was not using the Z10. I had resorted to using my 9810 and had re-established my BIS Account. Originally I was not aware that the Z10 caused my BIS Account to go away, so I returned to using the 9810,
    Recently, I went back to reinstall the BBL and considered activating the Z10 again, however now I am unable to install BBL.
    Do you know where I can find the Launch version of BBL? Perhaps reinstalling that will work?
    Incidentally, I had unistalled BB Desktop 7 one time including all recommendations for a clean uninstall and did perform a system scan.
    It may help to mention that I am running VISTA32 business in case that is germain.

  • When i sync my phone with itunes some of the songs always have the sync symbol next to them and are lighter than the others and i dont know how to get rid of them. help please

    when i have synced my phone with itunes there are old songs that i dont want. these songs always have the sync sign next to them but i dont know how to get rid of them, i have event deleted them from my library, my computer and hidden them on i cloud. help please

    Settings/ Music/ Show All Music/ OFF
    There is a parallel setting in Settings/ Videos/ which also includes Videos in the cloud, as well as Settings/ iTunes & App Store/ where you can set both Music and Video preferences.  But you only need to change a setting in one location.

  • I'm having problems with iMovie - some of the video clips are black and can't watch them

    I was trying to view the video clips again in the iMovie folder but they are black now and can't watch them.  How to restore them?
    Thanks

    Try using disk utility to verify/repair you hard drive, Take a look at this link, http://support.apple.com/kb/HT1782?viewlocale=en_US&locale=en_US

  • Difficulties replacing some BC functionality with XI (refer to example)

    <b>Difficulties replacing some BC functionality with XI (refer to example)</b>
    I am transferring all interface processing from BC to XI and am having difficulties replacing some of the current BC functionality.  Please refer to my example below
    <b>Current process</b>
    <b>SAP R/3</b>
    SAP R/3 executes an abap that extracts certain data.  This data is passed via a remote function which is configured to point to Business Connector
    <b>Business Connector</b>
    Business Connector takes control and the relevant package does some internal processing then calls the remote enabled function BAPI_ACC_BILLING_POST
    <b>SAP R/3</b>
    Control is returned to SAP R/3 to post the data and on completion control is returned to Business Connector
    <b>Business Connector</b>
    Business Connector again takes control where some more processing is done to generate an xml version of the data prior to returning control back to SAP R/3
    <b>SAP R/3</b>
    Control is returned to the abap immediately following the call to the remote function and processing completes
    The initial synchronous call from SAP R/3 to Business Connector remains open whilst Business Connector executes a subsequent synchronous call to SAP R/3.
    Finally the initial synchronous call in SAP R/3 completes
    <b>Proposed Process</b>
    I am transferring all interface processing from BC to XI and am having difficulties replacing some of the current BC functionality.  In this instance I can set up the initial synchronous call via an XI Integration Process (sync/async bridge).  This allows me to perform subsequent asynchronous calls prior to closing the synchronous bridge
    I have successfully performed synchronous calls to SAP R/3 from XI for different scenarios and have set up the XI design and config in the same manner
    When I try to perform the synchronous posting back to SAP R/3 from within the SA bridge I get the message ‘Message is incomplete. No Sender found’
    Unlike BC, it appears that XI does not allow me to perform the synchronous posting back to SAP R/3 from within the SA bridge.
    <b>Refer to</b> http://help.sap.com/saphelp_nw04/helpdata/en/83/d2a84028c9e469e10000000a1550b0/frameset.htm <b>for the SAP description</b> To enable the communication between a synchronously calling business system (synchronous outbound interface) and an asynchronously called business system (asynchronous inbound and outbound interface), you can define a sync/async bridge in an integration process. You can only define one sync/async bridge for each integration process.
    How can I replace the current BC functionality using XI?
    Regards,
    Mike

    Hi all,
    I cannot replicate the current BC functionality in XI
    So I will take this opportunity to simplify and improve the design for XI --> R/3
    Regards,
    Mike

  • Auditing with trigger. Whats the best way?

    Hello,
    I would like to record any change in my data using triggers.
    For Example, I have the following tables:
    create table members
    ( member_id number,
    name varchar2(100),
    password varchar2(100),
    address varchar2(100),
    some other attributes ...
    and
    create table members_audit
    ( counter_seq number
    stamp date,
    action varchar2(1),
    member_id number,
    name varchar2(100),
    password varchar2(100),
    address varchar2(100),
    some other attributes ...
    Now, I would like to create a trigger that records and saves every change.
    But only if there has really something changed.
    Therefore, I got to compare every single OLD variable with the NEW variable. Is there a possibility to simply pass every single colum of the OLD variable and the NEW variable in a loop?
    Do I have to create an extra trigger for each table or can I do something like this:
    Create the following trigger for each table:
    CREATE OR REPLACE TRIGGER my_trigger AFTER INSERT OR DELETE OR UPDATE ON [every_table] FOR EACH ROW
    The whole auditing-table name is put together using the table name plus "_audit":
    So, for example if I have the table "members" the trigger auditing table should be "memebers_audit". My auditing table for the table "customers" is "customers_audit". I do not want to create a trigger for every table manually.
    Can I create a trigger on the whole schema?
    How can I solve this problem?
    Thank you in advance,
    Christian

    Thank you Justin and zsirotic for your answer.
    Justin, with your statement:
    You may be able to create a script that generates the CREATE
    TRIGGER code for you, though.What did you mean? Is it possible to use such scripts with oracle? Whats the name for that? For what keywords I have to look after?
    Or did you mean to write just a simple shell script that produces the needed code?
    I thought to use the Workspace manager, but this is a feature only oracle has. And we don't know at this time clear that we will stay by oracle all the time.
    So I will write on Trigger for every of the nearly 200 Tables in 7 user schemas ... Thats a much of work. Okay, but it will be the fastest solution because the triggers are compiled only once I think.
    Is it possible to write such code in the trigger:
    insert into members_audit values (DEFAULT, SYSDATE, 'U', old.*)
    Is there somethin like the old.* or will I have to write:
    insert into members_audit values (DEFAULT, SYSDATE, 'U', old.member_id, old.name, old.password, old.address, old.some other attributes ...)
    Thank you,
    Christian

  • Loadrunner cannot decode some of the recorded Gwt Rpc request bodies

    I have recorded a GWT application and also could regeneate the script. But some of the Gwt Rpc requests were not decoded by saying this "Failed to create web_convert_from_formatted step. Decoded data is empty or has invalid tags" But how can I find what are the invalid tags here. An example full request with having problems is this.
    web_custom_request("dataService_98", 
            "URL=http://192.168.1.167:7373/reservationCentral/reservationcentral/dataService", 
            "Method=POST", 
            "Resource=0", 
            "RecContentType=application/json", 
            "Referer=http://192.168.1.167:7373/reservationCentral/", 
            "Snapshot=t120.inf", 
            "Mode=HTML", 
            "EncType=text/x-gwt-rpc; charset=UTF-8", 
            "Body=7|0|25|http://192.168.1.167:7373/reservationCentral/reservationcentral/|0EF6245E352394C4BB722ECF8159F0EC|it... SAVED|FIT|STD|RCL|DIRECT|UK|E-mail|C|Silva|"
            "it.codegen.tbx.gwt.central.data.CGWebTimestamp/3979480346|NONE|USD|$|FIT:-3330525478508942879|1|2|3|4|2|5|6|0|7|8|0|-1|P__________|9|0|0|0|-1|0|0|9685|10|11|9|10|2014|NHHmLkiFinh|0|1000|12|13|14|0|15|-1|0|BAMQ|9|9|16|17|18|9|0|0|0|0|0|11|9|10|2014|0|19|9|0|A|11|9|10|2014|0|0|0|20|21|9|17|918|48|10|16|2014|0|9|0|0|100|22|0|P__________|0|0|11|9|10|2014|23|24|0|P__________|25|13|1|30000|50000|1|0|0|", 
            LAST);
    any advice or workaround would be highly appriciated. Thanks in advance.

    In the default php.ini is set open_basedir which limits work with php only to few directories (and directories bellow them). There is set /srv/http, /home,/tmp and /usr/share/pear by default.
    To allow your vhost you should add /data/www or set empty value.

  • Variable with Replacement Path

    Hi, I have two queries. The results of the first one should be the input for the second one. E.g. the first query shows a list of personnel numbers and additional information. These personnel numbers shall be overtaken by the second query. The personnel numbers belong to "Dimensions" in the Query Designer. I alread tried to create a variable with replacement path to the dimension personnel number. I implementet this variable in both the first and the second query (under: "rows"). It`s no "Formular variable" and no "Calculated Key Figure" but a "Characteristic Value Variable" of a Dimension. The problem is now that I cannot execute any of the two queries. The error "Abort the query cannot be released for OLE DB for OLAP. System error in programm CL_RSR_REQUEST and form PREPARE_VQUERIES:INVALID_
    What is my mistake? Thank you in advance! Eve

    Hi Eve,
    It is possible to connect the 2 queries using a Replacement Path characteristic variable. You would need to create the variable on the char whose values you want to pass from Q1 to Q2. The variable will be of type replacement path and you will need to enter the name of Q1 from which it will get the values. Make sure that you include this char in the query definition of Q1 and Q2. In Q2 you will restrict the characteristic using this variable. DO not use this variable (replacement path) in Q1.
    In your query properties check if you have turned on the checkmark for Release for OLE DB for OLAP (3rd tab). If the check mark is there, then remove it.
    We are using the scenario in a couple of places, and it works very well.
    Hope this helps...

  • Formula variable with replacement path on system date

    Hi Experts,
    I got a requirement to calculate "Days without payment" in report level.
    Days without payment = System Date - Payment Date.
    (Payment date field is available in CUBE, but system date field is not available in the CUBE)
    As we know, the difference b/w 2 dates is not possible directly.It can be possible by creating 2 formula variables with replacement paths on the dates and by writing aformula on these 2 formula variables.
    But the thing is I dont have system date readily available, and I tried by using SAP Exit. But we cant create formula variable replacement path on another variable (SAP EXIT).
    Do we have any SAP variable  for formula with replacement path readily avaliable to get system date (or) any other suggession.
    Please suggest me.
    Thanks,
    Sai Chand.S

    Hi Arminder,
    Thanks for your valuable answer.
    I tried doing the same previously.As u said we can get system date by creating customer exit variable.
    But the thing is to find difference b/w 2 dates, we cant do it directly, we need to create 2 formula variables with replacement path.
    1) Var1 = Formula variable with replacement path on system date(custoer exit variable).
    2) Var2 = Formula variable with replacement path on paymanet date.
    Number of days = var1 - var2.
    But as in 1st point, we cant create formula variable with replacement path on another variable, as system date is already a variable of type customer exit.
    We can create replacement paths only on characteristics.
    Please suggest me .
    Thanks,
    Sai Chand.S

  • Used of Sap text variable with replacement path in Bo designer

    Dear experts,
    I created a univers based on a SAp BW query. In this query I used a text variable in order to get dynamic header columns.
    The text variable is done by using "replacement path" that is the text is derived automatically from the user input triggered by a sap bw variable.
    example :
    the query contains a restricted key figure which shows net values for a selected year based on variable PYEAR.
    The name of this restricted keyfigure is &ZYEAR& where ZYEAR is the text variable with replacement path from the variable PYEAR.
    When generated the univers based on this query I get component &YEAR&.
    When I use this unvers in WebI my result containts header with &YEAR& althougth I selected for example the year 2006.
    According to several how to and white papers on SDN , it seems that text variables with replacement path are supported. So I am disapointed by this result.
    Can you give me advise to get a rigth result ?
    thanks a lot
    Olivier Doubroff

    Hi Rishit,
    I am trying to achieve the same as you, but it seems like text variables in restricted key figures do not work. I am using BO XI3.1 SP3 and SAP BW 7.01 SP6.
    A work-around for me has been to use the "user response" function in webi to create a webi variable that holds the dynamic text title. If the user inputs Jan 2010, I change the input to a date using the "user response" and "ToDate" functions in the webi variable editor. After changing the input to a date I use the RelativeDate to extract 1 month (e.g. 25 days) from the user input. Then I have both Jan 2010 and Dec 2010 as webi variables to use as headers for my restricted key figures.
    The formulas can easily become a little long, but by tweaking the user response string, you should be able to get dynamic headings by using webi functionality. But be aware that you need one webi variable for each dynamic heading if you use this method.
    Let me know if it works or if I can help more:-)
    Best regards,
    Morten

Maybe you are looking for