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

Click here to return to the 'Add a 'Go to Parent Folder' button to the toolbar' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Add a 'Go to Parent Folder' button to the toolbar
Authored by: mantrid on Mar 27, '07 08:17:55AM
I also have been using a toolbar button for this function for a while. I started out scripting "Finder" as described in this hint, but ultimately switched to scripting a keystroke:
tell application "System Events" to keystroke (ASCII character 30) using command down

It is ugly in that it is possible to switch windows before the keystroke takes effect so that it doesn't go to the intended window, but you almost have to try to do it on purpose. Some of its ugliness is mitigated by the fact that, as a toolbar button, the keystroke implicitly would go to the front window (Finder toolbar buttons don't support Cocoa Cmd-click through behaviour).

Despite these drawbacks, the reason why I prefer the keystroke way is the behaviour in "Icon" and "List" view. Both methods will "go to parent", but unlike the container of window approach, a keystroke also leaves the previous folder selected so you can see where you came from.

[ Reply to This | # ]