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

Access a Finder folder's contents from Safari Web Browsers
This is a fairly simple hint, and a variation on this previous hint, that gives you quick access to the contents of a Finder's folder (eg: Downloads) from Safari via a bookmark.

Simply add a new Bookmark entry (Bar or Menu, your choice), with the desired file:///-type folder path as described in the prior hint, but then append .DS_Store to the path like so:
file:///Users/your_username/Downloads/.DS_Store
Clicking this bookmark will open the linked folder in Finder, displaying its contents. The reason we've linked to .DS_Store file here and not the folder itself is to force Safari to open the destination folder. Without the hidden invisible file at the end, Safari will reveal the location of the specified folder within its containing folder. When you link to a file within the folder, Safari will actually open the folder.

The advantage of linking to the invisible .DS_Store file is that since Safari cannot open that file type, it simply opens the containing folder in its previous view state (being invisible, .DS_Store cannot be highlighted in Finder, as would be the case if you link to a visible file).

If we link to a file that Safari can open (html, jpg, pdf, etc.), Safari will of course display that file in a browser window. Also, most (all?) folders contain a hidden .DS_Store file, unless you've stripped them out, so you can be reasonably certain one will exist.

Caveat: Unlike the previous hint, you will not get the folder's icon in your Bookmarks menu. Instead, the .DS_Store file's generic-file icon is shown. I'm not sure if you can give .DS_Store files a custom icon to remedy that.

[robg adds: This hint is mainly for those who use list or icon view. The previous hint merely selects the specified folder in Finder, but in column view mode, that means you get to see the contents of the folder in the next column. Icon and list view, though, need to point to a file within the folder to get it to open automatically.]
    •    
  • Currently 2.10 / 5
  You rated: 2 / 5 (10 votes cast)
 
[13,676 views]  

Access a Finder folder's contents from Safari | 12 comments | Create New Account
Click here to return to the 'Access a Finder folder's contents from Safari' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Access a Finder folder's contents from Safari
Authored by: elfinabout on Jul 31, '09 08:17:05AM

Actually, you can just put, for instance:

~/Downloads/.DS_Store

Into the address bar - Safari will still interpret it.



[ Reply to This | # ]
Access a Finder folder's contents from Safari
Authored by: zane on Jul 31, '09 10:46:32AM

I was going to mention this too, but thought for the sake of clarity I'd just give the full path as Safari does indeed resolve the tilde (~) automatically (both when dragging from address, and entering manually via. the Bookmarks interface).

The tilde is indeed an excellent shortcut.



[ Reply to This | # ]
Access a Finder folder's contents from Safari
Authored by: ars on Jul 31, '09 09:33:59AM

Excellent hint! it used to work without the addition of .DS_Store, but stopped working with one of the latest os updates. I had played with different options to add, but had not tried this one. if you list an existing folder inside the Downloads folder than it will open the Downloads folder, but not at the top but at the location of that folder (which is what I wanted).



[ Reply to This | # ]
Access a Finder folder's contents from Safari
Authored by: zane on Jul 31, '09 10:35:33AM

I was doing the same thing, but wasn't satisfied with having my "dummy folder" being highlighted. The .DS_Store method *just* occurred to me as an alternative. I was most pleased when it yielded the desired effect!



[ Reply to This | # ]
Access a Finder folder's contents from Safari
Authored by: mael on Jul 31, '09 09:59:39AM

Excellent!
And by putting it into the Bookmarks Bar (whats Lesezeichenleiste in English?) as the first non-folder entry, you can call it up with Apple-1 as a keyboard shortcut.



[ Reply to This | # ]
Access a Finder folder's contents from Safari
Authored by: zane on Jul 31, '09 10:40:09AM

I was going to mention this, but thought somebody will figure that out pretty easily. You can also take advantage of Keyboard Shortcuts in System Prefs if you prefer not to use a number-key slot.

*According to Dashboard's translator: Lesezeichenleiste = Bookmark Table ;)



[ Reply to This | # ]
Access a Finder folder's contents from Safari
Authored by: osxpounder on Aug 06, '09 09:14:26AM

You translated perfectly. It's the Bookmarks Bar.



[ Reply to This | # ]
Access a Finder folder's contents from Safari
Authored by: regulus on Jul 31, '09 10:52:37AM
I use Simple WindowSets to open Finder windows. It's very simple to setup and use. It gives you great control over the size, view, position, and other variables of Finder windows. Plus it's a menubar application so it's always available at the top of your screen no matter what application you're using. It has keyboard shortcuts too.

Disclaimer: I am the developer of this application.

http://www.hamsoftengineering.com/products/sws/sws.html

[ Reply to This | # ]
Access a Finder folder's contents from Safari
Authored by: dille on Jul 31, '09 11:34:09AM

No need to horse around with .DS_Store files. Just end the URI with a dot (ie. ~/Desktop/.) and you're good.



[ Reply to This | # ]
Access a Finder folder's contents from Safari
Authored by: joem on Jul 31, '09 11:57:55AM

This (. instead of .DS_Store method) doesn't work for me with Safari 4.0.2. Instead, it works like the hint this hint referenced (ie. opening the folder that contains the folder you're trying to go to, instead of the folder you want itself).



[ Reply to This | # ]
Access a Finder folder's contents from Safari
Authored by: ether on Jul 31, '09 11:48:22AM

If I use the bookmark ~/Downloads/ it works fine.

Is this something that broke between Safari 4 public beta (which I'm still using because I like the tabs) and Safari 4?



[ Reply to This | # ]
Access a Finder folder's contents from Safari
Authored by: joem on Jul 31, '09 12:05:40PM

Are you sure you're reading the hint correctly? Using the method you mention (in Safari 4.0.2, at least) takes you to a Finder window of ~/ with ~/Downloads/ selected. Using the .DS_Store hint, it'll take you directly to a Finder window of ~/Downloads/

If they really changed that functionality between the beta and the official release, that strikes me a bizarre (and unfortunate).



[ Reply to This | # ]