Re: path to documents folder?
Re: path to documents folder?
- Subject: Re: path to documents folder?
- From: Chris Nebel <email@hidden>
- Date: Thu, 29 Mar 2001 11:07:01 -0800
- Organization: Apple Computer, Inc.
Paul Berkowitz wrote:
>
> An additional tip about "path to": you don't need to wait for us to add an
>
> explicit enumeration, since it can also take any four-character string that's
>
a
>
> FindFolder selector. Get your hands on a copy of Folders.h (part of the
>
> Master Interfaces) and go nuts.
>
>
Ooh, that sounds good. I hope to have OS X by this weekend. (I've had to
>
order a new hard drive so I can partition it, etc.) I guess we can't add our
>
own FindFolder selector somehow? Not that it would have much use when
>
distributing scripts, of course, but I'm just too tempted to add an
>
'unspeakable items' folder if only I could. I can think of a few things I'd
>
put there. ;-)
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn. Ia! Shub-Niggurath!
Narrathoth! Narrathoth! Narrathoth!
Oh, excuse me. There is a C API to do this -- see AddFolderDescriptor. You could
write a small scripting addition that registered the folder selector in its
startup code, and has terminology for an "unspeakable items folder" enumeration
with the same code as your folder selector. You'd have to use the native
scripting addition format to do this, since the 68K ones don't let you have
installation code.
--Chris Nebel
AppleScript Engineering