Help with Hyperlinks in Emails

Discussion in 'Mac Programming' started by brilliant.girl, Jul 2, 2014.

  1. brilliant.girl macrumors newbie

    Jul 2, 2014
    Hello All,

    I tried searching the forum to see if this has already been answered, but couldn't find anything.

    I am in an office where some people are on Macs and some people are on Windows. I want to be able to open file and folder locations from hyperlinks in emails when a Windows user sends the link to a Mac user.

    An example would be something like:

    Dear coworker,

    I worked on that file we talked about and you can find the current version here.

    Where here. would be a hyperlink and would link to something like this:

    I was able to set this up which allows me to jump to the folder when they actually type out the path name for me, but I can't figure out how to modify it when a path is embedded in a hyperlink or when I have the longer path name from copying the link.

    Can someone more familiar with apple scripting please help me out?

  2. DennisBlah macrumors 6502


    Dec 5, 2013
    The Netherlands
    Hi Brillant girl!

    This might not really be what you are looking for but...
    If you change
    set itemPath to selection as string

    set itemPath to (the clipboard as text)
    the itemPath will be something you have in your clipboard.
    Then just rightclick a link -> Copy Link
    and then run the script :)

    Maybe this is of any help!

Share This Page