Re: Defing a Path correctly
Re: Defing a Path correctly
- Subject: Re: Defing a Path correctly
- From: Martin Orpen <email@hidden>
- Date: Wed, 20 Jul 2005 00:42:05 +0100
on 19/7/05 23:05, Adam Wuellner at email@hidden wrote:
> tell application "Finder"
> local s, o, f, tids
> set s to the selection
> set o to {}
> repeat with f in s
> set f to f as alias
> set end of o to POSIX path of f
> end repeat
> set {tids, AppleScript's text item delimiters} to {AppleScript's text
> item delimiters, return}
> set the clipboard to (o as string)
> set AppleScript's text item delimiters to tids
> end tell
How about:
tell application "Finder" to set the clipboard to "'" & (POSIX path of
(selection as Unicode text)) & "'"
Longer version of the script here where you can choose Mac, Unix or URL
paths:
<http://prometheus.idea-digital.com/phpbb2/viewtopic.php?t=256>
Regards
--
Martin Orpen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden