Applescript to get the Url's of Safari for multiple browser instance??

Hi All,
am trying to get the URL's of the opened windows in more than one instance of Safari.
I have got the script to get the url's of single instance, Pls suggest the same for multiple instances of safari browser with different windows opened for each instance. current code am uisng:
tell application "System Events"
          set theURL to URL of current tab of window 1 
end tell

Try this:
set theURLs to {}
tell application "System Events"
    get id of processes whose name is "Safari"
    repeat with thisID in result
        tell (process 1 whose id is thisID)
            tell windows
                copy value of text field 1 of group 2 of tool bar 1 to the end of theURLs
            end tell
            tell (windows whose name contains "abc")
                click button 1 -- close
            end tell
        end tell
    end repeat
end tell
theURLs

Similar Messages

  • How to get  the last used session id for a browser session

    In HTMLDB 2.0 it is not possible to start a page with authentication without a SESSION_ID and when you start a public page without a SESSION_ID, then every time a new SESSION_ID is generated when you don't use the SESSION_ID in the URL.
    In the same browser session I want to make a URL call to a HTMLDB page without a SESSION_ID and this page has to give back the last used SESSION_ID.
    How can I do that?

    Fred - You could record that session ID in a table. Each time your authenticated application runs, it would update that table with the "latest" session ID, perhaps using an application process. Then when you are formulating the URL to the public page from another application, you'd get the session ID from that table. Or you could use the page sentry component of your app's authentication scheme to send a cookie to the browser on every page view. The cookie would contain the session ID and the other application could access the cookie to complete the URL.
    Scott

  • How to get the list of BIP reports for a perticular instance?

    Hello All,
    We have a requirement to list all the BI Publisher reports available in an instance from outside BIP.Is there any way to get the reports with the instance details as parameters?And is it possible to run BIP reports from command line?
    Do we have any API's to do these?
    Thanks in advance...

    Hi,
    there's a Java API and a Web Service API available for BI Publisher. The Web Services API for example has functions to get the content of folders or the parameters of a report.
    Have a look at
    http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e10416/bip_webservice_101331.htm#CHDGIJHH
    Regards
    Rainer

  • Inspite of having javascript enabled, I am getting a message"21966 javscript disabled for this browser". How do i get it done?

    I checked the tools options wherein the javascript was enabled. However, I still get the message :21966 Javascript disabled for this browser. Now I am not able to move forward unless this has been sorted. How do I solve this issue?

    Read the article you linked.
    If changing your password does not resolve, then contact itunes support

  • I deleted the url box in safari!  how do i get it back??  I think it was dragged into trash...but I deleted my trash!!!  Help me, please?

    I accidentally trashed the url box in safari and deleted it in trash!  how do I get it back?

    Right click on the toolbar and select Customize Toolbar, you can put it (and other things) back from the dialog box that you'll get

  • Webkit get the URL of a link

    I am trying to add policy functionality to an app that I have written so that, for example, instead of opening a link to a page within my app itself it might open the link in the default browser or open a window to handle the functionality internally rather than use the functionality provided online.
    At this stage I am only trying to log what the URL is so that I can see what the format is. Once I've worked that out, I'll put together the policy code. The code that I have written so far is this:
    <pre>
    - (void)webView:(WebView *)sender decidePolicyForNavigationAction:(NSDictionary *)actionInformation
    request:(NSURLRequest *)request
    frame:(WebFrame *)frame
    decisionListener:(id<WebPolicyDecisionListener>)listener
    // get the url from the information dictionary:
    NSURL *url = [\[actionInformation objectForKey:@"WebActionElementKey"] objectForKey:@"WebElementLinkURL"];
    // log the url's scheme
    NSLog(@"absolute string is \[%@]", [url absoluteString]);
    // NSLog(@"relative string is \[%@]", [url relativeString]);
    // NSLog(@"fragment is \[%@]", [url fragment]);
    // NSLog(@"host is \[%@]", [url host]);
    // NSLog(@"parameter string is \[%@]", [url parameterString]);
    // NSLog(@"user is \[%@]", [url user]);
    // NSLog(@"password is [%@]", \[url password]);
    // NSLog(@"path is \[%@]", [url path]);
    // NSLog(@"relative path is \[%@]", [url relativePath]);
    // NSLog(@"port is \[%@]", [url port]);
    // NSLog(@"query is \[%@]", [url query]);
    // NSLog(@"resource specifier is \[%@]", [url resourceSpecifier]);
    // NSLog(@"scheme is \[%@]", [url scheme]);
    }</pre>
    As you can see, I've tried every component of the WebElementLinkURL - but without luck. The results mostly came back null - only absoluteString seemed useful (hence it's the only one not commented out). But even that didn't so far enough.
    For example, when clicking a link, absoluteString returns
    22/04/2009 09:58:00 Test[646] absolute string is [https://test.internal.com/#]
    Hovering over the same link in Safari, or clicking on it, returned https://test.internal.com/client/help
    The question, therefore, is how can I get my code to return the URL in the same manner that Safari does. The website I'm trying to view does contain a fair bit of Javascript - I don't know if this is relevant though.
    Methinks I am looking in the wrong place!

    Hi Jun,
    Before creating a customised framework page, copy the default framework
    page provided my SAP to your own namespace and make changes.
    Just open the copied page, set masthead to invisible ,this can be done
    for any other component that you want to hide on the framepage.Then
    make only the inner page visible, if that's what you want.
    Then create a url iview that points to this page and pass room details as
    parameters.This can be assigned to any role that you wish.
    <i>Pls reward points if helpful</i>
    Regards
    Vineeth

  • How to get webpage URL with new Safari  V6.0 under OS 10.74

    Now that the URL space of Safari allows searching by key words, and there's no separate Google search box, this poses a problem.  
    Let's say one wishes to search for images of "kendall jenner model".   This will bring you to a Google page of multiple individual images.  BUT unlike prior versions of Safari, no long URL is formed so one cannot repost the URL in a forum.  So now I must use Chrome or browser other than Safari to get the URL of the entire page.  Here are the examples of what one is left with in the URL box:
    •   Old Safari URL (or Chrome):  https://www.google.com/search?q=kendall+jenner+model&hl=en&prmd=imvnsuo&tbm=isch &tbo=u&source=univ&sa=X&ei=1pw3UK63LsmwiQKvxIHoDQ&ved=0CCAQsAQ&biw=1050&bih=639
    •  New Safari URL:  kendall jenner model  (which is useless)
    QUESTIONS:  Using Safari V6.0, how does one get the entire page URL ?    Can the dedicated Google search box at the top be revived so that the proper URL appears in the central top box ?

    Just found the cure for Safari 6.0 under 10.74
    In Safari preferences,  changed the default search engine from Google to Yahoo.  Now whenever, for example, a search is made in Google's images, and other websites, the full URL shows in the address line.
    Now all websites show the full URL, even through they were derived from search words in the URL field.

  • How to get the URL of the request.

    I am trying to get the URL from where the request is coming to the servlet. If http://www.xx.com/ calls my servlet i want to know that the request is coming from http://www.xx.com/ URL. If i use request.getRequestURL() which is displaying my servlet URL. Please help me which is very urgent.

    You actually want the referrer? You can obtain it from the request headers as follows:String referrer = request.getHeader("referer"); // Yes, with the legendaric misspelling in there.Having said that, be aware that the client has full control over what he sends with the request headers. So the client can change/spoof/remove the referrer entry to his taste anytime. Your code should not rely that much on it, it should rather be used for statistics only.

  • How do I get the activity window in safari 6.0.2?

    How do I get the activity window in safari 6.0.2?

    Safari 6
    Activity Window is no more available in Safari 6.
    Apple removed that feature.
    Best.

  • How to get the URL of an iView using AbstractPortalComponent

    Hi All,
    I need to get the URL of an iView using AbstractPortalComponent using the following code.
    But i am unable to open the URL from the Browser
    This is the following code snippet
    public class AbsClass extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
    IPortalComponentURI componentURI = request.createPortalComponentURI();
    componentURI.setContextName("pcd:portal_content/LOG_Viewer/LogViewer");
    String URI=componentURI.toString();
    response.write(URI);
    The output i got from the browser is:
    /irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fLOG_Viewer!2fLogViewer
    Actual Path: pcd:portal_content/LOG_Viewer/LogViewer
    Output Path: /irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fLOG_Viewer!2fLogViewer
    Why some extra numerics are embeded in the output path when compare with the Actual Path.
    Can any one send me the modified code and your suggestions, how to achieve this problem.
    Regards
    Phani

    Hi,
    Now i need to get the URL of this component.
    IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
    IPortalComponentURI componentURI = request.createPortalComponentURi();
    componentURI.setContextName("com.sap.portal.appintegrator.sap.bwc.Transaction");
    String URI=componentURI.toString();
    response.write(URI);
    I export this component into Portal and i tested with an iView based on this par file, i got the URL in the Preview.
    But when i tried to run this URL by adding the http://<IPADDRESS>:<PORTNO>+URL
    I am facing one AccessDenied Exception for this Object. ( USER/GUEST)
    Is there any security zone, or other Permissions Problem, if so can you plz guide me what are the settings i have to change inorder to resolve this exception
    Regards
    Phani

  • I am unable to reply to your e-mail convermation--how can I get the URL to past into my browser?

    Received a confirmation e-mail requestion me to reply to it and I cannot get the URL to paste to my browser--how can I do this???????/

    Hi June,
    Sorry for the trouble you've had.
    I've verified your account on our end and you should be able to access the ExportPDF service now.
    Please let us know if you have any questions!
    -David

  • How to get the url of a document in content management?

    Hello,
    I have used API  'SKWF_PHIO_CONTENT_URL_GET to get the url of a file in CRM content management. But when I tried to open this url in explorer got error message "SSF error: Decoding not possible". Could any one please help me to resolve this problem.
    Thanks
    Nisha

    Thanks for replying - unfortunately, there is not much
    support on these forums.
    I wish there was some way to emulate the mouse from
    Javascript to click the play, pause, and slider buttons... but one
    would't even know, programmatically, the location on screen of the
    play, pause, and slider buttons.
    quote:
    Originally posted by:
    davexnet
    You'll notice that questions like this don't get answered on
    this
    forum. The Flash player has a philosophy that skews the power
    over almost everything about it to the content providers,
    and precious little control, if at all, to the client player.
    It's a crappy situation - I use Flashblock in Firefox and
    only view the
    content *I* want to see.
    It works for me, particularly since I'm using an older
    (slower )
    computer that really gets bogged down by aggressive Flash
    content.

  • How to get the url of the document in quick parts?

    I have document library in which there is one content type with the document template uploaded. In the footer of the document, I want to show the URL of the document which is opened in word application.
    Is there any way to get the URL? I am not able to see the field in Quick Parts while configuring footer of document template.

    Alexdu_,
    You can create a single line text site column in that content type to hold URL information.
    Create a SPD workflow to populate URL field using update field of current list.
    This custom column will be available as Quick part in word.
    This could be an alternate approach as URL is not available as quick part field.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • How do I get the URL of a jsp page?

    I have a jsp page which has a link to a servlet page, in the servlet page, I want to get the URL of the jsp page.
    I tried to use request.getHeader("referer"), it seems like if it is a link in the jsp directly lead to the servlet, it works, but if the link calls a javascript function which opens up a window runing the servlet, it is not working. I have to do the second way, so it is not working by doing request.getHeader("referer")
    I tried to use javascript "location.href", I get the whole url by alerting the url in the jsp page:
    http://localhost:8080/pos-webapp/serv/qt_old?currentpage=portal&bcd=ABC123&pnm=P1001830&prnm=1&psd=236863.0&ln=01&sln=NYPPA&stp=2.1&stt=A&_POSID=1F8464122ADAF4EEC9B1A94C286EB252
    then I pass this url when calling with my servlet, in the servlet page, when I do request.getParameter("url"), the url is actually cut off like this:
    http://localhost:8080/pos-webapp/serv/qt_old?currentpage=portal
    anything after &pnm is cut off, anyone has any idea?
    Thanks in advance.

    Thank you.
    but how do I put encoding in the javascript code? do I need to decode in my servlet page?
    here is my code in the jsp page:
    linkset[3]+='<div class="menuitems">Email Diagnostics to AutoOne</div>'<%     
    function emailDiagnostics()
    win = window.open("/pos-webapp/serv/email_diagnostics?url=" + location.href + "&browser=" + navigator.appName, "emailDiagnostics",
    "width=350, height=140, resizable=no, scrollbars=no, toolbar=no, location=yes, directories=no, status=no, menubar=no, copyhistory=no, left=450, top=300");
    win.focus();
    }

  • Can I get the URL of any other browser window in java

    Can I get the URL of any other browser window in java

    Hi, did you find the way to find the URL of the WSDL? I have the same problem.

Maybe you are looking for

  • Problem with installing Flash on Windows 7

    Hello, I intstalled flash and enabled the setting for my internet explorer browser under manage add ons. I also checked and saw it listed in the control panel programs. However, it is not working. I tried the adobe help site, and flash is not registe

  • 11/11/2014 - Release - AIR 15 Runtime and SDK

    Today we're pleased to announce that the next version of AIR is available for immediate download.  This release includes bug and security fixes.  In addition, the AIR SDK has been updated with important iOS 8 compatibility updates. Below are some of

  • Updating iPod w/ iTunes 7

    I used iTunes 6 and had to manually update my iPod, because i deleted the music off of my computer after i had transfered it. So, i put it on manuel, because if you dont, it wil automatically delete everything on your iPod or (update) it with an empt

  • Should I buy the Zen V Pl

    Hello everyone,?I'm looking for a new player that's compatible with Raphsody. I know the Zen V Plus is able to work with this program but has anyone ran into any problems or concerns that I should know of? My last player started having issues with Ra

  • ORA-21700 Error when running C# stored procedure to do a spatial query

    Hi All I'm having trouble running a C# stored procedure that (via another object) that falls over running a spatial query with the following error. OAR-21700 object does not exist or is marked for delete If I take the sql of the spatial query out and