Applescript, how to get network address of a file
Posted
by CRP
on Stack Overflow
See other posts from Stack Overflow
or by CRP
Published on 2010-04-08T14:25:38Z
Indexed on
2010/04/08
18:03 UTC
Read the original article
Hit count: 267
We are a network of Mac computers. I would like to send email addresses to colleagues with links to files on network locations. I made the following applescript:
tell application "Finder" set uuu to URL of the first item of (get the selection) set the clipboard to uuu end tell
which puts the URL of the currently selected file into the clipboard, which can then be pasted into the message (using the Add Link menu item), providing, for example:
file://localhost/Volumes/Commerciale/Clienti/
unfortunately these links do not work. If I select Go To Folder from the menu item, I can get to the folder using an afp:// type url. Is there any way to get this via applescript like I do with url above?
Thanks
© Stack Overflow or respective owner