Get Url from all tabs
Hello,
I feel like this is something simple but I cannot write a correct script to do it.
How would I write a script that just gets the urls of all tabs in safari?
then if one exists, it selects that tab to be opened.
Would It be easier that instead of telling safari to open that tab if it exists, to set the beginning part of my script that gets info from safari to get info from all tabs, for a specific tab only?
I don't understand your goals to be able to tell you what you want. Given what you've said in earlier posts it sounded like you wanted to see if a particular URL was present in any tab and if so activate it. That doesn't seem to be the case any more. You'll need to more clearly explain what you're trying to do in order to progress.
I purchased a book http://apress.com/book/view/1430223618 which I am going to use to better help me make applescripts as well as cocoa-applescript applications in xcode. Do you think this book will be able to help, or is there another I should look at?
That book, like most others, covers a lot of the theory behind AppleScript - the concepts behind AppleScripts/Apple Events, and things like handlers, process flow, etc.
It will not tell you how to do what you want, because what you want is something very specific - unique, even. What it might do is give you the fundamental building blocks to work out how to build your script to do what you want. For example, I've shown you some examples of how to find out what tabs are present, how to activate a tab, how to switch windows, etc. The book might do the same thing (albeit spread throughout several chapters). It's a matter of putting that together in a way that achieves your goal.
Similar Messages
-
How do I change a URL from a tab?
How do I change a URL from a tab?
I'll tell you my situation.
I have a page, with 4 tabs. At the beggining the page didn't have tabs and it had content like pictures and ome text. When I added a tabs, that same content is displayed in each one. So, if I erase the image of tab 'C', for example, that image erases for all the tabs too.... If I add content to tab 'C', another example, and I only wanted to displayed that info on that tab, it's displayed in all the tabs too... What's wrong? -
How get firefox show ALL tabs?
How get firefox show ALL tabs, like other browsers, without scrolling and without addons(TabMix and other)?
There are in performing such a task. Changing advanced in the location may cause harm to stability. Do exactly as i say...
Type- '''about:config''' -in the address bar and then press enter.
Click I'll be careful, I promise!
In the filter box type '''browser.allTabs.previews'''
Double click on the value to set the value to '''true''' instead of false.
Then close the tab and see the final result -
How to get back "Bookmark All Tabs" in menu ? Please if you don't want it (still quite some ppl want because it's usefull), at least allow to get it back trough Preferences (or at least about:config)
Some menu entries in the main menu bar are hidden if you use the mouse and only appear if you use the keyboard to open the menu (Bug 626825).
You can see the difference if you use Alt+F to open the File menu or other menus like the Edit menu (Alt+E) and Bookmarks menu (Alt+B) and compare that to what you see if you use the mouse to open the menu after you have made the menu bar visible by tapping Alt or by pressing F10.
* "Bookmark All Tabs" (Shift+Ctrl+D) no longer shows in the Bookmarks menu unless you open the Bookmarks menu via the keyboard (Alt + B).
* "Bookmark All Tabs" can be accessed via the right-click context menu of a tab on the tab bar.
See also:
* [[/questions/799856#answer-155765]]
* Bookmark All: https://addons.mozilla.org/firefox/addon/bookmark-all/ -
I don't get pictures from all participants in a shared album.
I don't get pictures from all participants in a shared album.
Is it possible to reset the album without deleting it? I'm the creator of the shared album.As far as I know there is no option to reset without deleting, but check it out for yourself.
iCloud Photo Sharing FAQ - Apple Support -
Opening a tab (right click on a url) and I get an empty/blank window.
If I copy the url from the emty/blank tab and then open a new private browsing window and do a paste and go, everything works.The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
To Reset Firefox do the following:
#Go to Firefox > Help > Troubleshooting Information.
#Click the "Reset Firefox" button.
#Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
#Firefox will open with all factory defaults applied.
Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
Did this fix your problems? Please report back to us! -
Getting Selections from each Tab of a Script UI Tabbed Panel
I am in the process of creating a script to import fields from any tab delimited file. Mainly for directories but at times we have other items. The number and names of fields are always changing so it has to be flexible. The user first selects the file, then selects the field names, and orders the field names. That all works. The next step is for the user to then select the formatting to go between each field. Which is where I run into a problem.
The below is created from the array of the ordered field names, as you can see the creation of the box works fine. The tab names are the names of the field and they show up in the right order. However, no matter what I select on the other tabs my value is always defaulting to whatever the last selection (in this case the selection on the Streetname tab). What is really weird is I am getting the correct name of the tab but not the correct formatting for that tab- no matter what I've tried I get only the formatting for the last tab. I have gone through multiple rounds and numerous searches and can't seem to figure out what is wrong. Any help would be appreciated.
//|||||||||||||||||||||||||||||||||||||||||||| function formatFields(finalList) ||||||||||||||||||||||||||||||||||||||||||||
//From the selected headers arrange in the order they should be imported
function formatFields(finalList){
//set formatting variables for preview window
var Pvw_space = "\u00A0"; //unicode space character for preview window
var Pvw_tab = "\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0"; //unicode space characters simulating tab for preview window
var Pvw_flb = "\n"; //forced line break for preview
var Pvw_comma = "," + Pvw_space;
var Pvw_string = "";
var selForm=[];
//create and populate tabbed window
var FF_win = new Window ("dialog", "Select formatting for each field", undefined, {closeButton: false});
FF_win.alignChildren = "right";
var tpanel = FF_win.add ("tabbedpanel");
tpanel.alignChildren = ["fill", "fill"];
tpanel.preferredSize = [350,300];
//create one tab for each field
for (i = 0; i < finalList.length; i++) {
var tabName = finalList[i].toString();
var general = tpanel.add ("tab", undefined, tabName,{name:tabName});
general.alignChildren = "fill";
var g_options = general.add ("panel", undefined, "Please select the formatting to follow this field");
g_options.alignChildren = "left";
g_options.tab = g_options.add ("radiobutton", undefined, "Tab");
g_options.tab.value = true;
g_options.flb = g_options.add ("radiobutton", undefined, "Forced Line Break");
g_options.space = g_options.add ("radiobutton", undefined, "Space");
g_options.comma = g_options.add ("radiobutton", undefined, "Comma");
//Preview and Cancel buttons
var Confrimgrp = FF_win.add("group");
Confrimgrp.orientation="row";
var Prev_button = Confrimgrp.add("button",undefined,"Preview",{name:"ok"});
var Back_button = Confrimgrp.add("button",undefined,"Back",{name:"cancel"});
//determine sorting of list
Prev_button.onClick = function() {
for (i = 0; i < finalList.length; i++) {
with (FF_win.findElement(finalList[i].toString())){
if (g_options.tab.value == true){
alert (finalList[i].toString() + ": tab");
if (g_options.flb.value == true){
alert (finalList[i].toString() + ": FLB");
if (g_options.space.value == true){
alert (finalList[i].toString() + ": space");
if (g_options.comma.value == true){
alert (finalList[i].toString() + ": comma");
Back_button.onClick = function(){$.destroy();}
//show dialog
FF_win.show();
Back_button.onClick = function(){$.destroy();}
//show dialog
FF_win.show();Adding an instance moves it, it does not copy it.
-
Get URL from within a Ejb-Container
Hi all,
I try to realize a WD-Application with Hibernate ORM. Now it seems , that from within the Ejb the hibnerate.cfg.xml couldn't be found.
No I try to read the URL from hibernate.cfg.xml. There I did some test with the getResource()-Function. At least I managed to get a URL from a zip-archive, but I'm not able to found the URL from something inside the archive, <b>and my configuration is in an archive!!!</b>
See the following tests:
URL myurl11 = cl.getClass().getResource("/"); //works
URL myurl12 = cl.getResource("/"); //works not! (without getClass())
URL myurl2 = cl.getClass().getResource("/version.txt"); //works
URL myurl3 = cl.getClass().getResource("version.txt");//works not (relativ)
URL myurl4 = cl.getClass().getResource("/apps/sap.com/dc~oracle~ear/src/java/src.zip");//works
URL myurl5 = cl.getClass().getResource("/apps/sap.com/dc/oracle/ear/src/java/src.zip");//works not
URL myurl6 = cl.getClass().getResource("/apps/sap.com/dc~oracle~ear/src/java/src.zip/de/pa/ejb/systeme/SystemeDao.java");//works not
URL myurl7 = cl.getClass().getResource("/apps/sap.com/dc~oracle~ear/src/java/src.zip/de.pa.ejb.systeme/SystemeDao.java");//works not
URL myurl8 = cl.getClass().getResource("/apps/sap.com/dc~oracle~ear/src/java/src.zip/de.pa.ejb.systeme.SystemeDao.java");//works not
As you can see with "myurl14" it works for a zip-file but not futher. How can I get Into an archive? Or even adress things relative?
Can anybody help me?
Thanks
RichardHi Joe,
Thanks a lot for ur reply,
But the LD_LIBRARY PATH is set to the user that runs the App Server, Since it is throwing a UnsatisfiedLinkError, there must be a problem with the link only(i.e calling native method).
The flow of data is as follows
1 A method from ejb calls another java method in an other java class which is in the same jar file,passing the actual arguments.
2 That java method calls the Native methos residing in the same class file
3 The Native mentod calls a c function as usual
My ejb is working fine up to the Native Method call, at this point it is throwing an error
All my java files are in a package, and my .h file contains package name in the prototype of c function
If you get any ideas please mail me ASAP
ThanQ
Kiran -
Is it possbile to get URL from the browser address bar?
Hi
I'm in the process of creating a JITIR agent in java that takes in the url of the website that the user presently viewing.
I don't want the user to have to copy or type in to my app the websites URL. Is it possbile to get this from the process e.g. The browser address bar, or the HTTP:// request sent by the browser.
Any thoughts gratefully recieved.
PhilI'm in the process of creating a JITIR agent in javawhat's this?
robert -
Hi I'm trying to display a menu from a table, and then I want to mark the current page in that menu by reading the url of the current page.
This is what i've got so far:
DECLARE
loc Varchar2(40);
BEGIN
loc := htp.script('document.url');
htp.print('<table border=1>');
for rec in (select id, name, parent_id, url from fgj_menu where parent_id=0) loop
HTP.print ('<tr>');
HTP.print ('<td><a href="' || rec.url || '">' || rec.name || '</a></td></tr>');
for rec2 in (select id, name, parent_id, url from fgj_menu where parent_id = rec.id) loop
if rec2.url = loc then
HTP.print ('<tr>');
HTP.print ('<td> >> <a href="' || rec2.url || '">' || rec2.name || '</a></td></tr>');
else
HTP.print ('<tr>');
HTP.print ('<td> <a href="' || rec2.url || '">' || rec2.name || '</a></td></tr>');
end if;
end loop;
END LOOP;
htp.print('</table>');
END;fails on 4th line :
loc := htp.script('document.url');Any suggestions?
Message was edited (format edits) by:
BotzyHi Botzy
You can put your javascript code in an HTML portlet, but I prefer to put a page under htdocs, it's much easier to develop, and then use an url item that displays the url directly in the page.
About the code :
var xhr_object = null;
if(window.XMLHttpRequest) // Firefox
xhr_object = new XMLHttpRequest();
else if(window.ActiveXObject) // IE
xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
xhr_object.open("POST", "/portal/pls/portal/my_schema.my_proc", true);
xhr_object.onreadystatechange = function()
if(xhr_object.readyState == 4) alert(xhr_object.responseText);
xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhr_object.send('p_param1=value1&p_param2=value2');
That's really simple to use, you just have to change the name of your proc and its parameters, and you'll get what it "htp.prints". Be sure to grant exec to public on you proc.
By the way, I've just imagined an even more simple solution :
- do not pass any param to your procedure. Let it just write always the same code whatever the page it is on
- identify each entry of your menu with a javascript id, for instance
<table>
<tr><td id="url1">page 1</td></tr>
<tr><td id="url2">page 2</td></tr>
etc...
Then use a small javascript code at the end of your page with something lie this :
document.getElementById(document.location.href).style = a different color
or
document.getElementById(document.location.href).innerHTML = something different
or whatever you want. -
Get URL from Mail message to Safari
I want to be able to email myself at home from work with a URL in the body of the message. I want a Mail rule and Automator (or applescript if necessary) to take that URL from the message body and send it to Safari which will go to the URL. The URL can be either a web page or downloadable file.
Quad G5 Mac OS X (10.4.7) 4.5GB RAMShoot! I wrote this huge reply and then quit Safari by accident. I'm too tired to type it all over again (I should install a keylogger).
Anyway, check out the screen shot of my workflow. the AppleScript section is where it xfers the URL from a text editor (BBEdit) to Safari. It's pretty dirty but it works.
http://www.jameskocsis.com/urlworkflow.jpg
post antother reply if you need more data on this process.
Good luck.
-James -
Hello,
I have read a couple posts in regards to the GEt URL function
but couldn't find what I'm looking for.
Trusting someone can help.
Here are two reference files
1- Main swf that loads the movie clip
with the links
Swf
that displays the links I'm opening in a new window
I'm able to open the url on a new window but couldn't find a
way to control the height of this window. Please note that the
links are all inside a text box. They are not separate buttons they
are just text hiperlinks.
Please let me know if any of you knows how to control the new
_blank window height.
Thanks
FeHi. You should consider posting this to either the iPhone forum or the Developer forum. This forum is for discussing the Unix subsystem of OS X...
-
Hello,
How do I get the URL from HTMLImg? I get the HTMLImg object from
GetImageForResultFromSource
I am using C# in 5.0.4
Thank you.not with Java ... and only if IE actually provides an API that lets you get it. And only if you can get a reference to the IE process.
It's really more an IE question, not Java. -
I have an iphone 4 I can get texts from all but I person. Why? They can get mine
I have an iphone4 I can get texts from everyone but one person. They can get mine. This started all of a sudden. Any suggestions?
the mute button is a switch you need to flip, not touch. if you look at it and see color, its on.
-
How to get urls from urls.
to be exact, how do i get automator to search urls from current webpage, and then search urls again from those urls i got from my current webpage.
Thanks in advance!Try this;
* http://techdows.com/2011/09/show-http-in-firefox-7-address-bar.html
Maybe you are looking for
-
Airport Express network suddenly no longer visible - but only for one Mac..
What the..? My 20" iMac Core Duo can no longer see my Airport Express network. It happened yesterday after restarting the AE a few times.. (I do this and also restart the modem from time to time if the net connection stalls - or I want to boot of my
-
How to get the path of a project?
Hi, i am doing an extension in jdeveloper..How do i get the source path of the project? I trying using the URL projectURL2 = project.getURL(); but it will return the file:/file:/F://ProgramsInstallation/jdevstudio10132/jdev/mywork/Application2/Projec
-
Why is my 2008 macbook pro so slow?
What is the best thing to do for a 2008 macbook pro that seems to run slower as it gets older? Should I take it to the apple store or is it something I can possibly fix myself? Thank you very much~!
-
HT2498 my photo booth is unconnected need help! asap
its telling me the camera is not connected? how to connect it??
-
Pictures in iPhoto 6 library flash and then disappear but leave a box
OSX 10.5.8 iPhoto 6 pictures in library flash and then disappear but leave an empty box