mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 23:28:02 +00:00
Add Open Finder.app To Specific Directory as a Mac til
This commit is contained in:
@@ -10,7 +10,7 @@ pairing with smart people at Hashrocket.
|
|||||||
|
|
||||||
For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186).
|
For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186).
|
||||||
|
|
||||||
_1185 TILs and counting..._
|
_1186 TILs and counting..._
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -478,6 +478,7 @@ _1185 TILs and counting..._
|
|||||||
- [Gesture For Viewing All Windows Of Current App](mac/gesture-for-viewing-all-windows-of-current-app.md)
|
- [Gesture For Viewing All Windows Of Current App](mac/gesture-for-viewing-all-windows-of-current-app.md)
|
||||||
- [Insert A Non-Breaking Space Character](mac/insert-a-non-breaking-space-character.md)
|
- [Insert A Non-Breaking Space Character](mac/insert-a-non-breaking-space-character.md)
|
||||||
- [List All The Say Voices](mac/list-all-the-say-voices.md)
|
- [List All The Say Voices](mac/list-all-the-say-voices.md)
|
||||||
|
- [Open Finder.app To Specific Directory](mac/open-finder-app-to-specific-directory.md)
|
||||||
- [Quickly Type En Dashes And Em Dashes](mac/quickly-type-en-dashes-and-em-dashes.md)
|
- [Quickly Type En Dashes And Em Dashes](mac/quickly-type-en-dashes-and-em-dashes.md)
|
||||||
- [Require Additional JS Libraries In Postman](mac/require-additional-js-libraries-in-postman.md)
|
- [Require Additional JS Libraries In Postman](mac/require-additional-js-libraries-in-postman.md)
|
||||||
- [Resize App Windows With AppleScript](mac/resize-app-windows-with-applescript.md)
|
- [Resize App Windows With AppleScript](mac/resize-app-windows-with-applescript.md)
|
||||||
|
|||||||
29
mac/open-finder-app-to-specific-directory.md
Normal file
29
mac/open-finder-app-to-specific-directory.md
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# Open Finder.app To Specific Directory
|
||||||
|
|
||||||
|
The Mac OSX built-in GUI for navigating directories and files is _Finder.app_.
|
||||||
|
I use it just about anytime I need to drag a file on my machine into Slack,
|
||||||
|
Discord, Google Drive, or wherever else has a file drop zone.
|
||||||
|
|
||||||
|
Sometimes certain directories can be hard to navigate to because they are
|
||||||
|
deeply nested or because Mac hides them by default. The `~/Library` directory
|
||||||
|
is a great example of the latter.
|
||||||
|
|
||||||
|
I can use the `open` command from the terminal to open a Finder window right in
|
||||||
|
that directory.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ cd ~/Library
|
||||||
|
$ open .
|
||||||
|
```
|
||||||
|
|
||||||
|
I first navigated there and then I ran `open .` which means open the current
|
||||||
|
directory. For directories, `open` defaults to using Finder.app.
|
||||||
|
|
||||||
|
I could have also run `open` with the target directory name instead of
|
||||||
|
navigating there first.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ open ~/Library
|
||||||
|
```
|
||||||
|
|
||||||
|
See `man open` for more details.
|
||||||
Reference in New Issue
Block a user