Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'One way to share links to networked files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
One way to share links to networked files
Authored by: Spartacus on Mar 23, '09 08:37:24AM
What about this script, if you have to do it often? Save it as an application and drag it to the top of a Finder window.
(* I am hereby making it clear that this code was descended from Apple sample code, but that I've made changes. *)

tell application "Finder"
	set the item_list to selection
	if (count of item_list) is 0 then
			set the item_list to {(folder of the front window) as alias}
		on error
			set the item_list to {path to desktop folder as alias}
		end try
	end if
end tell

set urls to ""
repeat with this_item in item_list
	tell application "Finder" to set this_url to URL of this_item
	set urls to urls & this_url & return
end repeat

set the clipboard to (urls as text)

[ Reply to This | # ]