Another way to do this might be as follows: 1. Use the existing custom web search to find the page you are looking for and open it in Safari. 2. Use Quicksilver to run the following AppleScript. It will return the cleaned URL to Quicksilver's first pane.
*set* baseUrl *to* "https://support.oracle.com/epmos/faces/DocumentDisplay" *tell* *application* "Safari" *to* *set* theUrl *to* URL *of* *its* *front* *document* *if* theUrl *contains* baseUrl *then* *set* theId *to* *do shell script* "echo " & quoted form *of* theUrl & " | perl -pe 's/.*\\bid=([0-9\\.]+)\\b.*/$1/'" *tell* *application* "Quicksilver" *to* *set* *its* selection *to* baseUrl & "?id=" & theId *else* *tell* *application* "Quicksilver" *to* *display alert* "Not an Oracle support document URL:" & return & return & theUrl *end* *if* Save this script in ~/Library/Scripts (where ~ is your home folder) and make sure "Scripts (User)" is activated in the Scripts section of Quicksilver's catalogue. On Thursday, 20 April 2017 09:06:16 UTC-6, J. Greg Williams wrote: > > I have a custom search defined. qss- > https://support.oracle.com/epmos/faces/DocumentDisplay?id=*** > > This works great. > > When I actually go to the website the url is modified with all kinds of > weird custom stuff that makes the URL only work for me when I'm logged in. > > I want to be able to share the generated URL from this search. Which > would work for anyone else (with a login). > e.g. *https://support.oracle.com/epmos/faces/DocumentDisplay?id=1537255.2 > <https://support.oracle.com/epmos/faces/DocumentDisplay?id=1537255.2>* > > I have been unable to figure out a way to get this. > > I can control-return to collapse the search into one action to be "run" > and then switch that to "copy to clipboard". This results in nothing in > the clipboard. (bug? ) > > I also tried running the search and then using the Last Object proxy and > paste as plain text action. This only results in "Search for “1537255.2” > using Oracle DocID" > > Any thoughts on how I can get the generated search URL prior to the actual > website loading (and redirecting to all the various embedded login > options?) > > Thanks in advance, > > Greg > -- You received this message because you are subscribed to the Google Groups "Quicksilver" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/blacktree-quicksilver. For more options, visit https://groups.google.com/d/optout.
