PDA

View Full Version : Forcing PF to open a specific folder when starting


StuDad
Mar 29, 2007, 02:12 PM
When I boot up my Mac, I keep the minimum of programs from loading. I then open Finder (now PF!!) and I have all the programs I now want to open in one specific folder. I then click on the programs I want open for that session.

My question is 'how do I instruct PF to open with this specific folder open?'

Many thanks,

StuDad

bill
Mar 29, 2007, 04:04 PM
Two ways I can think off.

One: quit Path Finder with that folder open.

Two: do it with a shell script and an applescript

Step One, the shell script. In Terminal, enter this:
sudo nano /bin/openmyfolder
open -a "Path Finder.app" /path/to/your/folder
chmod +x /bin/openmyfolder


Step Two, the applescript. Open Script Editor and enter this as a new applescript:
do shell script "~/bin/openmyfolder"
When you save the applescript, save it as File Format application bundle. If you save it as an application, it'll run, but you'll get a yes/no window before it opens the folder.

Put the applescript in System Preferences --> Accounts --> Login Items, if you want it to automatically open the folder at login. Otherwise, run the script when you want. You can, if you want, put it in the Path Finder toolbar or the Dock to get instant one-click access.

Note:
It shouldn't be necessary to save the script in /bin, but I can't get it to run if I put it in my home folder, probably because I don't have that included in my system path.

tcsdoc
Apr 01, 2007, 09:12 PM
Maybe I'm missing something as I'm new to Path Finder (4.61) but under Preferences, Browser, there is an option for the Starting Directory. This opens Path Finder to my Work Area folder. Is this what your talking about?

bill
Apr 02, 2007, 04:14 PM
Maybe I'm missing something as I'm new to Path Finder (4.61) but under Preferences, Browser, there is an option for the Starting Directory. This opens Path Finder to my Work Area folder. Is this what your talking about?

Since it sounds like your Work Area folder is one of the built-in folders (home, Favorites, Documents, Computer or ~ [!?*]) you're good to go.

* Options include home and ~? I thought ~ was home.

CocoaNut
Apr 07, 2007, 12:13 PM
easiest solution:
put a Path Finder alias of the desired folder into the Login Items.
(>System Prefs/Accounts/Login Items)