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


Click here to return to the '... Or use an Applescript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
... Or use an Applescript
Authored by: macintron on Feb 16, '05 02:25:29AM
... and save it in your '~/Library/Scripts/' folder

tell application "Finder"
	try
		set frontPath to get selection as alias
		set posixPath to (get POSIX path of frontPath)
		set hfsPath to (frontPath as string)
		
		set theMsg to "Copy path to clipboard: " & return & "POSIX:" & return & posixPath & return & return & "HFS:" & return & hfsPath
		tell me to display dialog theMsg buttons {"POSIX", "HFS", "Cancel"} default button 1
		set userAnswer to button returned of result
		if userAnswer is "POSIX" then
			set the clipboard to the (posixPath as string)
		else if userAnswer is "HFS" then
			set the clipboard to the hfsPath
		end if
	end try
end tell


[ Reply to This | # ]