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


Click here to return to the 'Mine never fails' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Mine never fails
Authored by: juanfal on Sep 24, '11 03:16:49AM
In .bash_profile put:

cdf () {
  theFinderPath=`osascript <<END
tell application "Finder"
	try
		set thePath to get the POSIX path of (folder of the front window as string)
	on error
		set thePath to get the POSIX path of (path to desktop folder as string)
	end try
end tell
END
`
  cd "$theFinderPath";
}


[ Reply to This | # ]