AppleScript & UNIX Example
AppleScript & UNIX Example
- Subject: AppleScript & UNIX Example
- From: Joe Kelly <email@hidden>
- Date: Wed, 30 Jan 2002 16:18:13 -0800
I just posted a horrible little applet, "PathBrowser.scpt" on my Public
iDisk, username = joeman. Feel free to mash it into little bits, or better
yet, improve it (send me a copy of the improved version).
OS X hides a good portion of the file system from the user; you can defeat
this file system censorship by opening a root shell in terminal, mucking
about with pref files just as you tell the finder to quit, a feat requiring
hand eye coordination. Not for the faint at heart.
Instead, I wrote an applescript that "browses" the file system in its
entirety using "do shell script" alot. Note that it works pretty good when
descending into folders, but going back up (double click on "..") it merely
appends ".." to the path.
Also, when you double click on something that's _not_ a directory, it
attempts to use the "open" command, which apparently doesn't work when
called from AppleScript. I'm not a unix-y guy, so I don't know why.
joe