Open the Current Finder Window in the Terminal with cdto
Need to access the current Finder directory immediately within the Terminal? While newer Mac OS X versions have an option to enable “New Terminal at Folder” in Services, prior releases do not, so instead you can get cdto, it’s one of those must-have apps for anyone who’s constantly switching between the command line and the Finder.
Installing cdto is simple, just download the app and place it somewhere in your Applications or Utilities folder, then drag the app directly into your Finder toolbar.
Now anytime you want to open any Finder window within with the Terminal, click the cdto icon and a new Terminal session is started with the PWD set to the same folder that you were using in the Finder.
This is likely most useful for prior releases of OS X, but you can still use the utility in modern versions of Mac OS as well.