• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AppleScript & UNIX Example
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: finding reference to spread of generic box in QuarkXPress
  • Next by Date: Re: Scripting Additions: Embracing the Horror of Unix
  • Previous by thread: Re: finding reference to spread of generic box in QuarkXPress
  • Next by thread: OS X: Triggering Handlers from the Dock
  • Index(es):
    • Date
    • Thread