• 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
Re: Path to documents folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Path to documents folder


  • Subject: Re: Path to documents folder
  • From: Bill Cheeseman <email@hidden>
  • Date: Sun, 28 Jan 2001 06:08:41 -0500

on 1/27/01 10:02 PM, Paul Berkowitz at email@hidden wrote:

>> However there does not appear to be a (path to documents folder). Does
>> anybody know of a way to get to the currently logged in User's Documents
>> folder?
>
> ....
>
> alias ((path to startup disk) as string & "Documents:")
>
> gives you the actual folder (if it exists on the root hard disk, and hasn't
> been moved somewhere else).

This only works, of course, on systems where the Documents folder is named
"Documents". It's probably named something else on other language systems.

There actually is a Path to Documents Folder command, and a Path to
Applications Folder command, as well. But they're worded a little
differently:

Path to At Ease documents folder
--> alias "Sucia:Documents:"

Path to At Ease applications folder
--> alias "Sucia:Applications (Mac OS 9):"

(My startup disk is named Sucia, after my favorite island (in the San Juans,
in Puget Sound).

I found these using ResEdit. They probably should have been named something
else in Mac OS 9.1, since At Ease has been replaced by what? -- the "File
Manager"? The Standard Additions dictionary describes only a truncated list
of these "special folders", so you have to use a utility like ResEdit to see
all the enumerations that are available.

On a similar note:

Path to users folder
--> alias "Sucia:Users:" -- creates Users folder at root level of startup
disk if it doesn't already exist

I don't have multiple users turned on, which may be why I get an error with
this:

Path to current user folder
--> error at compile time

Can somebody tell me what all four of these statements do when multiple
users is turned on, and when there is more than one user?

These Path To "special folders" also existed in Mac OS 9.0.4 and worked the
same way there. I assume they were introduced in Mac OS 9.

-
Bill Cheeseman, Quechee, Vermont <mailto:email@hidden>

The AppleScript Sourcebook
<http://www.AppleScriptSourcebook.com/>
Vermont Recipes-A Cocoa Cookbook
<http://www.stepwise.com/Articles/VermontRecipes/>


References: 
 >Re: Path to documents folder (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: R23's Osaxen Rant (or much too much ado about nihil)
  • Next by Date: Re: QuarkXpress find and replace with variables (new question)
  • Previous by thread: Re: Path to documents folder
  • Next by thread: Re: Path to documents folder
  • Index(es):
    • Date
    • Thread