Re: copy full filepath name
Re: copy full filepath name
- Subject: Re: copy full filepath name
- From: Paul Skinner <email@hidden>
- Date: Tue, 22 Jun 2004 16:33:53 -0400
Not a direct answer to your question, but tangental.
I don't know what you're using the paths for, but I frequently want to
direct users to a file or folder on the server within an email. this
script puts a clickable file URL(s) on the clipboard that you can paste
for idiot-proof ( I mean user-friendly ) file references.
set ptid to AppleScript's text item delimiters
set urls to {}
tell application "Finder"
set s to get the selection
repeat with thisItem in (s as list)
set the end of urls to "<" & the URL of thisItem & ">"
end repeat
set AppleScript's text item delimiters to return
set the urls to the urls as text
set AppleScript's text item delimiters to ptid
set the clipboard to the urls
display dialog "The URLs of the selected files are now on the
clipboard."
end tell
i.e.--> <file://localhost/System/Library/CoreServices/>
Paul
On Jun 22, 2004, at 5:58 AM, Oz Springs wrote:
For OS9 there were a couple of things I could use to copy the pathname
of a document on my Mac, for example Acme CMM Widgets for contextual
menus. Unfortunately this hasn't been upgraded for OSX.
Does anyone know of an equivalent for OSX that I could use in FMD 6 or
anything else if it is a contextual menu, or in Services, though I'd
prefer contextual menu.
Thanks for any help
Oz
Many thanks
Oz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.