• 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: constant afdregfp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: constant afdregfp


  • Subject: Re: constant afdregfp
  • From: "Romulus Barabas" <email@hidden>
  • Date: Tue, 10 Apr 2001 01:52:25 -0400

Thank you very much, Chris!
This is exactly what I was looking for.

Romy


Original message -----------------------

No osaxen required -- just change the + and ; to left and right chevrons,
respectively. The fact that this is showing up as a raw code is a bug --
it's supposed to show up as "frontmost application", which is still
defined enumeration for "path to". I think this broke in 1.3, but we
never really noticed.

To answer the original question: "path to" will work with any FindFolder
code as a four-character string. FindFolder is the underlying API call
that "path to" uses to tell where interesting folders are. For example,
"path to" doesn't define a term for the Favorites folder, but you can get
it by saying this:

path to "favs" --> "Macintosh HD:System Folder:Favorites:"

The authoritative source for these codes is the file Folders.h from the
Mac OS Universal Headers. These are designed for C programmers, but you
can pick out the relevant information without too much trouble even if
you don't know C.

You can download the complete headers from Apple's developer pages (see
ftp://ftp.apple.com/developer/Development_Kits/UniversalHeaders3.3.2.sit.hqx),
or you can grab a couple of selected ones from my iDisk
(http://homepage.mac.com/c.nebel): Folders.h for "path to", and Gestalt.h
for "computer" (aka "system attribute" on Mac OS X). Enjoy!


--Chris Nebel
AppleScript Engineering
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


  • Prev by Date: Sounds of silence
  • Next by Date: Re: «constant afdregfp»
  • Previous by thread: Sounds of silence
  • Next by thread: Re: constant afdregfp
  • Index(es):
    • Date
    • Thread