Open?url=file:///

Dear all,
While running some local website I've got some hyperlinks in it that say:
txmt://open?url=file:///Users/me/files/somefile.txt
Clicking on the link opens the somefile.txt in TextMate.
I'm trying to achieve the same for a pdf to open in Preview. I've replaced txmt with Preview but that doesn't work.
Can someone explain me this? I've looked into using: http://www.apple.com/applescript/linktrigger/index.html. But didn't get what to fill in for: com.apple.AppleScript.WebpageHelper
Thanks for any reply,
Gert

That page tells you what you need - just look at the image link on the side. You'll see it has a URL:
webpagehelper://com.apple.AppleScript.WebpageHelper?action=1&action=4!-http://www.apple.com/applescript/linktrigger/hummingbird.jpg
This maps to the parameters shown in the .plist:
<key>CFBundleIdentifier</key>
<string>com.apple.AppleScript.WebpageHelper</string>
This is the part of the URL after the protocol:// and before the arguments.
<key>CFBundleURLTypes</key>
<array>
  <dict>
    <key>CFBundleURLName</key>
    <string>Webpage Helper</string>
    <key>CFBundleURLSchemes</key>
    <array>
      <string>webpagehelper</string>
    </array>
  </dict>
</array>
The CFBundleURLName is pretty much anything you like - it's just a pretty name for the URL. The CFBundleURLSchemes is an array of the protocols you want to use (in this case webpagehelper:// )
If you want to translate those terms to your existing URL, then 'txmt' would be your CFBundleURLScheme and 'open' would be your CFBundleIdentifier

Similar Messages

  • NW PI 7.1 Install FKD-00048  Unable to open URL file:///tmp/sapinst_instdir

    HI,
    I am installing PI 7.1 on a HP-UX/ Oralce environment. Started the install and when It prompted for Oracle Software, I  stopped the install and installed Oracle.
    When starting back SAPINST after oracle install it terminates with the following error :
    guiengine: 2011-03-18 07:26:03 Login in progress
    guiengine: 2011-03-18 07:26:03 Login successful
    ERROR      2011-03-18 07:26:50.304 [sixxcpars.cpp:179]
    FKD-00048  Unable to open URL file:///tmp/sapinst_instdir/NW71/INSTALL/SYSTEM/ORA/STD/AS/control.xml.
    Abort execution because of
    keydb.unableToOpenURL
    Nothing has been moved from the /tmp directory.
    Any help would be appreciated
    Thanks
    Christo

    Hi,
    It looks like problem /tmp file system. Generally contents in this file system are temporary.
    I think you have to start the installation again but this time I would suggest you to not use /tmp as installation directory.
    Thanks
    Sunny

  • Error opening url 'file: What does it mean?

    When I test some of my as3 movies a new window opens and I can test the file. Yet when I test other movies I get an (error opening url 'file message.) What causes that? It seems to me that if a movie plays it should also test in a new window.

    It doesn' work. I only got the one file open. The swf file won't open at
    all. The fla file won't test. But when I debug the fla file the flash player
    debugger opens the movie in a new window and I get this message in the
    output window: "Attempting to launch and connect to Player using URL
    /Users/schweideltyson/Desktop/Circle.swf"
    SWF Users:schweideltyson:Desktop:Circle.swf - 2887 bytes after
    decompression
    Could it be my flash player is not working properly? I wish I knew.

  • Error opening url 'file ///undefined'

    Hey everyone. I'm new to actionscript and I'm having some issues. Here is my code:
    function onFinish(success_boolean, results_obj, xml)
        if (success_boolean)
            play ();
        } // end if
    } // End of the function
    Stage.align = "MC";
    Stage.scaleMode = "noScale";
    url = "25904";
    _root.cacheKiller = "true";
    stop ();
    var parsed_obj = {};
    var unCash = new Date().getTime();
    if (_root.cacheKiller == "true")
        fileToLoad = url + "_main.xml?cacheKiller=" + unCash;
        fileToLoad = url + "_main.xml";
    else
        fileToLoad = url + "_main.xml";
    } // end else if
    gs.dataTransfer.XMLParser.load(fileToLoad, onFinish, parsed_obj);
    _root.emp.useHandCursor = 0;
    _root.mus = 1;
    _root.n = 1;
    _root.num = 1;
    when I try to test mouvie in Flash I received the following error:
    Error opening URL 'file:///O|/W%20E%20B%20%20%20%20D%20E%20%20S%20%20I%20%20G%20%20N/web%20design/25904/sou rces/flash/TRY/25904undefined'
    I don't know what the probblem is..
    Can anyone help me? pls!!!

    Use the trace function to track down what values you are trying to process.  The error is telling you it cannot find the file for the path specified, and the path that it is identifying seems to be showing that there is a problem not only with the path (appears to have several blanks spaces) but also the file name.
    Try tracing the url value before it gets sent to the loading line, as in... trace(url) and see what it shows.

  • Mac firefox cannot open .url files from PC

    I have hundreds of pc .url files that I want to import as bookmarks.
    Mac Firefox opens the files as a text file, not as a web page.
    Mac Safari can open them no problem.

    If you have still access to the computer with the .url files then export them via IE to an HTML file.<br />
    If you can open them in Safari then bookmark them and export them in Safari to an HTML file.<br />
    Then you can import that HTML file in Firefox.
    [[Importing bookmarks and other data from other browsers]]
    http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox

  • Need assistance with Captivate 7 Action - Open URL/File

    Hi folks,
    I am developing a Captivate application that will be published as an executable.  It contains one slide, containing a number of buttons that will perform various operation.
    My issue is with the Open URL or File option.  I need one of my buttons to launch a small telnet app.  It currently exists on my desktop.  When I browse to find that file, it opens Firefox, and wants to download the file again.
    I need an action that will open the app, not a a web browser.
    Can this be done?
    Thanks in advance
    Steve

    Jim,
    You did it!  It worked.
    I thought about the onLoad function in the new browser, but I couldn't control the menu bar, tool bar etc. without re-directing the user to yet another window.

  • Error opening URL-local files-mac

    I'm using a var and an Array code on an empty move clip. The code is set on an "Actions" layer. The code checks good. All files are on my desktop.
    When I test movie I get 'Error opening URL 'file:///Andrea/Users/user/Desktop/BosigerWk6/swfs/one.swf'
    I'm on Mac running CS3. Flash setting is set to "Access local files only" I searched hours for a solution to this problem.
    Please help. Here's the code:
    //your swf list can be anything and any length. I named them one two three so you can easily test that it works
    var swfList:Array = new Array("one.swf", "two.swf", "three.swf", "four.swf", "five.swf", "six.swf", "seven.swf", "eight.swf", "nine.swf", "ten.swf", "eleven.swf", "twelve.swf", "thirteen.swf", "fourteen.swf", "fifteen.swf", "sixteen.swf", "seventeen.swf", "eighteen.swf", "nineteen.swf", "twenty.swf");
    var i:Number = 0;
    loadMovieNum(swfList[i], 1);
    //where next button has an instance name of 'nextBtn'
    nextBtn.onRelease = function(){
        i++;
        if(i > swfList.length - 1){
            i = 0;
        trace(swfList[i]);
    //your load funtion here like loadMovieNum(swfList[i], 1); or instance name.loadMovie(swfList[i]);
    //where previous button has an instance name of 'prevBtn'
    prevBtn.onRelease = function(){
        i--;
        if(i < 0 ){
            i = swfList.length - 1;
        trace(swfList[i]);
    //your load funtion here like loadMovieNum(swfList[i], 1); or instance name.loadMovie(swfList[i]);
    Thanks you so much,
    Andrea Bosiger

    I had a problem to test my movies locally in Flash Professional CS5, too. When I turned off the encryption on my Mac, the problem went away.

  • Internet Explorer cannot open url in local Windows network share

    Windows Server 2012 R2 as a domain controller
    Internet Explorer 11 64/32
    Favorites are redirected to a Windows network share (on the server itself)
    Issue: When clicking a favourite redirected to the Windows network share, IE does nothing. 
    For testing purpose,
    I double click a .url file in redirected Favorites (e.g.
    \\domain_controller\profiles\username\Favorites\website.url), IE opens with a blank page. 
    If the .url file is placed at local drive or a Samba share (e.g. in a Synology box, probably it does not really matter as long as it is a network share residing in another computer), IE works fine.
    The issue applies to every one (probably except Administrator) logged on the domain controller.
    I tried reset IE.  It did not work.
    Favourites redirection works on Windows 8.1 client computers in the domain.
    Pinned Site Shortcut (.website) file works everywhere
    When Enable Protected Mode in Internet Options\Security\Internet is disabled, IE can open .url file in a Windows network share.  But it is probably not a good idea to permanently disable it.
    Any suggestion on fixing the issue?  Thank you.

    tried ProcMon, the events captured are enormous even after I filtered out those I am sure do not matter.  It was hard to spot what went wrong if I don't know what to look for. 
    Which is why I made the suggestion to filter coarsely and wait for a divergence in your two nearly equivalent traces.   <eg>
    Otherwise, if you are only looking at one trace but think that there is a possibility that some diagnostics may have been written, filtering with 
    Operation Is WriteFile  is often very handy.  With that filter you can also use the Count occurrences... tool for the number of distinct  Path  values which were involved.
    In fact, now that I have reviewed the symptom description, filtering coarsely might also mean using only the File Access events and filtering with  Path Contains Fav   Do that with each of your traces and see where there is a divergence. 
    Then turn the filter off at that point or perhaps just add Registry events at that point (e.g. use the button but leave your filter for  Path in place).  Etc.
    Good luck
    Robert Aldwinckle

  • Safari doesn't open his own .URL files

    Hello
    I've adopted Safari for Windows at work due to the good experience I had with Safai on my Mac at home, but I almost immediately I found a serious bug:
    Safari for Windows creates ".URL" files perfectly like IE7, by dragging the icon on the left of the address into a folder (or the desktop). Everything' fine here. I use this functionality a lot!
    I just opened the .URL file and looks nice. Here's an example:
    \[InternetShortcut\]
    URL=http://discussions.apple.com/forum.jspa?forumID=1188
    The PROBLEM is that when I double click the ".URL" file Safari for Windows just created, Safari NEVER opens, instead opening IE7 !
    There must be a registry fix for this, because if I drag the icon into an opened Safari, it opens the link perfectly.
    Please tell me what I must change on the Windows Registry to fix this.
    Thank you in advance for your support, and keep up the good work!

    Replying to my own problem, I think I finally fixed it... by accident!
    After a lot of juggling with Control Panel->Add/Remove Programs->Set predefined browser, I finally managed to get IE7 out of the way, but only after deactivating access to Internet Explorer, and a lot of random checks and reboots along the way.
    I have no idea why Safari for Windows can't make himself the default browser on URL opening, but I believe you are missing some settings somewhere in the Windows Registry.
    Happy bug hunting!

  • PROBLEM while using URL in order to open a file from a servlet

    Hi,
    I am having a problem while trying to open a file from my servlet by using URL connection. Following is my code sample. what happens is when I first run my project it opens the file but after that when I rerun it again and again it sometimes opens it and sometimes not. if it can't open it it gives an error saying "the file is damaged and couldn't be repaired". I don't get any exceptions. if you guys can help me I will appreciate it so much... thanks.
    here is my code :
    URL url = new URL("http://demobcs.ibm.com:81/test.pdf");
    resp.setContentType(getContentType("http://demobcs.ibm.com:81/test.pdf"));
              ServletOutputStream sos = null;
              BufferedInputStream bis = null;
              try {
                   sos = resp.getOutputStream();
              } catch (Exception e) {
                   System.out.println("exception !!!!");
                   e.printStackTrace();
              System.out.println("burada2");
              try {
                   byte[] bytes = new byte[4096];
                   //bis = new BufferedInputStream(conn.getInputStream());
                   DataInputStream in = new DataInputStream(url.openStream());
                   //DataInputStream in = new DataInputStream(conn.getInputStream());
                   bis = new BufferedInputStream(in);
                   int j;
                   while ((j = bis.read(bytes, 0, 4096)) != -1) {
                        try {
                             sos.write(bytes, 0, 4096);
                             System.out.println("file is being read ...:");
                        } catch (Exception e) {
                             e.printStackTrace();
                   in.close();
                   bis.close();          
                   //sos.close();
              } catch (Exception e) {
                   System.out.println("exception :"+e.toString());
                   e.printStackTrace();
              }

    You are writing (<filesize> mod 4096) bytes of crap at the end of the file. Use your variable j instead for the number of bytes to write in your loop.

  • Opening a URL/File in new window instead of new tab

    I think I know the answer to this, but I'd like to check anyway.  When setting an action to Open URL or File for a button/click box/hyperlink/etc, is there a setting in Captivate to open the URL/File in a new WINDOW instead of a new TAB? I know to use the "New" setting along with the Open URL or File action. I assume opening in a new window instead of a new tab by default is going to depend on the settings of whatever browser you use, but like I said, just wanted to check. Thanks!

    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");

  • Invalid URL Exception while opening a file using external window in webdynp

    I am trying open an URL ythru external window on click of button in my webdynpro.
    This is the URl I am trying to open
    File://mww/Documents/Attachments/2008/10/56254/{FD803B0D-157F-47F9-A5A8-C687E1DC6B96}_break.JPG
    if I try to open from a from the browser it works fine but thru webdynpro it is throwing the error.
    mww is another system where the file is residing.
    But I am using the same techniue in other component where I am able to open file from an external window.
    File://mww/Documents/Attachments/2008/10/56254/some.jpg
    The only difference in  the URL is {FD803B0D-157F-47F9-A5A8-C687E1DC6B96}Since this URL is generated by another system I do not have any other aletrnative but I have live with this URL.
    can some body please give some idea how to fix this
    if I use java.net.URLEncoder.encode() then I am not getting any error , buit file is not opening in the browser( external window)
    below is the error stack I am getting.  
    com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=File://mww/Documents/Attachments/2008/10/56254/{FD803B0D-157F-47F9-A5A8-C687E1DC6B96}_break.JPG
    at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.checkURL(AbstractURLGenerator.java:699)
    at com.sap.tc.webdynpro.services.sal.url.core.URLGeneratorInternal.checkURL(URLGeneratorInternal.java:390)
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createNonModalExternalWindow(ClientComponent.java:1037)
    at com.gis.dcww.findsrch.AttachmentView.onActionOpen_Attachement(AttachmentView.java:179)
    at com.gis.dcww.findsrch.wdp.InternalAttachmentView.wdInvokeEventHandler(InternalAttachmentView.java:203)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
    at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    thanks
    PK

    Hi Armin, Josue
    Thanks for the reply
    Please note I am able to open an external window( browser ) thru my code with "File" protocol.
    I have no issue opening an external window or using File protocol.
    I am able to open an image/doc with a normal URL as follows
    File://mww/documents/image.jpg
    or
    File://mww/document/temp.csv
    But My URL has some system( thru Other applications ) generated charaters in it , I need get the path from DB( which I have done ) and pass this URL to the ExternalNonModalWindow as paramter.
    MY code is opening successfully the external  window for any URL .
    but for URL which has these character { }  is throwing the invalid URL error 
    for the below URL, I am getting the error
    File://mww/Documents/Attachments/2008/10/56254/{FD803B0D-157F-47F9-A5A8-C687E1DC6B96}_break.JPG
    thanks
    PK
    because of the flower bracket it is throwing the error.
    thansk
    PK

  • Flash Actionscript to Open a FILE not URL

    Hello everyone,
    I was wondering what the actionscript is to open a file in a
    new window?
    getURL opens a URL I want to open a file, not a URL, I cannot
    get it to work no matter what I do. Someone please help me.
    Anything at all would be greatly appreciated.
    Also, I need this script to be done in javascript.......
    Thanks
    Doug

    i think the user "system" is used to connect to the shared folder on the other system.
    this will not work.
    you may configure the OracleAScontrol-Service to logon with an user-account exists on both machines.

  • Open URL or File not Working

    Hi
    I've scoured the forum and found some similar issues but not an answer to my problem.
    I have a button that launches a web page in a new browser window using "On success: Open URL or file". The Captivate files are published out as SWF and will be burnt to run from CD when I get this working. On my machines (I have tested on two computers) it works fine running locally, both off the hard drive and from CD. On my client's machines on their corporate network it doesn't work at all. There is no error message and the Flash security setting seem OK. When you click on the button nothing happens, zilch. I hope someone will be able to help with this one. Thanks in advance.

    Hi there
    I totally agree with you. It would be way cool if there were an easier way.
    Note that for CD-ROM/DVD, you can place a lightweight server (Server2Go) so that it tricks the content into believing it is being run from a server.
    Actually, you (and others) should Pepper the Adobe Wish Form asking for a simple replacement that works with CD-ROM/DVD that would ship with Captivate and operate as a button push to create the files needed.
    Click here to visit the Wish Form/Bug Reporting Form
    Cheers... Rick
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Open URL or File Action not working (Captivate 7)

    I have written dozens of training courses using Captivate that employ buttons to open PDF documents (supporting documentation). I am currently coding smart shapes as buttons, specifying the Open URL or File action, or by executing an advanced action to do the same. The documents are found in a subfolder (documents), so the URL/File target is: \documents\<file name>. Same syntax that I have used for several years. However, once published using Captivate 7, these buttons no longer work. I have exhausted my methods for opening files without success. Any ideas?
    BTW, I am publishing as .exe, so the SWF security snafu should not be the issue.
    Thanks
    Jack L

    The issue has been fixed in the patch released in November. The latest version is 7.0.1.237.
    http://helpx.adobe.com/captivate/kb/captivate-7-patch.html
    I guess you need to publish your file again after you apply the patch and test it once to ensure everything works fine.
    Sreekanth

  • 'Open URL or file' - how to use a relative file path?

    I have a click box on a slide that I want to use to open an instance of a file (ie a PDF, a JPG, etc) in a new window, then when the user closes the window the Captivate demo continues.
    My plan is to distribute this file with the published project and have it sit in the same folder as the project files.
    I think that I have worked out all the processes to do this except how to correctly set up the click box.  In the click box properties I have 'Open URL or file' on success, but how to enter the information in the URL text box is challenging me.  An absolute path to the file on my computer works fine.  Can I specify a relative path so Captivate defaults to using a file stored in the same folder as the published project?
    I have attached a sample of the file I want to use.

    Hi there
    See if the link below helps.
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

Maybe you are looking for

  • Administração de boletos em  Localização Brasil

    Prezados, O SAP Business One precisa se adaptar à localização brasil a que se refere a adminsitração de boleto. Dois pontos que notei: 1 - Mudar data de vencimento quando o boleto estiver no status enviado gerado ou depositado. (esse primeiro já post

  • SCCM 2012 R2 - Distribution Point untrusted domain - Not acknowledging Network Access Account (FYI)

    Hello! Scenario Built a single primary site server in one domain with multiple distribution points. All site servers are member of this one site. The distribution points in the primary site servers' domain function as expected. The distribution point

  • Display multiple rows of datas from database in IDM forms

    Hi, I asked the same question in this forum before and some one answered to use 'FieldLoop'.I tried using that it didn't work.I using IDM version 5. Heres the code... EmployeeList is a supposed to be java array which contains java bean object,( Emplo

  • Ethernet connected Apple TV 3 can't play content.  WiFi works fine.  What gives?

    Apple TV 3 has a strange problem since the latest update, 5.1.  It is only partially functional when hard wired to my router, but is fully functional when connected wirelessly. When hardwired, I can control it with the iOS Remote app, airplay from iP

  • Big help request...

    I am writing a program for school (and as such I cannot write it in a way that makes sense to normal people) using a one dimensional array with 50 integers. After prompting the user for the initial value (and making it an odd number no matter what th