Open file in a new Firefox tab

Hi,
I'm using a script to view html files from TextWrangler in Firefox:
tell application "TextWrangler" to set theFile to file of document 1
tell application "TextWrangler" to save theFile
tell application "Finder" to open theFile using (path to application "Firefox")
Works fine, except that the file is opened in a new window in Firefox. I would like to have it in a new tab in the active Firefox window (if Firefox is already running).
Any ideas how to do that?
Thanks.

Try using:
tell application "TextWrangler" to set theFile to file of document 1
tell application "TextWrangler" to save theFile
set the_URL to "file://" & POSIX path of (theFile as alias)
tell application "Firefox"
Get URL the_URL
end tell
You may need to change the settings in the Tabs section of the Firefox preferences for this to work correctly.
(17379)

Similar Messages

  • How can I put OSX 10.7 on a new Macbook Air. Maverick no longer allows "open file in a new window" and I really miss it. At the Apple Store they told me it can't be added to the new OSX 10.10 so I  want to change the OSX on the new Macbook Air and it

    I have been using a 2012 Mac pro to do HD video editing. I bought a new portable Macbook Air only to find that Maverick no longer has "open files in a new window" which I use all the time in the very large folders of video clips and royalty-free music. I asked at the Apple Store how I could get this back on the Macbook Air and they said it couldn't be done so I thought I would re-format the HD and install 10.7 on it and was notified by the Macbook Air I can't put 10.7 on that computer. Apple use to give this as an option but now they have gone more to the attitude of "Do it our way or go to ****!" In anger I went out and bought a Dell Laptop and Pinnacle Studio 17 which I have been learning to use. I have been an Apple/Mac user since 1979 and would still rather do my video editing on a Mac. Is there any way that I can force the Macbook Air to let me load in OSX 10.7 where there is still the option to  "open files in a new window" or is there a way to add this to Maverick? The experts at the Madison, WI Couldn't give me any help on this.

    Choose Preferences from the Finder menu, click on the General tab, and uncheck the box to open folders in a new tab.
    (117195)

  • Simply put, I do not like like the new color coding "dots" and I do not like having to press the Command key before double clicking to open files in a new window. How hard would have been to include the old version of these two features?

    Simply put, I do not like like the new color coding "dots" and I do not like having to press the Command key before double clicking to open files in a new window. How hard would have been to include the old version of these two features?

    Apple - Mac OS X - Feedback

  • Kate always open files in a new window after kde upgrade

    kate always open files in a new window, instead of the existing window as a new document after kde upgrade to 3.5. someone else have the same experience and have a solution for that ?
    cheers,
    notz

    The problem is solved!
    Apparently the Content Disposition: Attachment in the BLOB Download Format Mask does the trick.
    For some reason I have to logout and login again in the application to see the change.
    I tried changing the Content Disposition to Inline and then back to Attachment, and the file keeps opening in the same window unless I start a new session.
    Is there any explanation why it is working that way?
    Thanks!
    Erick

  • Cannot open files or create new files in Photoshop cc trial

    Hi,
    after getting no support from your phone support line. I am writing here in hopes that this issue can be resolved. I cannot open files or create new files in Photoshop CC trial. Please help

    You can open Photoshop, you cannot create new documents. If you click file>new, the normal new dialog box opens, if you click "ok" it goes away. If you double click a PSD it focuses the Photoshop window. Nothing else happens.
    For me this is a new issue today. My computer is an i7/780, more than capable of Photoshop, and has run it fine up until now. My keyboard started freaking out last night and doing things I didn't want it to. I suspect it changed a setting or broke something.
    I have uninstalled and re-installed and it did not resolve the issue.
    This is obviously a critical issue that needs immediate attention.

  • Opening file in a new tab/window

    Hi,
    I have a form (HTML added through a widget) and a number of images on one page. I want each image to be a link to a file, where the images will be seen full quality. however, doing this takes visitors away from the page instead of opening a new tab/window - then clicking back means that the form data is lost - i.e. tickboxes are no longer ticked, etc.
    I cannot use the photo viewing page included in iWeb, as the pictures will then overlap with my form because the enlarged images are loaded on the same page.
    I hope this makes sense, and if anyone could help with opening files in new tab/window it would be great, or a way of opening a photo viewing platform in a separate tab/window directly from a click of one of the photos. I have seen other sites - http://www.aroundthebusch.com/Folio/London%20to%20Istanbul.html
    (this is not mine) where the photo viewing "platform" is IDEAL. I would love something just like this if someone could advise.
    i do not want the photos to link to an external page (which can be opened in a new window) as it would mean me creating separate pages for each picture, and linking them all... no way!
    Also, it would obviously be preferable to be quick to set up, but also to change. I would need to have multiple pages of many photos, each with the viewing facilities so it could not take a long time to set up. I may also need to add/delete some photos, so if all the linking work was done automatically it would be fantastic.
    Any help much appreciated,
    Thanks in advance, James

    If you open it in javascript and specify a height/width or location it should open in a new window.
    window.open("http://www.adobe.com", "_blank", "toolbar=yes, scrollbars=yes, resizable=yes, top=500, left=500, width=400, height=400");

  • How do I prevent tabs in the task bar from opening everytime I open a new Firefox tabs from the Start Menu?

    I have four tabs in my task bar at the bottom of my computer screen. If I go to Start and open a new Firefox window then all four tabs open automatically. How do I prevent all the tabs from opening?

    Home Screen > YouTube App > Settings (Gear icon) > Open Links with Chrome
    Slide the button to turn it off.

  • Since the latest update of Firefox was installed on my Windows Vista Home Premium system it appears to be crashing and sometimes plays up by not opening requested sites in new windows, tabs etc. Should I uninstall and reload Firefox??

    Also when closing tabs and windows the screen appears to momentarily go a blue color. This same blue color can also be seen when Firefox appears to crash or stall. If you try to open a new tab or a new window there appears to be some hesitation before the new window opens and sometimes the new window or tab simply refuses to open-you then have to shut down Firefox and restart to improve this.
    Rgds

    Thanks Alan I tried disabling several items so far and the situation has improved but still not as stable as I would like. Systematic approach is the key here so I'll continue with a process of elimination.
    Rgds

  • How do I prevent a new Firefox tab from opening when opening a PDF in Adobe.

    First off, this issue started Monday, August 25th 2014 when I was forced to update Firefox in order to log into my online accounting program. I was not having this issue in the previous Firefox version.
    When I open a PDF document from an email (which shows a Firefox icon next to it), the document opens in Adobe reader, but also a blank tab opens in Firefox, even with it's not already open. When I close the PDF document, the Firefox tab remains open and I have to manually close it. This does not happen with PDF documents that I have saved to my company's network or to my computer (which have the Adobe icon). I refuse to have to save PDFs to my computer as a workaround for this issue.
    Under Tools > Options > Applications, I've already switched the Adobe/PDF options to open in Adobe. Also, in about:config, the value for "pdfjs.disabled" reads "true" and "plugin.disable_full_page_plugin_for_types" contains "application/pdf".
    I work with a lot of PDFs and I'm frustrated to the point where I'm about to unistall Firefox and just use Internet Explorer.

    hello, does it work when you go into the ''acrobat reader > edit > preferences > general ''& click on the default application option at the bottom? in there reselect adobe's application and confirm this selection...

  • Problem with new firefox tabs and window focus

    Here's a problem that I've had for ages - sometimes it annoys me, other times I can live with it. Right now it's really p***ing me off.  :x
    I have selected 'a new tab in the most recent window' under FF's Preferences->Tabs->Open links from other applications in:, so as an example, if I click on a URL in a mail in Thunderbird, Firefox opens it in a new tab. However, window focus stays on Thunderbird. I run both of them full screen, so although I'm looking at the web page in Firefox, anything I do on the keyboards affects Thunderbird. It affects URLs opened from other apps too e.g. if I open a terminal and do
    firefox www.archlinux.org
    focus stays on the terminal window. The only exception is when firefox is not already running - in that case, firefox launches with focus.
    DE is xfce4, and the system is completely up to date.
    I've done some googling, and AFAICS, nobody else seems to have this problem. Any ideas, anyone?
    TIA.

    Thanks MAC!EK - definitely a useful add-on, but it still doesn't solve my problem. In Tab Mix Plus Options, I have the following selected:
    Links -> Open links from other applications in: New tab
    Events-> Tab Focus -> Focus/Select tabs  that open from: <all>
    However, the behaviour is as before i.e. I click a URL in Thunderbird, it opens in a new tab in Firefox, but window focus stays on Thunderbird. Within Firefox, the newly-opened tab is selected or focussed, but Firefox itself is not.
    Anyway, thanks again. I think I need to keep looking.

  • My photoshop will not open files or create new files, please help?

    Photoshop CS6 on Windows 7 will not work,
    When machine is first started the program works, for about 10 mins, then
    I can not open files, create new ones. When it does work it can not perform functions like transform etc.
    I tried disabling third party plug ins
    I tried creating a new account on my machine
    Nothing seems to work.
    Can any one shed some light on the problem?
    Cheers!

    Hudechrome wrote:
    Sorry! Ignore it.
    There is a script running which Noscript lets me forbid, called akamaihd.net. It runs a script which is the same as in html when you highlight a word then attach a url to it.
    I don't know why I am seeing it but not others. FF and Chrome seem susceptible to it. It's not malware as usually thought of because no virus/malware program finds it here.
    Unfortunately, I have to forbid this script for every site I visit.
    In the other thread where your browser displayed an 'i.trkjmp.com' link which isn't really in the web page, I gave you a Google link for info about the problem. You said that it must be something else. Well, for months now, Chrome and Firefox users have been troubled by extensions which cause the 'i.trkjmp.com' problem. You might want to revisit the link I gave you.

  • Open file in a new window

    Hi All,
    I am adding a file item to a folder in a content area. The folder is published as a portlet on a page. Now when the user clicks on the file item, I want the file to open in a new window. I know its possible to do it when you add an URL item where there is a option where you can select the item to open in a new window. But in case of a file item, I did not find any way for openiging it in a new window. I would like to know how to open the file in a new window and if there is a workaround for the same.
    I am using portal version 30.6.6.5.
    Thanks
    null

    Here's a solution for Portal 3.0.8 or later that allows you to open a file in a new browser window. It requires that you create a custom item type, and use a procedure to display a link to the file.
    1. Create the following procedure. You can create it in any schema, but the schema has to have select privilege on the view 'WWSBR_ALL_ITEMS' in the portal schema. In this example, the portal schema is PORTAL30. If you're running version 3.0.8, you'll also need to apply the patch to bug 1724250.
    Create or Replace PROCEDURE OPEN_FILE (p_itemid IN NUMBER) as
    fileURL varchar2(1024);
    baseURL varchar2(256) := '/pls/portal30/docs/';
    begin
    select baseURL &#0124; &#0124; filename into fileURL
    from portal30.wwsbr_all_items
    where id = p_ItemId;
    htp.p ('Open File');
    EXCEPTION
    when NO_DATA_FOUND then
    htp.p('Document not found or access denied');
    when others then
    htp.p(sqlerrm);
    end;
    The procedure generates a link to the item filename with a target of "_blank", which opens the file in a new browser window. Replace the baseURL attribute value with the correct Database Access Descriptor (DAD) and Document Access Path ("/docs") for your site.
    2. Grant execute on the procedure to the portal public schema. The name of this schema is <portal schema>PUBLIC. So if your portal schema is PORTAL30, grant execute on the procedure to PORTAL30PUBLIC.
    3. Create a custom item type, using the base item type of "File". I recommend that you create the type in the Shared Objects content area, so it can be used in other content areas (from the Navigator, go to the Content Areas tab, select Contents for Shared Objects, Custom Types, and Item Types - Create). Edit the new type and go to the Procedures tab.
    4. In the Procedure Call Properties, enter:
    [list]
    [*]Type: PL/SQL
    [*]Procedure Call: <your procedure schema>.OPEN_FILE
    [*]Link Text: Open File (it doesn't matter what you put here - it only displays if "Display Procedure Results With Item" is unchecked.)
    [*]Check "Display Procedure Results With Item"
    [list]
    5. Under "Pass Attributes as Parameters", enter:
    [list]
    [*]Attribute: Item Id
    [*]Pass As: p_itemid
    [list]
    (Notice how you can pass most of an item's attributes to a procedure. You can take advantage of this feature to write procedures that give you precise control over the rendering of your items).
    6. In the properties for the content areas in which the new type is to be used, go to the Items tab. Specify that you want the new type to be visible. You may want to hide the base File item type, so users won't be confused by two different item types for files.
    7. Edit the folder style for the content area. Go to Folder Layout. Edit the region properties for each region in which you will be using the new item type. For each region, replace "Display Name or Image" with "Display Name". "Display Name or Image" will render the Display Name as a link to your file that opens the file in the same browser window. "Display Name" simply renders the display name as text, with no link.
    8. Now you can create items of the new item type. Each item's Display Name will appear next to a link that says "Open File". Clicking the link will cause the file to open in a new browser window.
    Hope you find this useful.
    Regards,
    Jerry

  • With multiple tabs open, and selecting a new (blank) tab, RoboForm open new web page in far left tab, not the new (blank) one. How to correct this?

    Problem: Firefox Browser Tabs when using RoboForm
    When using Tabs in the Firefox browser (with multiple Tabs already open), I (1) click to open a new (blank) tab and then, (2) click on RoboForm to go to a new website. Instead of the new website opening in the newly opened (blank) tab it opens in the first (far left) tab. This only began happening when I installed Firefox 5.0 and RoboForm Desktop v7.3.2 at the same time.
    My system: HP Pavilion Media center, Windows Vista Ultimate 64-bit, 8GB RAM, Firefox v5.0, Roboform Desktop v7.3.2

    Thanks a lot. The culprit turned out to be Webmail Notifier. Unfortunately, there seems to be some problems on their end that the developer has not yet responded to, but something about the extension is screwing up tab functionality.
    Thanks!

  • How to open the link in new firefox window for web desktop based application? Or how to open the mail/website/rss link in new firefox window

    I am using the firefox 3.6. My problem is that I am using the web desktop and few web desktop based application directly opens link. If I click on rss link than it opens in same window, so no longer access to web desktop. I want to open any kind of link in new window instead of same window. I have tired to change the value of browser.link.open_newwindow, browser.link.open_newwindow.restriction but doesn't work. Also gone through the https://developer.mozilla.org/en/window.open but not sure where to do this in web desktop based application or firefox where we connect the web desktop?
    Is there any way to open the link every time in new firefox window?

    Hi Joseph,
    the HTMLB link object misses the support for onClientClick through the tag lib, see hbj:link without onClientClick ? and OnClientClick Event for Link HTMLB Component for similiar problems and workarounds.
    With this workaround, you can call for example an AbstractPortalComponent, implement doOnNodeReady (with an empty doContent method) and return the PDF, settings the content type on the http before etc.
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • Open file in a new window thru custom global link

    Hi All,
    I have created a custom global link. I want to open a PDF file (present at OA_HTML) from that link.
    So, I created a function for that link having below properties:
    Web HTML : file_name.pdf
    Type: SSWA plsql function that opens a new window (Kiosk Mode)
    File is opening successfully but in the same window. I want to open that file in a new window.
    Please suggest some solution for this.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I have created a blank page and write logic to download file in that.
    Later, on click on global link, navigated the same to that blank page. So, open save dialog is coming on click of custom global link.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • How can I stream music via AirPlay but still have an internet connection?

    Hi guys, Ive just bought an Airplay speaker but I seem to be missing something here as I can't figure out how to stream my audio on my iPhone to the AirPlay speaker but still use the internet by either WiFi or 3G at the same time. I stream all my mus

  • [ASK] about Oracle Business Intelligence

    Hi All, any body can help me? i want learn about Business Intelligence, but i not undestand what should i do. can any body explain / suggest to me, what must i install any software on my computer to develop BI. please give me the url to download or e

  • Re: Office 365 account 60 minutes

    I'm having the same issue! I do not share my account but I have never seen my 60 minutes....

  • Cannot get Pioneer Trail to work on Firefox

    Desperate for help with this in that I have tried so hard and for such a long time and still can't get it to run. I have been doing this on Chrome but Firefox is a lot faster. It was working about 6 months ago and then suddenly just stopped.  I'm thi

  • CS3 Photoshop crashing when trying to use type

    not sure what it is...but my cs3 photoshop is crashing almost every time i use it. it seems to predominantly happen when i am creating or editing type. i have crash reports and have submitted some, but no resolution - esp since i am not able to decip