Append text to URLs

I have a workclow capturing a bunch of URLs from a web page. How do I append or in any way alter these URLs before downloading them?

The following Run AppleScript action will append the specified text to the input items:
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #FFDDFF;
overflow: auto;"
title="this text can be pasted into an Automator 'Run AppleScript' action">
on run {input, parameters}
append text to the input items
input: a list of text items to append to
output: a list of the appended text items
set output to {}
set append_text to text returned of (display dialog "Enter the text to append:" default answer "?imgdl=1")
repeat with an_item in the input
set the end of output to ((an_item as text) & append_text)
end repeat
return output
end run
</pre>
Tested workflow (I just used incomplete URLs and appended the rest of the address):
1) Get Specified URLs
2) Run AppleScript
3) Display Webpages
By the way, there is a Leopard Automator forum.

Similar Messages

  • Custom Portal iView (Retrieve user; Append text to URL; Redirect to URL)

    Hi all,
    I wish to create a custom Portal iView. I wish to fulfill the following requirements using this iView:
    1) I wish to retrieve the Portal User ID of the user who is currently login in Portal. (Will the IUser class solve the purpose? I know IUser is used in Web Dynpro application.)
    2) I wish to append this User ID to another URL (a URL of some other non-SAP application). The URL is something like this:
    http://<ABC>/user=
    3) Both the above tasks have to be performed in the same iView. And then the iView should automatically be redirected to the new URL (generated in step 2).
    I wish to do this without using Web Dynpro. Can someone please help me for this requirement? I would appreciate even if someone knows the solution to only one of the three steps above, and replies to my question.
    Thanks in advance.
    Regards,
    Ankur

    GLM,
    Sorry, my mistake.
    I have been able to achieve step 3 using this thread:
    Redirecting to external website from abstract portal component?
    Can someone help me for step 1:
    1) I wish to retrieve the Portal User ID of the user who is currently login in Portal. I need to do this in an AbstractPortalComponent.
    Bye
    Ankur

  • Problem with append += text in Text Field

    Hi guys
    i have a problem with append text.
    I have one array which contain some city names, like CityArea=["NAME 1", "NAME2" ...etc];
    Then i have one String and one Text Field.
    Using for loop im getting right results. But when im running script again then im getting  same text again.
    F.ex.
    First time:
    City name: Name 1
    City name: Name 2
    Second time:
    City name: Name 1
    City name: Name 2
    City name: Name 1
    City name: Name 2
    I have tried to make TextField to and String to Null and delete it, but it's appearing again.. :/
    How to avoid this?
    Here is script:
    for (var i1:int = 0; i1 < CityArea.length; i1++)
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'>        "+CityArea[i1]+"</FONT></P>";
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
    _CityAreaTF1 = new TextField();
      _CityAreaTF1.border = true;
      _CityAreaTF1.wordWrap = true;
      _CityAreaTF1.multiline = true;
      _CityAreaTF1.selectable = false;
      _CityAreaTF1.antiAliasType = AntiAliasType.ADVANCED;
      _CityAreaTF1.name = "CityAreaTF1";
      _CityAreaTF1.embedFonts = true;
      _CityAreaTF1.htmlText = _CityAreaString1.toUpperCase();

    I think i found why.
    There was no problem with TextField.
    There was a problem with Array. "CityArea"
    So each time I executed script it added new string in Array. And that is because i got like:
    TextField
    City 1
    City 2
    City 1
    City 2
    Running this script is Ok:
    for (var i1:int = 0; i1 < CityArea.length; i1++)
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'>        "+CityArea[i1]+"</FONT></P>";
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
    But outside of this for loop there is another for loop for adding Cities in CityArray.
    I fixed it by adding empty array at the start of function
    function myFunc():void
    CityArea = [ ]; // Empty array fixed this issue
    // LOOP FOR ADDING SHOPS IN CITY AREA
    for (var j:int = 0; j < _Shops; j++)
    CityArea.push(_Shop);
    // FOR LOOP TO ADDING SHOPS IN STRING
    for (var i1:int = 0; i1 < CityArea.length; i1++)
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'>        "+CityArea[i1]+"</FONT></P>";
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
    Thank you for your help kglad

  • Need custom column widths in Append Text Table to Report

    I need to print reports with tables of different column widths specified for each column, as the contained fields vary in width from just 3 characters in one column to 40 characters in another.  Also we are trying to match the reports generated by a non-labview routine.  In the past I have been able to achieve this by editing the Append Table to Report vi, working my way through the inner hierarchy to replace the DBL numeric COLUMN WIDTH control with a DBL numeric array.  The innermost vi, Set Table Column Width, assigns the numeric to a property node in a for loop, so the change is simple: replace the scalor with an array and enable indexing on the for loop.  Of course, after each Labview upgrade, I've had to go back in and repeat these edits on the overwritten upgraded vi's.  This time there is a problem.  The new version of this toolkit is object oriented, and disturbing these vi's wrecks the class methods in a way I don't understand (mostly because I've had no dealings with object oriented programming) and which cannot be undone.  I recently tried this and after not being able to fix the problem even with phone support, I had to spend the next two days unistalling and reinstalling Labview!  I desperately need a way to achieve this functionality without killing the toolkit, which is used (in its original functionality) by another absolutely critical program.  PLEASE HELP!
    The hierarchy is as follows:
    NI report.lvclass:Append Table to Report (wrap)
    NI report.lvclass:Append Table to Report 
    NI Standard report.lvclass:Append Text Table to Report
    NI Standard report.lvclass:tables
    NI Report Generation Core.lvlibet Table Column Width

    There is a highly relevant thread under discussion here:
    http://forums.ni.com/ni/board/message?board.id=fea​tures&thread.id=429
    You may wish to read it and chime in as it is a discussion of LabVIEW's policy (and possible change in policy for the future) concerning the handling of non-palette VIs between LV versions.
    Rob Hingle wrote:
    > Is that to say NI will not be helping me with this?  Pretty disappointing lack of support, seems
    > like a terrible idea to go to object oriented if even your own application engineers can't figure
    > out such a simple fix.  Gotta give NI a huge thumbs down on this one, thanks for nothing.
    I doubt that it is a simple fix -- our AEs are generally top notch at figuring out solutions for customers -- if it were simple, my bet is they'd have solved it. Asking an AE to work around a bug is different from asking them to rearchitect the toolkit. You are asking them to add a feature that the new version of the toolkit is not
    designed to support. The difficulty in doing this is completely independent of the decision to use LabVIEW classes to implement the toolkit. If any piece of software is not designed with a particular use case in mind, what may be a simple tweak under one design may become a very hard problem under another design.
    In your case, the solution is very straightforward: Use the older version of the toolkit. Any time you create a custom modification of the VIs that ship with LV or one of its toolkits, you should make your own copy and have your VIs link against the copy. LabVIEW promises to maintain all the public functionality version over version. Usually we succeed at that. What we do not promise is to maintain our private implementation of that functionality. It is impossible for LabVIEW (or any other software library) to maintain all of its private internal operations while still continuing any development. Using a copy of the original VIs shields you from having to recode your changes every version (something you've already mentioned is a chore) and it guarantees that functionality that you relie upon does not disappear.
    I hope you are willing to be understanding of this situation and not hold it against the AEs working on this. They try hard to provide excellent customer service, and spend lots of time inventing custom solutions for our users.  This happens to be a situation where the correct fix is not to modify the new toolkit version to do something it wasn't designed to do but to modify your development process so that the problem is solved now and into the future. 

  • Problem in appending text in textfield

    When i am appending the text in Jtextfield component, It is appended in textField I can see these text on screen untill screen is filled. But when all rows is filled and any text is appended in textfield, i can not see these text. If i want to see these appended text, each time i need to scroll the screen. Can i see any appended text on screen without scrolling.

    Hi,
    Istead of JTextField , use JTextArea then it will give u this type of facility.
    rds
    Mohan Kumar
    i2 Technologies,
    Bangalore

  • TextPane always scroll to the bottom when append text

    How to avoid TextPane (inside scroll pane) to go to the bottom after append or set text. The current way I do is to scroll up again. This causes a noticable blink which I don't like very much. Could someone please point out if there is a setting I can do to say don't scroll?

    int pos = myTextArea.getCaretPosition();
    ...append text...
    myTextArea.setCaretPosition(pos);

  • Append text using SAVE_TEXT

    I'm trying to append text lines to the existing data for a given text id. And it seems to replace it each time.
    Is there a way to do it?
    This did not work....call replaces the text data.
        call function 'SAVE_TEXT'
          EXPORTING
            header   = thead
            insert   = 'I'
          TABLES
            lines    = tline
          EXCEPTIONS
            id       = 1
            language = 2
            name     = 3
            object   = 4
            others   = 5.
        if sy-subrc <> 0.
        endif.
        CALL FUNCTION 'COMMIT_TEXT'.
        COMMIT WORK.
    Thank you,
    Pam

    Hi Pam,
    You need to use FM READ_TEXT and FM EDIT_TEXT then use FM SAVE_TEXT.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Dynamically passing text and url-based images as an input parameter to cf8 report builder

    I'm unsuccessfully trying to dynamically pass text and url-based images to a group footer or the detail section via an input parameter or even hardcoded. The field has the attribute 'XHTML Text Formating' set to True. The following are failed samples of a simplified value:
    "<img height=’300’ alt=’Document’ width=’300’ src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
    or
    "<img src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
    This just results in the above text being output. The end result would have various text and images from a database as input by a user, thus the reason I cannot just use the hyperlink information attribute as I could if it were a single known image. I tried rtf and pdf report types. Ideas?

    HTH,
    Thanks. I'll keep that in mind, although I don't know how many images my user might need or what sizes so that might be tricky.
    Since my target output is rtf so that MS Word can be used to edit the result, I added a pagebreak to a MS Word doc and used the resulting html source to replace the rich text editor source code for the page break, but that did not help either. The page break was so a user could add an image later. Something is wrong with the Report Builder related to intepreting XHTML, especially anything that has an attribute, including URL-based image links. I hope they try to provide another update before CF9. I doubt my client will be going to CF9 for some time, since they are just completing the migration to CF8.
    BrianO

  • Ask about how to append text on next line

    I'm writing lingo about log file. For example, i would like
    to write like this when a new entry is appended:
    etc 3/29/2007 8:34 PM
    etc2 3/29/2007 8:34 PM
    Here is the lingo:
    on mouseUp
    if objectP(myFile) then set myFile = 0 -- Delete the
    instance if it already exists
    myFile = new(xtra "fileio") -- Create an instance of FileIO
    openFile(myfile, the moviePath&"try.txt",0) --Open the
    file with R/W access
    myVariable = readFile(myFile)
    setPosition(myfile,getLength(myFile)) -- Set position to end
    of file
    writeString(myFile, " " & "etc" & " " &
    _system.date() & " " & _system.time()) -- Append text to
    the file
    closeFile (myfile) -- Close the file
    myFile = 0 -- Dispose of the instance
    end
    The problem is the appended text is put together, instead of
    a line by a line. In fact, what I want is the appended text is put
    into next line everytime, not on the same line. Please help me to
    modify it, thanks.

    Try changing this line:
    writeString(myFile, " " & "etc" & " " &
    _system.date() & " " &
    _system.time()) -- Append text to the file
    to
    writeString(myFile, " " & "etc" & " " &
    _system.date() & " " &
    _system.time()&RETURN) -- Append text to the file
    Note that if you open the file inNotepad on a PC, it will
    look strange
    because of the way notepad handles line feeds. You can get
    around it by
    doing this:
    winReturn = NumToChar( 13 ) & NumToChar( 10 )
    writeString(myFile, " " & "etc" & " " &
    _system.date() & " " &
    _system.time()&winReturn) -- Append text to the file

  • Append text in a file?

    How can i append text in a text file?
    Thanks in advance.

    FileOutputStream has two constructors which allow appends: FileOutputStream(File file, boolean append)
    FileOutputStream(String name, boolean append)

  • Append text in file. and save it

    Append text in file.
    hi!
    i am new j2me Programer.
    1.i want to add(APPEND) the text in the file. i take this code form internet but i could succed Please help me.
    2.i want to save it in other directory like if i made folder on mobile device with name c:\Old i want to save file in that how could i ?
    kindly mention the Mistake.
    package FileConnection;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import java.io.*;
    import javax.microedition.io.*;
    * @author QTracker
    public class FileConnection extends MIDlet implements CommandListener {
    private boolean midletPaused = false;
    private Command exit, start;
    private Display display;
    private Form form;
    public FileConnection ()
    display = Display.getDisplay(this);
    exit = new Command("Exit", Command.EXIT, 1);
    start = new Command("Start", Command.EXIT, 1);
    form = new Form("Write To File");
    form.addCommand(exit);
    form.addCommand(start);
    form.setCommandListener(this);
    private void initialize() { }
    public void startMIDlet() { }
    public void resumeMIDlet() {/
    public void switchDisplayable(Alert alert, Displayable nextDisplayable) {
    Display display = getDisplay();
    if (alert == null) {
    display.setCurrent(nextDisplayable);
    } else {
    display.setCurrent(alert, nextDisplayable);
    public Display getDisplay () {
    return Display.getDisplay(this);
    public void exitMIDlet() {
    switchDisplayable (null, null);
    destroyApp(true);
    notifyDestroyed();
    public void startApp() {
    display.setCurrent(form);
    public void pauseApp() {
    midletPaused = true;
    public void destroyApp(boolean unconditional) {
    public void commandAction(Command c, Displayable d) {
    if (c == exit)
    destroyApp(false);
    notifyDestroyed();
    else if (c == start)
    try
    OutputConnection connection = (OutputConnection)
    Connector.open("file:\\c:\\myfile.txt;append=true", Connector.WRITE );
    OutputStream out = connection.openOutputStream();
    PrintStream output = new PrintStream( out );
    output.println( "This is a test." );
    out.close();
    connection.close();
    Alert alert = new Alert("Completed", "Data Written", null, null);
    alert.setTimeout(Alert.FOREVER);
    alert.setType(AlertType.ERROR);
    display.setCurrent(alert);
    catch( ConnectionNotFoundException error )
    Alert alert = new Alert(
    "Error", "Cannot access file.", null, null);
    alert.setTimeout(Alert.FOREVER);
    alert.setType(AlertType.ERROR);
    display.setCurrent(alert);
    catch( IOException error )
    Alert alert = new Alert("Error", error.toString(), null, null);
    alert.setTimeout(Alert.FOREVER);
    alert.setType(AlertType.ERROR);
    display.setCurrent(alert);
    }

    | Moderator advice: | Please read the announcement(s) at the top of the forum listings and the FAQ linked from every page. They are there for a purpose. |
    | | Please don't post in threads that are long dead and don't hijack another poster's thread. |
    | | Please don't solicit off forum communication by email. |
    | Moderator action: | The other four posts you made have been deleted. |
    db

  • Sharepoint duplicate append text inputs

    Hi,
    I’ve searched forums without solution for my problem.
    I have SharePoint 2010 custom list with multiple text fileds with append text and some checkboxes
    When I add some to text field it is normally displayed in append changes. But when I click checkbox it is recoded twice with same timestamp, and same content as  below
    jurica (1/1/2012, 13:00): comment2
    jurica (1/1/2012, 13:00): comment2
    jurica (1/1/2012, 13:05): comment1
    When I look in version history of item I get two version in 13:00 (when checkbox is clicked) and one in 13:05
    This second input isn’t added by workflow, but with form itself.
    Does anybody have idea what is making this odd behavior?

    Hi,
    According to your description, my understanding is that there are two same version history in the list after you click the checkbox.
    Did you have some workflow in the list?
    As the workflow may start after some field is added, so it will create another version.
    I suggest you check if the workflow change field value.
    Best regards,
    Zhengyu Guo
    Zhengyu Guo
    TechNet Community Support

  • Append text to logfile

    Can someone tell how to append text to a logfile?
    I use this function, but all existing text is always destoyed:
    function schrijf_naar_log(bestandsnaam){
    var log_bestand = File((Folder(bron_map)) + "/log.txt");
    log_bestand.open("e");
    log_bestand.writeln("\r\n" + bestandsnaam);
    log_bestand.close();
    Michel

    After opening for edit, you need to advance the "current position" in the file to the end using seek:
    log_bestand.seek(0.2);
    Dave

  • How to obtain richtextbox whose height adjusts to the appended text automatically without having scrollbar

    How to obtain richtextbox whose height adjusts to the appended text automatically without having scrollbar

    How to obtain richtextbox whose height adjusts to the appended text automatically without having scrollbar

  • How do you set the line spacing when using the Append Text Table to Report VI?

    I have a table of numbers which I wish to print using the report generation VI's. Since each column has a different numerical format, I first convert the number for each cell to a string with the appropriate format and then build a string array to pass to the Append Text Table to Report VI. The table is printed with double line spacing. How do I reset this for single spacing?
    Attachments:
    print_array.vi ‏112 KB

    Dave,
    The issue is not with the NI-Reports functionality, but the Array to Spreadsheet String funvtion in the for loop. Here is the context help for this function:
    "Converts an array of any dimension to a table in string form, containing tabs separating column elements, a platform-dependent EOL character separating rows, and, for arrays of three or more dimensions, headers separating pages."
    The thing to note here is that it says it adds an EOL (end of line) character at the end of every row. This is what is happening. Your first column of data has a \r\n in it and adds the second row to each data item. This in turn makes the rest of the columns have a larege blank space at the bottom so that all of the cell heights are equal. I w
    ould re-write that little bit of code so that you just do one large string concatenation of number, spaces, number, spaces, number and this should solve your issue.
    Thank you for using the Developer Zone Discussion Forums.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

Maybe you are looking for

  • Having problems with app download, error saying, cannot download.

    I'm trying to download real racing 2hd and I get an error that it could not be downloaded at this time? Im am connected to high speed wifi and dont have a mac or pc at this point. Any ideas? Thank you for help

  • How to install airport in MacBook Pro

    I bought a MBP and Airport Extreme about ten days ago. The Apple store said I needed an Airport Extreme card so I got that, too. The manuals say to install the card according to the directions that came with the computer, however, there were no instr

  • Regarding transparent gif creation

    To anyone who knows more about this subject, I'm looking for some sample code. I've been having trouble redrawing an image as a gif while introducing transparent regions. The following method results in blackness where the transparency should be:    

  • Transfer Requirement for Movement Type 262 to Reservation

    Hi Experts, it is possible to configure the system to create a Transfer requirement for movement type 262 to reservation? When i execute a movement type 262 to Order, the system creates a Transfer Requirement, i can process it in transaction LB12. No

  • Open Link in new window, when field or column type is of Hyperlink

    Hi I have created a column by name Registration of 'Hyperlink or picture' type, and i want to open the link entered by the user in the new window as it is opening in the same window by default. Please help its a very major requirement. Thanks Paru