PDA

View Full Version : How to "Reveal in Path Finder" within iTunes


opmusic
Jul 12, 2006, 10:43 AM
I'd like to be able to select a track in iTunes and "Reveal in Path Finder." However, choosing this item in the ever-present upper-right Path Finder menu just brings Path Finder to the front. I also did not see an option to do this in the Services menu, where I also might have expected such a choice to be.

In my Path Finder preferences, I have "Enable 'Reveal in Path Finder' for third party applications" checked, but I can't tell that this is actually functioning. What is this option for?

Thanks for any help!

flip
Jul 12, 2006, 05:42 PM
choosing this item in the ever-present upper-right Path Finder menu just brings Path Finder to the front.
This command is intended to reveal in PF your current Finder selection.

Here's a quick AppleScript script that reveals in PF the tunes selected in iTunes (if your reveal preference is set to "reveal in existing window", you'll only see the last item of multiselections. In this case, set the pref to "reveal in new window" or "reveal in new tab").

tell application "iTunes"
set sel to selection
repeat with a_tune in sel
set f to location of a_tune
tell application "Path Finder" to reveal f
end repeat
end tell


You can use it from Apple's Script Menu, or make it an application and add it to PF's toolbar, or add it to the contextual menu in iTunes using OnMyCommand, etc.

opmusic
Jul 13, 2006, 07:47 AM
Thanks, that works great!

waldiman
Jan 16, 2007, 06:32 AM
Hi,

does anyone with advanced Applescript knowledge have a clue, how to change the script in order to enable mutliple selections in PathFinder?

I would like to be able to select several songs of one album in iTunes and then choose "Show in PathFinder" which opens Path Finder with the same *multiple* selections. Using the script mentioned above only the last selected item is highlighted in PathFinder.

Thanks a lot in advance for any suggestions!

Cheers,
Jens

PS: If you select songs from different albums (meaning songs which are stored in different folders), the above script already opens multiple instances or tabs with all the different folders, which is great!!! So the only thing missing is the multiple file selection within one folder.

By the way: Thanks for pointing me towards OnMyCommand. It rocks!!!

flip
Jan 23, 2007, 09:58 AM
It's a limitation of PF's AppleScript implementation that you cannot select multiple files in one folder. So I'm afraid there's no workaround at the moment.