Relace text from list?

I just made a workflow like this
1. Get selected finder items (template files)
2. Copy finder items (to my working folder)
3. Rename finder items (replacing "Name" with product name)
I had several products to do this for, so I just ended up copying those 3 steps a bunch of times and changing out the product names in each rename step. It would be nice to get this to where I could just pass the names as a list and have it repeat for each item in the list.

Check out http://www.automatedworkflows.com/tips/podcast.html
Also, see http://discussions.apple.com/thread.jspa?threadID=2039384 and Introduction to Automator tutorial at http://automator.us/leopard/video/index.html

Similar Messages

  • How to find the ocuurence of a word from LIST A in LIST B in a text file?

    Hey if you look at the text file there is LIST A and LIST B.. i need to find the ocuurence of a word from LIST A in LIST B. Eg: if my output is (1,3)
    then first word from LIST A occurs in 3 places in LIST B.
    Can you please get the sample code to do this process.
    Please let me know..
    My text file looks like this below :
    phrases.txt
    LIST A
    aamsz
    abaffiliate
    aboard casino
    above computer
    above pop
    above violat
    LIST B
    http://209.153.231.131
    HTTP/1.0 200 OK
    Server: Microsoft-IIS/5.0
    Date: Mon, 02 Feb 2004 11:53:26 GMT
    IISExport: This web site was exported using IIS Export v2.2
    IISExport: This web site was exported using IIS Export v2.2
    Content-Length: 274
    Content-Type: text/html
    Set-Cookie: ASPSESSIONIDSSDBBBAR=OOGFKOJBMKMDCGPIHPADALHB; path=/
    aboard casino
    Cache-control: private
    abaffiliate
    above computer

    The key difference is that Vector is synchronized whilst ArrayList is not. Synchronized means that the classes methods can safely be accessed by different threads and as your application will not be multithreaded then the ArrayList is possibly the better option.
    To store Strings in an ArrayList, you first need to declare the ArrayList object something like this;
    ArrayList<String> listAList = new ArrayList<String>();and you would obviously do something similar for the ArrayList that will hold the Strings that should belong to List B.
    The first thing to note is that you can use the new (well new in version 1.5 anyway) generics techniques to specify the type of the object the ArrayList will hold; Strings in this case.
    To add a value into the ArrayList once you have read it from the file and decided if it belongs in the List A or List B ArrayList, all you need to do is call the add() method of the ArrayList something like this;
    // Assume that you read the line from the file into a variable called temp;
    listAList.add(temp);To compare the two lists, the easiest option would be to iterate through one ArrayList and ceheck to see if the values you recover from it are duplicated in the other ArrayList. Luckilly, ArrayList has another method that helps here, it is called contains();
    Assuming that you have two ArrayList(s), one called listAList that holds the Strings that belong to List A and another called listBList that holds the Strings that belong to ListB, you could do something like this to check for duplicates;
    for(String element : listAList) {
        if(listBList.contains(element)) {
            System.out.println("Found a match");
    }Hope that helps.

  • List of material number with PO text from material master

    I want to get a list of materials number with PO text from material master. Can anybody help ?

    The purchase order texts maintained in the material master are stored
    as SAPScript text files in tables STXH (header) and STXL (lines). For
    material master records:
    Field TDOBJECT = 'MATERIAL'
    Field TDNAME = material number (MARA-MATNR).
    So you should be able to write a small report to extract the data.

  • Create list of materials with its purchase order texts from material master

    Dear all
    Simple question I do wanna ask.
    Just need to get out a list with my materials with its purchase order texts from the material master.
    As I do know that PO text is not stored on a table, it might be difficult to get it out from the system.
    Does anyone of you know how to retrieve it simply?
    Regards
    François

    Check this link Material Master Purchase Order Text.

  • Edit and text and choose from list

    hello,
    I am trying to create a form that resemle to the purchase order form.
    In the purchase order form when we select the card code from the choose from list
    the system fill all the fileds like the name docnum .. with relevant information.
    i tried to do that by using the vent et_evaluate of the edit text bind with the Card code in my form.
    The problem is that when i clik on the choose from list button the event is lanched  and then the value of the card code is "" so i can't crate my queries to get the infomation like suplier name and ..
    does any body have an answer?
    This my code:
    switch (pVal.ItemUID)
                                                case "3":
                                                        _Form.Freeze(true);
                                                        try
                                                            string NumFournisseur =
                                                                ((EditText) _Form.Items.Item("3").Specific).Value;
                                                            ArrayList DFournisseur =
                                                                new DB.PurchaseRequest(_SboCompany).
                                                                    GetDetailsFournisseur(NumFournisseur);
                                                            EditText Textvar;
                                                            // remplir nom fournisseur et nom contact
                                                            Textvar = (EditText) _Form.Items.Item("2").Specific;
                                                            Textvar.String = DFournisseur[0].ToString();
                                                            Textvar = (EditText) _Form.Items.Item("4").Specific;
                                                            Textvar.String = DFournisseur[1].ToString();
                                                            // remplir les dates comptable , de livraiosn et du document
                                                            Textvar = (EditText) _Form.Items.Item("17").Specific;
                                                            Textvar.String = DateTime.Today.ToString();
                                                            Textvar = (EditText) _Form.Items.Item("19").Specific;
                                                            Textvar.String = DateTime.Today.ToString();
                                                            Textvar = (EditText) _Form.Items.Item("21").Specific;
                                                            Textvar.String = DateTime.Today.ToString();
                                                            // remplir devise partenaire et numéro document
                                                            ((EditText) _Form.Items.Item("59").Specific).String =
                                                                new DB.PurchaseRequest(_SboCompany).GetCurrencyCode(
                                                                    NumFournisseur);
                                                            _Form.Items.Item("59").Visible = true;
                                                            _Form.Items.Item("59").Enabled = false;
                                                            ((ComboBox) _Form.Items.Item("10").Specific).Select(
                                                                "primary",
                                                                BoSearchKey.
                                                                    psk_Index);
                                                            ((EditText) _Form.Items.Item("11").Specific).String =
                                                                new DB.PurchaseRequest(_SboCompany).GetLastDocNum().
                                                                    ToString();
                                                            ((EditText) _Form.Items.Item("12").Specific).String = "0";
                                                        catch (Exception e)
                                                            Console.WriteLine(e.Message);
                                                        _Form.Freeze(false);
                                                        break;
                                            break;
                                        catch (Exception ex)
                                            Console.Write(ex.Message);
                                break;

    Hey Achref,
    You can use the event and code like this:
    string vendCode = string.Empty;
    SAPbouiCOM.IChooseFromListEvent oCFLEvento = (SAPbouiCOM.IChooseFromListEvent) pVal;
    string sCFL_ID = oCFLEvento.ChooseFromListUID;
    SAPbouiCOM.ChooseFromList oCFL = oVendorSourcingForm.ChooseFromLists.Item(sCFL_ID);
    SAPbouiCOM.DataTable oDataTable =  oCFLEvento.SelectedObjects;
    if (oDataTable != null)
         //get selected value from datatable
         if (oDataTable.Rows.Count > 0)vendCode = oDataTable.GetValue(0, 0).ToString();
    Also check out 17.ChooseFromList in the samples that you can download.
    Hope that helps
    Curtis

  • How do I invite via text from icalendar from my iphone to another phone listed in my contacts??

    How do I invite via text from icalendar grom my iphone to another phone listed in my contacts??

    If you want your husband to receive an iMessage, you must send it to him as an iMessage yourself. Just go into the Messages app and send it to your husband's Apple ID. All e-mails (except me.com, as it is part of iCloud/iMessages) don't actually work with Messages.
    Alternatively, you could download free, wi-fi based messenger apps on your iDevices. Popular ones include WhatsApp, but there should be more that suit your preferences.

  • Showing choose from list indicator on text edit field

    Hello expert,
    I have an UDF with a choose from list linked to one text edit object.
    Actually, I don't see the fields selection list indicator inside the text edit object.
    I thought it should have the same behavior as the cardcode text edit in the sales order form.
    Someone can explain me what's the reason ?
    Thanks in advance.
    Best regards
    Andrea

    Hi,
    If You Mean  To Display CFL Icon in the edit text then
    Try This.....
    Go To SAP Then
    View -
    > Pickers Display -
    > List Selection
    View-->Indicator Displaly--
    >Choose From List Fields
    Thanks
    Shafi

  • Livecycle populate text field with multiple records from list box

    Can someone tell me how can I populate a text field from list box when I have multiple select.
    Here is example:
    List box consist: Hello
                             World.
    I want to see this in text field: Hello,World.
    Thanks!

    Hi Legro
    I don't know if I understand you correctly, but you can do something like this:
    ----------------- java script begin ---------------------------------
    //Reset text field
    TextField.rawValue = "";
    //loop through items in listbox
    for(i = 0; i < ListBox.length; i++)
              //if item selected
              if(ListBox.getItemState(i))
                        //check if Text field value if null
                        if (TextField.isNull)
                                  TextField.rawValue = ListBox.getDisplayItem(i);
                        else
                                  TextField.rawValue = TextField.rawValue + " " + ListBox.getDisplayItem(i);
    ----------------- java script end ---------------------------------
    I have attached an sample PDF so that you can see how it works!!
    Kind Regards
    Søren Høy Nielsen Dafolo A/S

  • Populate Text Box with mulitple selctions from list box

    Hello,
    I am new to LiveCycle and searched the forums for an answer as to how to populate multiple selections from a list box to a text field.
    I added to the calculate field of the text field the following: TextField14.rawValue = ListBox1.rawValue
    Is there a way I can modify this so that the items from the listbox populate the text field so that the values show up side by side (i.e. California, Connecticut, New York) instead of top-down?
    Joe

    I would use the following JS code in the 'exit' event of the List box
    var
    ListValue = this.rawValue;ListValue
    = replaceAll(ListValue, "\n", " ,");TextField1.rawValue
    = ListValue; 
    function replaceAll(oldStr,findStr, repStr) { 
         var srchNdx = 0; // srchNdx will keep track of where in the whole line  
         // of oldStr are we searching.
         var newStr = ""; // newStr will hold the altered version of oldStr. 
         while (oldStr.indexOf(findStr,srchNdx) != -1)
              // As long as there are strings to replace, this loop 
              // will run.  
              newStr
    += oldStr.substring(srchNdx,oldStr.indexOf(findStr,srchNdx));
              // Put it all the unaltered text from one findStr to 
              // the next findStr into newStr. 
              newStr
    += repStr;
              // Instead of putting the old string, put in the 
              // new string instead.  
              srchNdx
    = (oldStr.indexOf(findStr,srchNdx) + findStr.length);
              // Now jump to the next chunk of text till the next findStr.  
         newStr
    += oldStr.substring(srchNdx,oldStr.length);
         // Put whatever's left into newStr.
         return newStr;
    Good Luck,

  • When I attempt to send a text from the new iPad, a dialog box appears with the option to either sign in with Apple ID Password or Create New Account. I try signing in using my Apple ID password but IMessage informs me that email address cannot be verified

    When I attempt to send a text from the new iPad, a dialog box appears with the option to either sign in with Apple ID Password or Create New Account. I try signing in using my Apple ID password but IMessage informs me that email address cannot be verified because it is already in use ??? What am I doing wrong?

    settings -> iTunes & App Store
    click on apple ID listed there
    select Sign Out
    sign in with the proper account
    from then on, when the store ask for your password it should be with the correct ID

  • ExtendScript: Get all text from a document

    Hi all.
    I have the following task: I need to translate a document into another language using ExtendScript. So, as "input" I have a document with a text/graphics/tables/etc. in Language_1 and a "somehow-separated file", which will contain data about translation into the Language_2. E.g.:
    Some_text_in_language_1     Some_text_in_language_2
    Some_other_text_in_language_1     Some_other_text_in_language_2
    To get the source text from the document, I've tried to use this:
    var pgf = doc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;
    while(pgf.ObjectValid()){
         var test = pgf.GetText(Constants.FTI_String);
         var text, str;
         text = "";
         for (var i=0; i < test.len ; i +=1)
              var str=test[i] .sdata.replace(/^\s+|\s+$/g, '') ; 
              text = text + str;
              PrintTextItem (test[i]);
         pgf = pgf.NextPgfInFlow;
    But with this, I can only access the regular text in the document (e.g. the text in tables remains untougched). Is there any way I can the all textual data from specified document? Or maybe, the full list of controls, which can contain it, to iterate throught them and extract it one-by-one? Or maybe there's a better way to solve this problem?
    Thanks in advance! Any advice would be greatly appreciated.

    There is another way to loop through ALL paragraphs in a document, regardless whether they are in a table or in the main text flow. You can use the FirstPgfInDoc property of the document and loop through all Pgf objects using the NextPgfInDoc property of the Pgf until you reach an invalid object. Note that this also includes all paragraphs in the master and reference pages, so it might be useful to check where the Pgf is located (on a body page or not). There is a script on this forum that does that - I believe it was created and posted by Rick Quatro.
    Working your way through the main text flow does not guarantee that you have all the visible text in the doc. There may be multiple flows and there may also be text frames that are placed inside anchored frames. Those text frames are not contained directly in the main flow of the document.
    Good luck with your scripting
    Jang

  • Calling function from list of values section?

    can i call a function from list of values(LOV) section as well? I know we can sql query but udf is supported?

    See this recent thread: Display as Text (LOV) or join
    Scott

  • How can I remove the 'Qty' text from individual product descriptions?

    I didn't know if this was possible or not... I've recently taken the reins of handling an ecommerce site that had been published before I got on board. My boss wants me to remove the 'Qty:' description from some products because the image shown for some products is a misleading description of the actual quantity available (i.e. there is a picture that shows a stack of conveyors parts, and it says 'Qty: 1' to represent one 'stack' of conveyor parts - this confuses customers into thinking there's only one individual conveyor part available however). To avoid any confusion he requested that I remove the 'Qty' text from similar images. I see that you can change the 'In Stock' amount of a particular product underneath the 'Inventory' tab of the 'Products' menu, but I didn't know if it was possible just to remove the quantity description altogether without just typing the quantity in at zero. This is likely a strange question but I didn't know where else to ask! I would appreciate any help or advice Thank you

    Hi ewhelhalu,
    I just figured out a way to do it, but it's a little weird and complex, and I have no idea what the consequences for editing this .plist string might be. I'm thinking it'll be OK, but you never know what might happen when you screw around with Apple's intentions.
    So if you have the Developer Tools on your install of OS X, you can use the Property List Editor to edit the Dock files. (If you don't have this program, you can use a program like [Pacifist|http://www.charlessoft.com> to selectively install stuff from your Leopard disk).
    The file you're interested in is within Macintosh HD > Users > Your Username > Library > Preferences, and it's called com.apple.dock.plist. Open that up with Property List Editor, and open the arrow drop-down next to "Root." The lines you're looking for are "persistent-apps" (the left side of your Dock) and "persistent-others" (the right side). If you open the drop-down arrows, you'll see there are numbers below each. The numbers correspond to your Dock items, from left to right.
    If you click on drop-arrows by the numbers, a sample hierarchy looks like this: 0 > tile-data > file-label. It's the "file-label" string that you want to edit. Just make it ("it" being the name of the icon under the "value" column) blank, save the file, go into Terminal and type "killall Dock" without the quotes, and your Dock icon should appear without a name. You'll have to do this for all of them.
    I should insert the usual caveats here about backing up beforehand and making sure that you have a copy of the .plist file before you start tweaking it so that you can replace it if things go wrong. And perhaps someone with more knowledge of Terminal or third-party apps than I have will come along and suggest a simpler solution. But that's the only one I have.
    Hope that helps!
    —Hazy

  • How to add anchor tag dynamically on infopath (OOTB task form of workflow .xsn) by jquery -dynamically as i did by below script on newform.aspx where I will read Help title and URL value from list

    on newform.aspx just above the top of cancel button I want to put 1 hyperlink "Help"
    but I want to do this by script/jquery by reading my configuration list where 1 column is TITLE and other is- URL
    Configuration List has 2 columns Title and URLValue
    Title                                    UrlValue
    HelpNewPage                    
    http://url1
    HelpEditPage                      http://url2
    so script should read Title and display "Help"--->1st part on NewForm.aspx/EditForm
    Script should read UrlValue column and on click of help-(display link) the respective url should be open in new window.-->second part
    Please let me know reference code for adding anchor tag dynamically by reading from list
    Help/Reference 
    http://www.sharepointhillbilly.com/Lists/Posts/Post.aspx?ID=5
    I can see hyperlink near cancel button-
    //This block is just placing help link near cancel button- 
    $(document).ready(function() {
        GetHelpLinkFromConfigList();
    var HelpLinkhtml ='<a href="#" text="Help">Help</a>';
    var position =$("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkhtml);
    var HelpLinkhtml ='<a href="#" text="Help" onclick="GetHelpLinkFromConfigList();">Help</a>'; 
    var position =$("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkhtml);
    var HelpLinkimageButton ='<IMG SRC="../../Style Library/Help.bmp" style="width:35px;"/>'; 
    var position1 =$("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkimageButton );
    //Rest script
    function GetHelpLinkFromConfigList()
     //The Web Service method we are calling, to read list items we use 'GetListItems'
     var method = "GetListItems";
     //The display name of the list we are reading data from
     var list = "configurationList";
     //We need to identify the fields we want to return. In this instance, we want the Title,Value fields
     //from the Configuration List. You can see here that we are using the internal field names.
     var fieldsToRead = "<ViewFields>"+"<FieldRef Name='Title' />"+"<FieldRef Name='Value' />"+"</ViewFields>";
     //comment
     var query = "<Query>" +
                            "<Where>" +
                                "<Neq>" +
                                    "<FieldRef Name='Title'/><Value Type='Text'>Help</Value>"
    +
                                "</Neq>" +
                            "</Where>" +
                            "<OrderBy>" +
                                "<FieldRef Name='Title'/>" +
                            "</OrderBy>" +
                        "</Query>";
     $().SPServices(
     operation: method,
        async: false,
        listName: list,
        CAMLViewFields: fieldsToRead,
        CAMLQuery: query,
        completefunc: function (xData, Status) {
        $(xData.responseXML).SPFilterNode("z:row").each(function() {
        var displayname = ($(this).attr("ows_Title"));
        var UrlValue = ($(this).attr("ows_Value")).split(",")[0];
        AddRowToSharepointTable(displayname,UrlValue)
    function AddRowToSharepointTable(displayname,UrlValue)
        $("#NDRTable").append("<tr align='Middle'>" +
                                    "<td><a href='" +UrlValue+ "'>+displayname+</a></td>"
    +
                                   "</tr>");
    <table id="NDRTable"></table>
    sudhanshu sharma Do good and cast it into river :)

    Hi,
    From your description, you want to add a help link(read data from other list) into new form page.
    The following code for your reference:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    ExecuteOrDelayUntilScriptLoaded(AddHelpLink, "sp.js");
    function AddHelpLink() {
    var context = new SP.ClientContext.get_current();
    var list= context.get_web().get_lists().getByTitle("configurationList");
    var camlQuery= new SP.CamlQuery();
    camlQuery.set_viewXml("<View><Query><Where><Eq><FieldRef Name='Title'/><Value Type='Text'>Help</Value></Eq></Where></Query></View>");
    this.listItems = list.getItems(camlQuery);
    context.load(this.listItems,'Include(Title,URL)');
    context.executeQueryAsync(function(){
    var ListEnumerator = listItems.getEnumerator();
    while(ListEnumerator.moveNext())
    var currentItem = ListEnumerator.get_current();
    var title=currentItem.get_item("Title");
    var url=currentItem.get_item("URL").get_url();
    var HelpLinkhtml ='<a href="'+url+'">'+title+'</a>';
    $("input[value='Cancel']").parent("td").addClass('ms-separator').append(HelpLinkhtml);
    },function(sender,args){
    alert(args.get_message());
    </script>
    Result:
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Unable to send or receive text from another iphone after updating ver 7.02

    Before updating ver 7.02 I was able to send and receive text to any cell phone. After updating to ver 7.02 can no longer send nor receive any text from any iphone 4 or iphone 5. Can send and receive to/from an old iphone 3 and to any non-iphone but not iphone 4 or 5. Tried updating iTunes then restore phone from backup, no change. Deleted apps that were no longer being used and transferred all my pictures on phone to a folder on computer then deleted then out of iTunes. Tried restoring again, once again no change.
      Not having any idea what else to try, went to AT&amp;T store for help. Pretty much got a shrug of the shoulders with the response of yep, a lot of texting problems after 7.02 update. No help at all.
    Anybody else have or had this issue? If yes,  what did you find causing the problem?
    Thanks in advance.

    Thanks for the response. I tried so many things forgot to list that I did try turning off iMessage, reset network and turned network back on- no change. Also forgot to mention it's my wife's phone, I'm more old school. If I need to talk to somebody, I just call since I already have a phone in my hand. That's my solution to the problem but she doesn't think so. LOL. Also tried hard restarting several times, didn't make any difference. I am still fiddling around with it, if I come up with anything I will post it.
    Thanks again for the help.

Maybe you are looking for

  • ITunes 7 hangs while trying to update Library

    I installed 1Tunes 7 onto my Jukebox Mac - contains 16,450+ tracks, 90Gb. iiTunes hangs when trying to update the library. I keep all my actual music files on an external LaCie D2 160Gb drive. Even if I move the drive to a different Mac, and attempt

  • Getting medium write error on burning a disc image using Disk utility

    Have a MacBrook Pro 15 inch, circa Summer 2007, using OX 10.4.11. up until recently (as in before February) have been able to burn DVD's using Toast (message Medium Writer Error). Started getting problems where the burn failed. Thought maybe it was T

  • Backing up the whole Macbook Pro from a Time Machine was not a good idea

    So here's my little story... I've started to had a problem yesterday with a game running with crossover on my mac. Since the game was working fine 2 days ago I've decided to back up my whole computer from my Time Machine. After 5 hours of work the ma

  • Please help me fix error " Application descriptor file cannot be parsed "

    I start with Flash - AIR for Android When i publish : A notice : "Error creating files Application descriptor file cannot be parsed" File XML by Flash created : <?xml version="1.0" encoding="UTF-8" standalone="no" ?> <application xmlns="http://ns.ado

  • DP related queries

    Hi Gurus, In Demand Planning, can we use the same data view for different users? Is it possible to keep certain rows input-able for some users and other cant in the same view? Can we use the same macro for different planning books in the same plannin