Hyperlinks/URLs in TextEdit

Clicking on a hyperlink reveals the target file in the Finder, opening the enclosing folder.
I would like to create a link that opens that file in it's default application.
I know I can write (file:///Users...), and right-click, to select 'Open URL' from the contextual menu.
But it would be neater to just click the link and have the file open.
Thanks in advance,
Hakan

Dennis Seitz wrote:
Yes, I know that.
You know Safari can't open Excel files.
Yet you "try to open an Excel file with Safari".
Does that make sense to you?
we're trying to find a way to make a link in TextEdit that will open a file in the local file system
What's that got to do with Safari?
"Open a file" means "open an arbitrary file". If you succeed in making a link in an RTF document in TextEdit open an arbitrary file in the local file system, then you've exposed a major feature in TextEdit and Mac OS X. The kind of feature that made Windows the famously secure OS it is.

Similar Messages

  • How to represent # in hyperlink URLs

    I have a series of URLs that I want to use in hyperlinks, that all have a hash character in them. The hash character is necessary to load the page properly.
    However, when I enter the URL "as is", the hash becomes %23 in the address bar, and the page does not display correctly.
    The only method that works so far, is to replace the "#" with "&hash;".  This works, but leaves "&hash;" in the url, unchanged.  It also means I have to massage every URL.
    That's not really a problem for my current purposes, but am wondering of there is a way to end up with just # as the final representation in the address bar of the browser.
    What I've tried so far (in the hyperlink url):
    Fails:
    %23
    char(35)
    OK:
    # (becomes &%2335;)
    &hash;
    Any ideas? :-)

    The hyperlink function is fine. It's just that if there is a hash in the resulting hyperlink, then when I click on it, the browser interprets the hash as "%23" and then the page doesn't load properly.
    Might be just that site, and/or just that browser.
    Here's a sample link:
    http://www.nlm.nih.gov/cgi/mesh/2012/MB_cgi?mode=&term=Body+Regions&field=entry# TreeA01
    Safari is my default browser.
    Obviously, if I copy that link into Safari, there's no problem.
    The problem lies in the interface between Numbers sending the link, and Safari interpreting what was sent.

  • Why doesnt my hyperlink url enable when I click enable hyperlink? i-web either deletes the url or creates a different url

    Every time I create a hyperlink url and then enable it- the url deletes itself or switches to another url- please help ! thanks

    You mean the deletion occurs in the Inspector/Link/Hyperlink pane? Is it a link to an external Page?  Try the following:
    delete the iWeb preference file, com.apple.iWeb.plist, that resides in your Home()/Library/Preferences folder.
    go to your Home()/Library/Caches/com.apple.iWeb folder and delete its contents.
    launch iWeb and try again.
    OT

  • Applescript hyperlink URL, not shared destination

    Hi everyone,
    i'm trying to write an applescript that will apply a hyperlink to some selected text (a product number). Where I am running into trouble is that the hyperlinks cannot be "shared destination".
    After poaching what I could from some other scripts, I have this:
    tell application "Adobe InDesign CS5"
        tell document 1
            set mySelection to selection
            set prodNo to contents of mySelection as string
            set prodNoURL to "http://www.webaddress.com/address/" & prodNo as string
            try
                set TheH to make hyperlink URL destination with properties {name:prodNo, destination URL:prodNoURL}
            on error
                set TheH to hyperlink URL destination prodNo
            end try
            set TheHS to make hyperlink text source with properties {source text:(item 1 of mySelection), hidden:false}
            set myHyperlink to make new hyperlink with properties {destination:TheH, source:TheHS, visible:false}
        end tell
    end tell
    end
    This works, except that the resulting hyperlinks are linking to Shared Destination, which they cannot do (I don't know why, actually; my little script is just one step in a bigger process.)
    How do I create a hyperlink that will link to URL, with the "Shared Destination" checkbox OFF:
    Thanks for your help!
    (Mac OS 10.7, ID CS5)

    Hi,
    If someone else has the same issue:
    Set the "hidden" property of a hyperlinkURLDestination to TRUE when creating a new  hyperlinkURLDestination. This can only be done when the object is created and can't be modified later ...
    var myCurrentHyperlinkURLDestination = myDoc.hyperlinkURLDestinations.add(myCurrentHyperlink, {hidden:true});
    John

  • HT204093 I am following the instructions to hyperlink URL to an image in an email, but once I paste the URL, the "ok" button is not highlighted so I cannot complete the task. What is the problem and how do I get around it?

    I am following the instructions to hyperlink URL to an image in an email, but once I paste the URL, the "ok" button is not highlighted so I cannot complete the task. What is the problem and how do I get around it?

    I figured out if I took the http:// off the front of the URL, the "ok" button would highlight, but then link did not work. I tried just linking www.google.com to the image and the link did not work either. What gives?!

  • In Textedit, how do I copy a hyperlink url, but only copy the link location and not the link text?

    Suppose I have a list of hyperlinked internet URL's. I want to extract their Internet addresses -- the link locations --  which are essentially hidden in the link text. Is there any way to select and copy the list of hyperlinks, but only copy the link locations, and not the link text?
    For example, with the links:
    The White House
    Google
    One of my previous posts
    What I really want to copy are: "http://www.whitehouse.gov/", "http://www.google.com/", and "https://discussions.apple.com/thread/2737556".

    I figured out how to do it. First, copy the hyperlinks onto a blank RTF document in TextEdit and save the file.
    Second, open the file from within TextEdit, and make sure that the box "Ignore rich text commands" is checked in the open file dialog box. In the open document, the hyperlinks from my example in my first post will look like this:
    {\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf360
    {\fonttbl\f0\froman\fcharset0 Times-Roman;}
    {\colortbl;\red255\green255\blue255;\red0\green7\blue232;}
    {\info
    {\author Garald P. Weller}
    {\*\copyright Garald P. Weller}}\margl1440\margr1440\vieww20000\viewh14400\viewkind0
    \deftab720
    \pard\pardeftab720\sa240\ql\qnatural
    \f0\fs24 \cf0 \
    \pard\pardeftab720\sa240\ql\qnatural
    {\field{\*\fldinst{HYPERLINK "http://www.whitehouse.gov/"}}{\fldrslt \cf2 \ul \ulc2 The White House}}\
    \pard\pardeftab720\sa240\ql\qnatural
    {\field{\*\fldinst{HYPERLINK "http://www.google.com/"}}{\fldrslt \cf2 \ul \ulc2 Google}}\
    \pard\pardeftab720\sa240\ql\qnatural
    {\field{\*\fldinst{HYPERLINK "https://discussions.apple.com/thread/2737556"}}{\fldrslt \cf2 \ul \ulc2 One of my previous posts}}\
    Third, use the Automator function, "Get URLs From Text," to create a service, which I called "Get URLs From Text," that receives text from any window, gets the URLs, and copies the result to the clipboard:
    Fourth, select the entire page above, and go to TextEdit > Services to activate the "Get URLs" service.
    Fifth, create a new TextEdit document, and paste the result.
    The output is exactly what I wanted, the URLs -- i.e., the link locations -- of the three web pages, without the link text.
    Another utility that will extract URLs is CopyPaste Pro, which has an innate ability to extract Internet addresses from either web pages or text pages.

  • Insert the hyperlink URL file name underneath all images?

    Hi, I was wondering if I have an image with hyperlink
    attached, if I can use some sort of formatting code or something to
    not only show the picture, but also the name of the URL file
    associated with the picture. For example, my site is
    www.drcelly.com and I have a folder I named “lgtest”
    and within that folder I have all my images in, and also the HTML
    pages that are linked to the images. The page (screen shot below)
    showing all the pictures is titled “lg” so the
    directory to the following page is:
    http://www.drcelly.com/lgtest/lg.html
    screen shot-
    http://img.photobucket.com/albums/v229/mds33200/11.jpg
    As you can see, the selected picture (circled in red) is
    named “tp 1010.gif” and it has a hyperlink attached,
    named “c297.html”. (so if someone was to click that
    image, it would direct you to
    http://www.drcelly.com/lgtest/c297.html)
    Now the thing I need to do is to get the image to shop up
    just as it is now, however underneath the image I need a text
    description titled “c297.html” or even
    “c297”. I have several pages with several hundred
    images on it, and I would prefer to have the computer fill these in
    rather then manually entering each one separate. Does anyone know
    if its possible?
    Here is a sample of how I would like it to look (I manually
    typed the red data in by using a photo editor just to show how I
    would like it to look, my goal is to make it so I dont have to type
    the red data in):
    screen shot-
    http://img.photobucket.com/albums/v229/mds33200/2-3.jpg
    Any help / info would be appreciated! thanks.

    You would need custom javascript or server scripting to do
    this. HTML has
    no such facility.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "mds33200" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi, I was wondering if I have an image with hyperlink
    attached, if I can
    > use
    > some sort of formatting code or something to not only
    show the picture,
    > but
    > also the name of the URL file associated with the
    picture. For example, my
    > site
    > is www.drcelly.com and I have a folder I named ?lgtest?
    and within that
    > folder
    > I have all my images in, and also the HTML pages that
    are linked to the
    > images.
    > The page (screen shot below) showing all the pictures is
    titled ?lg? so
    > the
    > directory to the following page is:
    http://www.drcelly.com/lgtest/lg.html
    >
    > screen shot-
    http://img.photobucket.com/albums/v229/mds33200/11.jpg
    >
    > As you can see, the selected picture (circled in red) is
    named ?tp
    > 1010.gif?
    > and it has a hyperlink attached, named ?c297.html?. (so
    if someone was to
    > click
    > that image, it would direct you to
    >
    http://www.drcelly.com/lgtest/c297.html)
    >
    > Now the thing I need to do is to get the image to shop
    up just as it is
    > now,
    > however underneath the image I need a text description
    titled ?c297.html?
    > or
    > even ?c297?. I have several pages with several hundred
    images on it, and I
    > would prefer to have the computer fill these in rather
    then manually
    > entering
    > each one separate. Does anyone know if its possible?
    >
    >
    > Here is a sample of how I would like it to look (I
    manually typed the red
    > data
    > in by using a photo editor just to show how I would like
    it to look, my
    > goal is
    > to make it so I dont have to type the red data in):
    >
    > screen shot-
    http://img.photobucket.com/albums/v229/mds33200/2-3.jpg
    >
    > Any help / info would be appreciated! thanks.
    >
    >

  • Hiding the hyperlink  URL in a DataGrid

    Hi All,
        i am new to the development of .net iviews for the Portal.we have a table that consists of the links to the different reports, i am displaying this contents in a Datagrid using hyperlinkcolumn of the grid.when the user clicks on the hyperlinkcolumn a new explorer will open with particular report.here the problem is my manager dont want the url to be appeard at the bottom of browser when user places mouse over that hyperlink column.
      if any one can let me know how to hide the url, that will be very helpful to me.
    Thanks,
    Regards,
    Murali.

    Hi Murali,
    I've often heard people suggest Microsoft built the DataGrid as a control for use in their demos to promote .NET - it's nice but not terribly useful in its native form. I'd probably have to agree with that point of view.
    About the only way you can really achieve what you want is to catch the ItemDataBound event of the DataGrid control and add the relevant JavaScript attributes there. The ItemDataBound event fires as each item within the data source is being bound to the DataGrid, creating the contents of each row in the grid. With this event we're able to modify the HTML output as it's being created for output to the browser.
    Note that the ItemCreated event does a similar thing and is fine to use in this scenario, provided you don't want access to the underlying piece of data being bound to the grid, because it's not available at that point. For this reason, I'd suggest you use the ItemDataBound event so if you need to add data-related information in later on (such as changing the status message to a text description of the link that's stored in your data source) you can.
    Anyway, here's some sample code (written in VB.NET) that would do the trick; put this in your component's code-behind file:
        ' dgdTest is the name of the DataGrid control; change this to the name of your control.
        Private Sub dgdTest_ItemDataBound(ByVal sender As Object, ByVal e As DataGridItemEventArgs) Handles dgdTest.ItemDataBound
            If e.Item.ItemType = ListItemType.Item Or _
                e.Item.ItemType = ListItemType.AlternatingItem Or _
                e.Item.ItemType = ListItemType.SelectedItem Then
                ' For each row that is output, add the onmouseover HTML attribute
                Dim cell As TableCell = e.Item.Cells(0) ' <--- change the index to the appropriate column index for your DataGrid
                If Not (cell Is Nothing) Then
                    ' TableCell generated for the row of data exists
                    Dim link As HyperLink = CType(cell.Controls(0), HyperLink)
                    If Not (link Is Nothing) Then
                        ' HyperLink control added for the HyperlinkColumn exists
                        link.Attributes.Add("onmouseover", "window.status=' '; return true;")
                        link.Attributes.Add("onmouseout", "window.status=''; return true;")
                    End If
                End If
            End If
        End Sub
    You'll need to set the index on the <i>e.Item.Cells(0)</i> above to the relevant zero-based index of the column that's your HyperlinkColumn; I've used zero here as the first column in the DataGrid.
    Note that we also check the Cells and Controls collections are valid objects to avoid a NullReferenceException.
    You'll also need to change the name of the DataGrid control in the method declaration to the relevant name of your control.
    Having said all this, have you considered other alternatives to the DataGrid? If you're just displaying data and not using the editing, paging or sorting features of the control, I prefer to use the Repeater. It gives you total control of the HTML that's output and would eliminate the need to stuff around with the ItemDataBound event in this scenario.
    Hope this helps.
    Cheers,
    Mal.

  • Hyperlink URL for an iweb page for press release

    I am writing a press release in Word and I want to create a hyperlink in Word directly to the third page on my iweb site which is http://web.mac.com/decouvrir/mamaloosemusic/Welcome.html. But that adress is for the welcome page. But I want to get directly to another page.
    The other page name on my navigation bar is Mamaloose, but the internal title in my iweb list is "mamaloosecorpinfo". What should the resulting URL be in order to go directly to that page?

    Okay, firstly you need to sort out your site name. Is this your site here? http://web.me.com/decouvrir.
    Your url link does not work, so there is something wrong somewhere. Go into iWeb and check your site name and perhaps re-publish. Also, you need to be using web.me.com and not web.mac.com as you have.
    Also, if you are linking from a Word document, it is not the navigation menu that you need to link to, it is the page name from the url and you need to link to in iWeb - so it does not matter what your navigation link is, if you named your page "mamaloosecorpinfo", then your page will be this that followed by .html and it is this that you need to link to, to take you to that page of your website.

  • Adding Hyperlink URL to text field

    How do I set up a text field in Acrobat 8.1.1/Livecycle Designer form that allows the end user to add working urls or hyperlinks when filling a dynamic form?
    The form needs to remain dynamic so it will automatically expand using more than one page if necessary.
    Our computers are Window based.

    Thanks. I've used it also without the empty value check and had the same result of showing the creation date and not the current date.

  • Hyperlink URL Changes For No Apparent Reason

    When I add a hyperlink to a mail (2.1) I highlight the text I want and Edit/Add Hyperlink. I paste the URL
    http://ostyn-newman.com/Beykirch%20Home%20Page%20of%20Paintings.html
    When I send the message, and click the hyperlink, I am directed to the URL
    http://ostyn-newman.com/Beykirch%2520Home%2520Page%2520of%2520Paintings.html
    Obviously the new URL does not work. The one I put in is correct, but for some reason Mail decides to change it. How can I work around this issue. What should I put into the hyperlink box when prompted to make it put the correct address through to the sender?

    Hi,
    It is not recommended to have spaces in URLs, so renaming your pages would actually be advisable in the long run.
    Fortunately, most web browsers and operating systems will work around the problem using a process called "escaping". Any dis-allowed characters are changed to the % notation that you are seeing.
    Due to a slight bug in Mail, it doesn't like when you provide an already-escaped URL. You can work around this by providing a non-escaped URL. When it prompts you for the URL, give it a URL with actual spaces instead of the %20's. The link will work fine, and you will see that Safari will fix the spaces once it reaches the address bar.
    I hope this helps!
    Thanks,
    Glen

  • After clicking hyperlink URL, slide restarts at beginning - please help

    I'm having this same problem which was posted a few months back and didn't receive any replies. Does anyone know how to fix this. It is a major problem as I have several slides where I'll need to click a URL and the return to the presentation only to have to click away to get back to where I was:
    I have set up a slide with several bullet points contain name of various websites. These bullets are set to appear on each click. They also have their hyperlinks activated and linked to their respective URLs. The problem occurred when the slide is in play mode, when clicked on any of the bullet which opens the website in the web browser (this part is perfect); but when going back to the slide, it does not go back to where the sequence of the bullet it was at; instead, it start from the beginning state of that particular slide. For example, if I click on the 3rd bullet (after I clicked build in for the first two bullets), it active the 3rd bullet’s website, but when I go back to Keynote, it revert back as none of the bullet has already been displayed (it revert back to the beginning blank slide). My question is after the website link ifs opened, how can I get back to where I left off in Keynote instead going back to the beginning of the slide?

    I'm having this same problem which was posted a few months back and didn't receive any replies. Does anyone know how to fix this. It is a major problem as I have several slides where I'll need to click a URL and the return to the presentation only to have to click away to get back to where I was:
    I have set up a slide with several bullet points contain name of various websites. These bullets are set to appear on each click. They also have their hyperlinks activated and linked to their respective URLs. The problem occurred when the slide is in play mode, when clicked on any of the bullet which opens the website in the web browser (this part is perfect); but when going back to the slide, it does not go back to where the sequence of the bullet it was at; instead, it start from the beginning state of that particular slide. For example, if I click on the 3rd bullet (after I clicked build in for the first two bullets), it active the 3rd bullet’s website, but when I go back to Keynote, it revert back as none of the bullet has already been displayed (it revert back to the beginning blank slide). My question is after the website link ifs opened, how can I get back to where I left off in Keynote instead going back to the beginning of the slide?

  • Hyperlink/URL in workflow notification

    Hi,
    I am modifying the Sales Order workflow. The requirement is that a link/url should be provided in the message that should allow user to open sales order directly from the message.
    Please advise on how can we have this functionality through workflow message. I am on 11.5.10
    when I use http://url:3333/OA.jsp?OAFunc=ONT_OEXOEORD&HEADER_ID=786697
    in a browser, I could open the sales order form but the order number is not queried which I want to happen automatically.
    Thanks in advance for all the help and effort.
    sdv
    Message was edited by:
    user613391

    Do you know of any standard functionality that opens the Sales Order form and automatically queries a Sales Order? If not, then the form may not provide that functionality. If there is, then you will need to work through the logic in the form to work out how to call the function to query the order.

  • Alert management - Define subsequent activities as hyperlinks/URLs

    Hi.
    Can anyone please provide me with info how and for what purposes are used subsequent activities in alerts (spro>crm>basic functions>alert management>define alert categories).
    I know how to use container and texts but don't know how excecly can be used subsiquent activities on alerts: Ifyou create new one the fild for URL is activated but I don't know if I have to put anything in ther and what functionality it provides.
    Thanks in advance.

    Hi Robert,
    I think it just gives you the possibility to add URLs to your alerts. Can also be defined dynamically if you trigger the alert via a function module.
    Here is a quote from SAP documentation:
    "When triggering using the function module, it is also possible to define dynamic subsequent
    activities. These could be used in a situation where a subsequent activity is to refer to a
    document that is not added to the alert until runtime, for example. You pass these activities to
    the function module by filling an internal table of the structure SALRTSACT and passing this
    table to the module as table parameter IT_ACTIVITIES. The structure SALRTSACT contains
    a name for the activity in the field ACTTEXT, and the URL that refers to the subsequent
    activity in the field ACTURL."
    A use case could be to have a subsequent activity called "Order spare parts" and then have a link to a relevant web shop.
    /Anders

  • I want to change the update colour of any hyperlink URL after I have visited it

    I would like to change the highlight colour that my system applies after I have used any URL address link in the main display text. Currently it is a similar shade of blue to that of the original URL and I would like to change this to, say, red. Google tells me to edit one specific CSS file for making this change in Chrome, but I don't use Chrome!! A Windows Explorer search shows several hundred CSS files on my XP SP3 desktop running Firefox 34. Cana anyone help me please? Thanks in advance.

    ''LezLezLez [[#question-1036803|said]]''
    <blockquote>
    I would like to change the highlight colour that my system applies after I have used any URL address link in the main display text. Currently it is a similar shade of blue to that of the original URL and I would like to change this to, say, red. Google tells me to edit one specific CSS file for making this change in Chrome, but I don't use Chrome!! A Windows Explorer search shows several hundred CSS files on my XP SP3 desktop running Firefox 34. Cana anyone help me please? Thanks in advance.
    </blockquote>
    ''Thanks for your reply = this has worked for me. Regards. LezLezLez.''

Maybe you are looking for

  • Images missing in Keynote 08

    I have often had this problem - in previous versions of Keynote - where a file would open up with a warning that various image files could not be found, even though they had never been moved from their original location. This entailed reloading them

  • I would like to add a password to the saved passwords list.

    I would like to add a password to Firefox's saved passwords but I can find no way to manually do this. The site does allow password saving, but Firefox does not prompt me to "Remember, Never Remember or Not Now" when I go to log in. The site is not l

  • Error while executing BEx Query on Composite Provider

    Hi, We have a BW on-HANA system, patch level SAPKW73105. We have created a Composite provider based on the union of two DSOs, two infoobjects, one SPO, and there are a couple of joins with two other DSOs, on the top of that we built a BEx query. Whil

  • Saving formula results in structures

    Hi, i built a structure to input values of a "profit and loss"-statement. The turnover, for example, is shown as a sum of three accounts: account        description 10000          Turnover 1 11000          Turnover 2 12000          Turnover 3 13000  

  • Use automator or applescript to capture and paste text

    Hi, I have two separate applications that need to share data and the developers are refusing to work with each other. Many years ago, I worked in QA but in an MS environment and we had tools that could capture images and text and input that back in.