Open URL including a variable

I want to open a specific URL in Safari which has to be like this: +http://website.com/variableothertext
where variable is a variable I created before. I tried the action "Obtain specified text", linked to "Show webpage", but I can't figure how to include my variable into the text field of "Obtain specified text", since when I try to drag that variable into it, it simply creates an "Obtain variable value" action.
What should I do instead?

Hello Tom!
Keep it simple and try this:
Option Explicit
dim data
dim maxval
dim minval
data = "[1]/[2]"
maxval=CMax(data)
minval=CMin(data)
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  

Similar Messages

  • Tell Safari to open url using variables

    Hi,
    I need to be able to tell Safari to open a url using variables.
    Example:
    I type "Soul Men" (without the quotes) in MS Word Mac, then select it, then run the
    script and Safari opens as if I had opened imdb.com and searched for "Soul Men".
    The issue:
    The format for that imdb.com search url is:
    http://www.imdb.com/find?s=all&q=Soul+Men&x=12&y=12
    Notice that each word in the search terms is followed by a "+", except the last.
    So I would need to tell the script to create that url, and use variables for the search terms.
    I would need to account for any number of words in the variable.
    Hope that makes sense,
    Any help appreciated,
    Charles

    Hello
    As for building imdb's query url, you may try something like the CODE1 below.
    It includes code to handle characters in U+0080 and upper.
    (The imdb's query looks like using iso-8859-1 encoding, not utf-8, so the code is written as such.)
    --CODE1
    set n to "Soul Men"
    set u to imdbQueryUrl(n)
    return u
    on imdbQueryUrl(n)
    set sh to "echo " & quoted form of n & ¬
    " | iconv -f utf-8 -t iso-8859-1 " & ¬
    " | perl -M-utf8 -MURI::Escape -lpe '$_ = uri_escape($_); s/(%20|%09)+/+/og;'"
    return "http://www.imdb.com/find?s=all&q=" & (do shell script sh)
    end imdbQueryUrl
    --END OF CODE1
    As for getting text in selection of Word document, you may try something like the CODE2 below. Not tested, though.
    --CODE2
    tell application "Word"
    set t to content of selection
    --set t to content of text object of selection -- if above fails
    end tell
    --END OF CODE2
    As a whole, you may try something like this -
    --SCRIPT
    tell application "Word" to set n to content of selection
    open location imdbQueryUrl(n)
    on imdbQueryUrl(n)
    set sh to "echo " & quoted form of n & ¬
    " | iconv -f utf-8 -t iso-8859-1 " & ¬
    " | perl -M-utf8 -MURI::Escape -lpe '$_ = uri_escape($_); s/(%20|%09)+/+/og;'"
    return "http://www.imdb.com/find?s=all&q=" & (do shell script sh)
    end imdbQueryUrl
    --END OF SCRIPT
    Good luck,
    H

  • Open url from xchat in opera

    I'd like to open urls from xchat in opera.
    Under settings>advanced>url handler:
    !opera -remote 'openURL(%s)'
    xchat has tcl as an optional dep, so I installed that.
    This is in xfce4 and I have set opera as the preferred browser.

    Well, I'm afraid that is not an option.
    The goButton is in a table row. There are lots of rows so if I use EL for Destination attribute the URL would be retrieved for each of rows.
    The method of URL retreiving is heavyweight operation which includes calling plsql functions, working with strings and others. So if I do it for each table row my application hungs and then I receive an exception of CPU usage.
    That's why I switched to normal commandButton witch actionListener which retrieves url on click - only once. So I need to open URL from Java.

  • Open URL from Java in a new browser tab

    Hi OTN,
    Surprisingly can't find the implimintation.
    In an ADF managed bean I retrieve String url. I need to open a new browser tab with this url.
    Found this thread Open a url in a new window in the backing bean which shows using javascript "service.addScript(facesContext, "window.open(http://www.google.coml)");".
    But in my case in doesn't work. The code is executed, but nothing happens. Maybe because the bean is called from a taskflow inline popup.
    ADF 11.1.1.4
    Thanks.

    Well, I'm afraid that is not an option.
    The goButton is in a table row. There are lots of rows so if I use EL for Destination attribute the URL would be retrieved for each of rows.
    The method of URL retreiving is heavyweight operation which includes calling plsql functions, working with strings and others. So if I do it for each table row my application hungs and then I receive an exception of CPU usage.
    That's why I switched to normal commandButton witch actionListener which retrieves url on click - only once. So I need to open URL from Java.

  • Open URL from a Captivate generated MP4

    Hello all,
    I am putting together an instructional video (.mp4) using Captivate 5.5, the video will be targeting iOS users.
    I will need to provide a way to open some webpages while the end user is playing the mp4 file. My thought was to include a button with an assigned action to "Open URL or file" and specify the URL.
    This does not seem to work after publishing to mp4 format. Is that feature not supported in Captivate mp4 files? Or did I forget a step maybe? Is there a workaround to achieve the same result?
    I'd appreciate any input on this.

    Hi there
    Unless something has changed recently, it is my understanding that MP4 is strictly a video format and does not support hyperlinking or other types of interactivity.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Why do we use open URL in default browser function? What are the uses of it?

    Why do we use "open URL in default browser" function?  What are the uses of it?

    kdm7 wrote:
    Okay.
    So can we keep a web button to access the www.ni.com ? So that web site opens only when button pressed?
    P.S  I,m a newbie.
    Yes, you can also, e.g. include a help file or manual as html and open that in the browser.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Dynamic URL Configuration using variable range - WAD

    Hi,
    I am trying to configure a URL dynamically using variable range values. There are two variables which I pass to the URL, Sales Document Number and Posting Date. Sales Document Number has a single value and Posting Date is a range variable. The single value for sales document is passed to the URL but the date range is not passed and hence the web template gets the blank value for the date and shows the variable screen as this is mandatory. The URL is as follows.
    CONCATENATE
    l_web_protocol
    l_portal_server
    Initial URL
    '/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE='
    l_web_template
    '&BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE'
    '&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING'
    '&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING='
    l_var_value  "variable value
    '&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE='
    l_var_name   "Variable for info object
    '&BI_COMMAND_2-BI_COMMAND_TYPE=SET_SELECTION_STATE_SIMPLE'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR=INTERVAL_SELECTION'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER-ATTRIBUTE_MEMBER_SELECTION-
    INFO_OBJECT=0PSTNG_DATE'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER=MEMBERS_EXIT'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER-MEMBERS_EXIT='
    l_range_var_name  "Customer Exit Variable
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER-MEMBER_NAME='
    l_range-low     "Variable Value - Low
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER-ATTRIBUTE_MEMBER_SELECTION- INFO_OBJECT=0PSTNG_DATE'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER=MEMBERS_EXIT'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER-MEMBERS_EXIT='
    l_range_var_name     "Customer Exit Variable
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER-MEMBER_NAME='
    l_range-high      "Variable Value - High
    '&BI_COMMAND_2-RANGE_SELECTION_SIGN=INCLUDING'
    '&BI_COMMAND_2-TARGET_DATA_PROVIDER_REF_LIST=DP_TAB'      "Tab in the Web Template
    into  l_url.
    Can someone tell me asto what's going wrong with this URL? I passed single value for Posting Date and it worked fine.
    Thanks and Regards,
    Arya

    Thanks for the reply. However I did not understand couple of things. Should I try the URL like below?
    BI_COMMAND=&
    BI_COMMAND-TARGET_DIALOG_REF=l_var_name&
    BI_COMMAND-BI_ADVANCED=DLG_VARIABLE_vsc_DropdownVariants& "Which value to be passed?
    BI_COMMAND-BI_COMMAND_TYPE=PASSIVE_VALUE_TRANSFER&  "Which value to be passed?
    BI_COMMAND-PASSIVE_ID=DLG_VARIABLE_vsc_DropdownVariants_combobox& "Which value to be passed?
    BI_COMMAND-PASSIVE_VALUE=l_var_value&
    BI_COMMAND_1=&
    BI_COMMAND_1-TARGET_DIALOG_REF=l_range_var_name&
    BI_COMMAND_1-BI_ADVANCED=DLG_VARIABLE_vsc_CommonVariablesList_VAR_1_VARINPUT& "Which value to be passed?
    BI_COMMAND_1-BI_COMMAND_TYPE=PASSIVE_VALUE_TRANSFER&
    BI_COMMAND_1-PASSIVE_ID=DLG_VARIABLE_vsc_CommonVariablesList_VAR_1_VARINPUT_inp& "Which value to be passed?
    BI_COMMAND_1-PASSIVE_VALUE=l_range_low-l_range_high&
    BI_COMMAND_2=&
    BI_COMMAND_2-TARGET_DIALOG_REF=l_range_var_name&
    BI_COMMAND_2-BI_COMMAND_TYPE=OK
    Thanks and Regars,
    Arya

  • Click Box - Open URL's

    I created a Captivate project. At the end of the project the
    user has 3 options that I created Click Boxes for.
    Option 1 - Return to the start of the video and watch again.
    Option 2 - Click Next to view the next video
    Option 3 - Click to schedule an on-line demo
    These click boxes are set to pause until clicked with
    Infinite attempts.
    Option 1 jumps to slide 1 and works fine.
    Option 2 - Is set to Open URL or file -
    http://www.raritan.com/videos/blades-management/virtualization.html
    Option 3 - Is set to Open URL or file -
    http://www.raritan.com/c/f.1002/p.online-demo/thank-you/
    If I preview project, these links work correctly (option 2
    will show file not found since the video hasn't been posted yet).
    When I publish the file and play the flash, both the Option 2
    URL and Option 3 URL's open at the start of the swf file. I have
    never had this happen before. I have looked at the publish
    preferences to see if something there is kicking off the start, but
    I don't see anything that would cause this.
    Can anyone help me..... This project is already overdue.
    THANKS.

    Rick,
    I selected the click box properties for Option 2 and Option
    3. I selected New and I also De-Selected continue running project.
    This is producing the same results.
    I publish a zip file that includes an .html, .swf and .js. In
    not using any project skin and testing components. When I double
    click on the swf, the url links for Option 2 and Option 3
    automatically open with the swf.
    So basically I have 3 windows open. The swf file, and 2 IE
    windows one with the url address for option 2 and one with the url
    address for option 3.
    These should not open until the user gets to the file slide
    of the swf and selects one of the click boxes to activate the url
    link.
    I have been all over these forums and one suggested I put the
    text "url:" before the
    http:// link --- I tried that and the swf file
    and 2 IE windows still opened upon the start up.
    Just for additional information - these are my publish
    preference settings for Start/End Project -
    Project START Options -
    Loading screen - unchecked, Password protect project -
    unchecked, Password expiration date - unchecked, Fade in on first
    slide - unchecked
    Project END Options
    Action - Close Project, Fade out at last slide - unchecked.
    Any idea what to do from here?

  • Quicktime Open URL

    After upgrade to Snow Leopard 10.6 I cannot get AppleScript to do a "getURL" command.
    My script looks like this:
    tell application "QuickTime Player"
    activate
    getURL "http://www.sr.se/webbradio/include/CreatePlaylist.asp?SkipDetect=1&id=p1&type= live&AvailableAudioFormats=3&AudioFormat=3&IsBlock="
    end tell
    Why doesn't it work?
    Tia,
    /andreas

    With Snow Leopard, both scripts below will work:
    tell application "QuickTime Player 7" -- the previous version of QuickTime Player
    activate
    getURL "http://www.sr.se/webbradio/include/CreatePlaylist.asp?SkipDetect=1&id=p1&type= live&AvailableAudioFormats=3&AudioFormat=3&IsBlock="
    end tell
    or
    tell application "QuickTime Player" -- the new version of QuickTime Player
    activate
    *open URL* "http://www.sr.se/webbradio/include/CreatePlaylist.asp?SkipDetect=1&id=p1&type= live&AvailableAudioFormats=3&AudioFormat=3&IsBlock="
    end tell

  • Problem with Yahoo Maps..."Error Opening URL..."

    I am trying to use a yahoo Action Script 2.0 map to display real estate listings from an xml file. I often receive the following output error, which prevents the entire yahoo map from opening:
    Error opening  URL  ‘http://maps.yahooapis.com/xml/apiconfig.xml?r=988’ (the last 3 digits are random and change each time the problem occurs)
    I have searched the internet for a solution and cannot find one.
    I have emailed yahoo, who has not responded, as well as other people who have had the problem, but they cannot remember what they did to solve it.
    Please help!

    No, I'm not doing anything to handle security issues.
    What I have done is downloaded all the .as files that yahoo uses for their maps (from http://modestmaps.mapstraction.com/trac/browser/trunk/reference/YahooMaps/com/yahoo/maps?r ev=6), including the xml file (http://maps.yahooapis.com/xml/apiconfig.xml).
    What I am thinking, correct me if I'm wrong, if I go through all the class files and change their names from "com.yahoo.maps.insertscriptname1.as" to something defining my own server (ie. mikeraydesign.maps.insertscriptname1.as), and point to the xml file from the one .as file that points to the one with the security issue, this might work.
    I don't know if it will, but I don't think it can hurt.  What do you think?
    Regardless, lets say I put all the files into my own folder on my server, (ie. www.mikeraydesign.ca/maps/), how would I go about importing those scripts from my fla?  The fla needs to import 4 initial classes, which then point to all the others (in the link I have above).  How do you point to online class files?  Would this even work?
    Thoughts?

  • Opening url rebuffering stream when previewing songs

    How can I fix music previews that play for 3 seconds and then give me an error: opening url rebuffering stream? I never had this issue, and haven't changed anything. What's wrong?

    I've been having the same probelm for about 6 months.  On itunes 10 and 11.  This appears to be a problem that goes back to years which tell sme Apple simply does not care. There are many threads like this one with no answers.  I'm going to have to find another app to listen to online radio.  I love Apple but sometime ther really can fracking suck.

  • Since upgrading to LabVIEW 2013, every VI compiles every time I open it (including quick-drop).

    Hi all.  Since upgrading to LabVIEW 2013, every VI compiles every time I open it (including quick-drop).  This really slows things down!  Perhaps related, my system tells me I don't have permission/access to modify my LabVIEW ini.  Has anyone seen similar, and/or any hints towards a solution?  

    Jeff-P wrote:
    As a side note, LabVIEW.ini is a file that gets generated by LabVIEW when it is launched if the file does not exist. So if you are missing the 32-bit ini file, launch 32-bit LabVIEW and that file should be created.
    I thought that the message: "Perhaps related, my system tells me I don't have permission/access to modify my LabVIEW ini"  might indicate that the labview.ini file cannot even be created... strange...
    LabVIEW Champion . Do more with less code and in less time .

  • "Error: the xajax Javascript file could not be included. Perhaps the URL is incorrect? URL: /includes/javascript/xajax_js/xajax.js". other posters with a xajax error on this board got the response to go look for developer resources. (i'm not a developer)

    I'm on a mac running 10.6.8, was using Firefox 6.02 when the problem started, i performed a clean install of 7.01, installed the latest Flashplayer, and reinstalled java (the 10.6.5 update file from apple's site).
    I seem able to load video at youtube.com, and was able to load web-based irc chatrooms at ircchat.tv. however, at jamplay.com a paid member site, all of the lessons are flash video, and there's a live video feed chat room that is also flash based, and I am not able to view this content. the video content pops up the error message "Error: the xajax Javascript file could not be included. Perhaps the URL is incorrect?
    URL: /includes/javascript/xajax_js/xajax.js" and the clicking on the "launch chatroom" button does exactly nothing.
    I have contacted the jamplay site team but their recommendations are the steps I have already taken, mentioned above, that did not resolve the issue.
    some links to content on their site visible without being a member:
    http://www.jamplay.com/
    this one has a flash interface that, if things were working, would have a video in the center and members and staff talking abouth that area of the site when you click on one of the title buttons. Now that I am having this problem, nothing is clickable and there's no indication that there should be a video in the center. The error message regarding xajax does not come up at all.
    http://www.jamplay.com/guitar-lessons/beginners/1/527-16-circle-of-fifths
    same thing. video content is missing, xajax error does not appear.
    http://www.jamplay.com/live
    when I load these all content except the video loads on the page. this page does not give me the error at all, just does not load the video
    I can't seem to recreate the actual error without being logged in as a member of the site.
    The apple support team gave me a one-time free suppport ticket to troubleshoot an ethernet issue I was having. Unfortunately, the databases I removed were not deemed either by apple or me to be noteworthy or necessary to retain (all of them were for software I not longer have or use). I don't know which plist file might have been the one I need now. I did reinstall the java and flash items. The only other item that I think it might be is a set of belkin router software that I uninstalled because i'm not using any belkin hardware anymore.
    If someone has any kind of idea I would be most appreciative.

    That's a comment in the file. It has no effect at all.

  • Open url in a new browser via a button

    I have created a button within a region and set request='go'. I then have a branch that when request='go', it branches to a url. Is there a way to open a new window when it branches to that url? Basically, I'm trying to open a new browser to go to a specified url when a button is clicked.

    Yes no problem,
    call an javscript function, which open the new window. that function can get as parameter the item value (eg. the URl text)
    function callMyPopupTest(url)
    w = open(url,"winLov","Scrollbars=1,resizable=1,width=1100,height=350");
    if (w.opener == null) w.opener = self;
    w.focus();
    this should work
    In this excample the URL is static for the button.
    If not you have to solve the problem inside the javscript function with getting the value of the item (the url text)
    document.getElementById('P21_URL').value;
    for that the javascript function parameter has to be the id(eg. name: P21_URL).
    hope that helps
    thorsten

  • Open URL in a new window by closing the parent window

    Hi Friends,
    Is there any option to open URL in a new window by closing the parent window on a button click?
    Already implemented the logics suggested in /people/mohammed.anzys/blog/2007/06/05/how-to-close-parent-window-in-webdynpro-applications , the thread ' URL in same window '  and the standard component WDR_TEST_EXIT_PLUG .But button is not triggerring any actions .plz help me  ..............
    Regards,
    Radhika

    hi,
    Do the following steps :
    -> Make an Outbound Plug to the Window.
    ->Make the type of Outbound plug to Exit Type.
    ->Add URL of type String as a parameter to the outbound plug of Window.
    ->Do remember to add Component Name in the Properties Tab of View ( othervs Calling Outbound plug of window from view wont b possible ).
    To open a new URL with closing the previous one write this Code in OnAction of Button : ( this Code can be get from Code Wizard too ).
    DATA lo_zexit TYPE REF TO ig_zexit .   <zexit is name of my Component>
    lo_zexit =   wd_this->get_zexit_ctr( ).
      lo_zexit->fire_out_window_plg(
        url =   'http://www.google.com'                            " string
    I hope it helps.
    Thanx.

Maybe you are looking for

  • How can i create stored procedures dynamically?

    I have tried to create a stored procedure building a string with the PL/SQL code needed to create the procedure. If i run the code using SQL+ works fine, but using the following code: Public Sub CreateStoredProcedure() Dim strSql As String strSql = "

  • Wi-Fi At Home?

    Hi guys I've been having a problem with my browser. So it seems that whenever I'm at school or pretty much anywhere my wifi works but now that I'm at home my iPod will not let me surf the net, go on youtube, or connect to the store. My iPod is able t

  • Less than a second of audio on 2 of my audiobooks

    Before I left on vacation, I added 3 audiobooks to my IPod. I listened to and finished one of the audiobooks on the trip but when I went to start the next one, I only got less than a second of audio and the counter was stuck at 10 seconds. The same t

  • FM for Interaction record

    Hi Any body  could you pls post me what exactly is the FM for Interaction record creation in CRM? Thanks

  • Interaction between 2 classes (servlet and someother)

    Hi all, I have 2 java files one is a servlet and the other is an ordinary java file which checks to see whether a username and password exists in the database(UserPresent.java).This file has got the presentation layer which has to be put into the ser