Help with Hyperlinks in Emails

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

  1. brilliant.girl macrumors newbie

    Joined:
    Jul 2, 2014
    #1
    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:
    file://///server/volume/Design%20Center/Competitions.

    I was able to set this up http://erik.arvedson.se/2009/04/converting-windows-paths-to-mac-paths.html 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?

    Thanks!
     
  2. DennisBlah macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #2
    Hi Brillant girl!

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

    Code:
    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