news
About Elegant Chaos
info
About me and my friends
people
Software from Elegant Chaos
software
Other stuff...
stuff

FindFolder

An XFCN for locating special folders (such as the system folder), either on a given volume, or on the startup disk.

FindFolder XFCN. Version 1.1d1, by Sam Deane. Copyright ©1994 ULTRALAB. Compiled 16:56:15, 28/04/94. Debugging code included.


[last exit to hypercard] [externals index] [download FindFolder]

Description

The FindFolder command allows you to find out the path name of standard folders, such as the system folder, control panels folder, preferences etc.

The syntax for the command is:

    FindFolder(<type> [,<create> [,<volume> ]] )
 

The folder type <type> can be one of the following standard folder names:

    System Folder
  Desktop Folder
  Trash
  Network Trash
  Startup Items
    Extensions
  Control Panels
  Apple Menu Items
  Preferences
  PrintMonitor Documents
  Temporary Items
  Fonts (system 7.1 only)

The optional <create> parameter is a boolean which says whether or not to create the folder if it wasn't found. By default this is false. Note that a system folder will never be created by this command.

The optional <volume> parameter is the name of the volume on which to look for the folder. By default this is the startup volume.

If the folder was found, it's full path is returned.

If not, "folder not found" is returned.

Example script

on mouseUp
  answer FindFolder("system folder")
end mouseUp

Commands

Apple Menu Items

Control Panels

Desktop Folder

Extensions

Preferences

PrintMonitor Documents

Network Trash

Trash

Startup Items

System Folder

Temporary Items

Fonts


[last exit to hypercard] [externals index] [download FindFolder]

This page was created automatically, on 25/03/1999 from version 3.0d4 of Last Exit To Hypercard.