Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

brilliant.girl

macrumors newbie
Original poster
Jul 2, 2014
1
0
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!
 
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!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.