Recent Changes - Search:

WikiDoc

Categories

The [getStandardFolder] command

Commands.GetStandardFolder History

Hide minor edits - Show changes to markup

December 30, 2007, at 09:08 AM by 77.57.34.27 -
Changed lines 162-163 from:

Note: Further codes not listed in above table together with some technical details may be found at http://developer.apple.com/documentation/Carbon/Reference/Folder_Manager/Reference/reference.html#//apple_ref/c/tdef/FolderType.

to:

Note: Above list contains only the more commonly used folders. A complete list of codes together with further technical details may be found at http://developer.apple.com/documentation/Carbon/Reference/Folder_Manager/Reference/reference.html#//apple_ref/c/tdef/FolderType.

December 30, 2007, at 09:04 AM by 77.57.34.27 -
Added lines 161-163:

Note: Further codes not listed in above table together with some technical details may be found at http://developer.apple.com/documentation/Carbon/Reference/Folder_Manager/Reference/reference.html#//apple_ref/c/tdef/FolderType.

December 29, 2007, at 04:28 PM by bd - Completed list of supported codes
Changed lines 34-42 from:
System Foldermacs
Desktop Folderdesk
System Desktop Foldersdsk
Trash Foldertrsh
System Trash Folderstrs
Where To Empty Trash Folderempt
Print Monitor Docs Folderprnt
Startup Folderstrt
Shutdown Foldershdf
to:
ALM Locations Folderfall
ALM Modules Folderwalk
ALM Preferences Foldertrip
Appearance Folderappr
Apple Extras Folderaex
Changed lines 40-51 from:
Control Panel Folderctrl
System Control Panel Foldersctl
Extension Folderextn
Fonts Folderfont
Preferences Folderpref
System Preferences Foldersprf
Temporary Foldertemp
Extension Disabled FolderextD
Control Panel Disabled FolderctrD
System Extension Disabled FoldermacD
Startup Items Disabled FolderstrD
Shutdown Items Disabled FoldershdD
to:
Apple Share Authentication Folderauth
Apple Share Support Foldershar
Application Support Folderasup
Changed lines 44-45 from:
Documents Folderdocs
Volume Root Folderroot
to:
Assistants Folderast
Audio Alert Sounds Folderalrt
Audio Components Folderacmp
Audio Plug Ins Folderaplg
Audio Sound Banks Folderbank
Audio Sounds Folderasnd
Audio Support Folderadio
Boot Time Startup Items Folderempz'
Cached Data Foldercach
Carbon Library Foldercarb
Changed lines 55-71 from:
Application Support Folderasup
Text Encodings Foldertex
Stationery Folderodst
Open Doc Folderodod
Open Doc Shell PlugIns Folderodsp
Editors Folderoded
Open Doc Editors Folderodf
Open Doc Libraries Folderodlb
Gen Editors Folderedi
Help Folderhlp
Internet Plug In Foldernet
Modem Scripts Foldermod
Printer Description Folderppdf
Printer Driver Folderprd
Scripting Additions Folderscr
Shared Libraries Folderlib
Voices Folderfvoc
to:
Classic Desktop Foldersdsk
Color Sync CMMFolderccmm
Color Sync Foldersync
Color Sync Profiles Folderprof
Color Sync Scripting Foldercscr
Components Foldercmpd
Contextual Menu Items Foldercmnu
Control Panel Disabled FolderctrD
Control Panel Folderctrl
Changed lines 65-78 from:
Assistants Folderast
Utilities Folderuti
Apple Extras Folderaex
Contextual Menu Items Foldercmnu
Mac OS ReadMe Files Foldermor
ALM Modules Folderwalk
ALM Preferences Foldertrip
ALM Locations Folderfall
Color Sync Profiles Folderprof
Themes Folderthme
Favorites Folderfavs
Internet Folderint
Appearance Folderappr
Sound Sets Foldersnds
to:
Core Services Foldercsrv
Desktop Folderdesk
Changed lines 68-69 from:
Internet Search Sites Folderissf
Find Support Folderfnds
to:
Developer Docs Folderddoc
Developer Folderdevf
Developer Help Folderdevh
Directory Services Folderdsrv
Directory Services Plug Ins Folderdplg
Display Extensions Folderdspl
Documentation Folderinfo
Documents Folderdocs
Domain Library Folderdlib
Domain Top Level Folderdtop
Editors Folderoded
Extension Disabled FolderextD
Extension Folderextn
Favorites Folderfavs
File System Support Folderfsys
Changed lines 84-85 from:
Installer Logs Folderilgf
Scripts Folderscr
to:
Find By Content Indexes Folderfbcx
Find Support Folderfnds
Added lines 87-101:
Fonts Folderfont
Frameworks Folderfram
Gen Editors Folderedi
Help Folderhlp
ISSDownloads Folderissd
Index Files Folderindx
Installer Logs Folderilgf
Installer Receipts Folderrcpt
Internet Folderint
Internet Plug In Foldernet
Internet Search Sites Folderissf
Internet Sites Foldersite
Kernel Extensions Folderkext
Keyboard Layouts Folderklay
Keychain Folderkchn
Changed lines 103-109 from:
Recent Applications Folderrapp
Recent Documents Folderrdoc
Recent Servers Folderrsvr
Speakable Items Folderspki
Keychain Folderkchn
Quick Time Extensions Folderqtex
Display Extensions Folderdspl
to:
MIDI Drivers Foldermidi
Mac OS ReadMe Files Foldermor
Managed Items Foldermang
Modem Scripts Foldermod
Movie Documents Foldermdoc
Added lines 109-119:
Music Documents Folderdoc
Open Doc Editors Folderodf
Open Doc Folderodod
Open Doc Libraries Folderodlb
Open Doc Shell PlugIns Folderodsp
Picture Documents Folderpdoc
Preferences Folderpref
Print Monitor Docs Folderprnt
Printer Description Folderppdf
Printer Driver Folderprd
Printers Folderimpr
Changed lines 121-122 from:
to:
Private Frameworks Folderpfrm
Public Folderpubb
Quick Time Components Folderwcmp
Quick Time Extensions Folderqtex
Recent Applications Folderrapp
Recent Documents Folderrdoc
Recent Servers Folderrsvr
Scripting Additions Folderscr
Scripts Folderscr
Shared Libraries Folderlib
Shutdown Foldershdf
Shutdown Items Disabled FoldershdD
Sound Sets Foldersnds
Speakable Items Folderspki
Speech Folderspch
Startup Folderstrt
Startup Items Disabled FolderstrD
Stationery Folderodst
System Control Panel Foldersctl
System Desktop Foldersdsk
System Extension Disabled FoldermacD
System Foldermacs
System Preferences Foldersprf
System Sounds Folderssnd
System Trash Folderstrs
Temporary Foldertemp
Text Encodings Foldertex
Themes Folderthme
Trash Foldertrsh
User Specific Tmp Folderutmp
Utilities Folderuti
Voices Folderfvoc
Volume Root Folderroot
Where To Empty Trash Folderempt

November 01, 2007, at 04:01 AM by agm - spam cleanup
Deleted line 0:

sitalcatrlet

Changed line 61 from:
Text Encodings Folderƒtex
to:
Text Encodings Foldertex
Changed line 66 from:
Open Doc Editors Folderƒodf
to:
Open Doc Editors Folderodf
Changed lines 68-71 from:
Gen Editors Folderƒedi
Help Folderƒhlp
Internet Plug In Folderƒnet
Modem Scripts Folderƒmod
to:
Gen Editors Folderedi
Help Folderhlp
Internet Plug In Foldernet
Modem Scripts Foldermod
Changed lines 73-75 from:
Printer Driver Folderƒprd
Scripting Additions Folderƒscr
Shared Libraries Folderƒlib
to:
Printer Driver Folderprd
Scripting Additions Folderscr
Shared Libraries Folderlib
Changed lines 78-80 from:
Assistants Folderastƒ
Utilities Folderutiƒ
Apple Extras Folderaexƒ
to:
Assistants Folderast
Utilities Folderuti
Apple Extras Folderaex
Changed line 82 from:
Mac OS ReadMe Files Foldermorƒ
to:
Mac OS ReadMe Files Foldermor
Changed line 89 from:
Internet Folderintƒ
to:
Internet Folderint
Changed line 92 from:
Desktop Pictures Folderdtpƒ
to:
Desktop Pictures Folderdtp
Changed line 97 from:
Scripts Folderscrƒ
to:
Scripts Folderscr
Changed line 111 from:

Note: some of the codes in the table above use the ƒ symbol. This is

to:

Note: some of the codes in the table above use the symbol. This is

Changed line 120 from:
     «MacOS version
to:
     MacOS version
Changed line 123 from:
     «MacOS info command getStandardFolder
to:
     MacOS info command getStandardFolder
Changed line 126 from:
     «MacOS getStandardFolder asup user
to:
     MacOS getStandardFolder asup user
Changed line 129 from:
     «MacOS getStandardFolder asup local
to:
     MacOS getStandardFolder asup local
Changed line 132 from:
     «MacOS getStandardFolder flnt user
to:
     MacOS getStandardFolder flnt user
Changed line 135 from:
     «MacOS getStandardFolder -create flnt user
to:
     MacOS getStandardFolder -create flnt user
November 01, 2007, at 03:04 AM by 83.174.193.228 -
Added line 1:

sitalcatrlet

Changed line 62 from:
Text Encodings Foldertex
to:
Text Encodings Folderƒtex
Changed line 67 from:
Open Doc Editors Folderodf
to:
Open Doc Editors Folderƒodf
Changed lines 69-72 from:
Gen Editors Folderedi
Help Folderhlp
Internet Plug In Foldernet
Modem Scripts Foldermod
to:
Gen Editors Folderƒedi
Help Folderƒhlp
Internet Plug In Folderƒnet
Modem Scripts Folderƒmod
Changed lines 74-76 from:
Printer Driver Folderprd
Scripting Additions Folderscr
Shared Libraries Folderlib
to:
Printer Driver Folderƒprd
Scripting Additions Folderƒscr
Shared Libraries Folderƒlib
Changed lines 79-81 from:
Assistants Folderast
Utilities Folderuti
Apple Extras Folderaex
to:
Assistants Folderastƒ
Utilities Folderutiƒ
Apple Extras Folderaexƒ
Changed line 83 from:
Mac OS ReadMe Files Foldermor
to:
Mac OS ReadMe Files Foldermorƒ
Changed line 90 from:
Internet Folderint
to:
Internet Folderintƒ
Changed line 93 from:
Desktop Pictures Folderdtp
to:
Desktop Pictures Folderdtpƒ
Changed line 98 from:
Scripts Folderscr
to:
Scripts Folderscrƒ
Changed line 112 from:

Note: some of the codes in the table above use the symbol. This is

to:

Note: some of the codes in the table above use the ƒ symbol. This is

Changed line 121 from:
     MacOS version
to:
     «MacOS version
Changed line 124 from:
     MacOS info command getStandardFolder
to:
     «MacOS info command getStandardFolder
Changed line 127 from:
     MacOS getStandardFolder asup user
to:
     «MacOS getStandardFolder asup user
Changed line 130 from:
     MacOS getStandardFolder asup local
to:
     «MacOS getStandardFolder asup local
Changed line 133 from:
     MacOS getStandardFolder flnt user
to:
     «MacOS getStandardFolder flnt user
Changed line 136 from:
     MacOS getStandardFolder -create flnt user
to:
     «MacOS getStandardFolder -create flnt user
January 11, 2007, at 08:05 PM by bd - Title prettified
Added lines 1-2:

(:title The [getStandardFolder] command:)

June 15, 2006, at 07:56 PM by cbu - corrected minor typos
Changed line 6 from:

system-related directories. Optionnally this function can create (or

to:

system-related directories. Optionally this function can create (or

Added line 11:
Changed line 111 from:

It corresponds ot the U+0192 code-point in the Utf-8 Unicode encoding form.

to:

It corresponds to the U+0192 code-point in the Utf-8 Unicode encoding form.

Added line 115:
Changed line 117 from:
     Welcome to AlphaX's AlphaTcl shell.
to:
    Welcome to AlphaX's AlphaTcl shell.
April 26, 2006, at 08:05 PM by bd - Local link
Deleted line 0:
Changed line 16 from:
  • folderType is a four-character code characterizing a particular folder (see below).
to:
  • folderType is a four-character code characterizing a particular folder (see below).
Added line 19:

April 23, 2006, at 08:08 AM by 84.37.69.107 -
Added line 1:
Changed line 5 from:

The new command [getStandardFolder] has been introduced in order to wrap the

to:

The new command [getStandardFolder] has been introduced in order to wrap the

Changed lines 15-18 from:

The arguments are:

  • -create is optional: it tells to create the folder if it does not exist.
  • folderType is a four characters code designated the folder (see below).
  • domain is optional. It specifies the domain the folder belongs to. For instance there are several Fonts directories on the system, corresponding to different domains: /System/Library/Fonts in the System domain, /Library/Fonts in the local domain, or ~/Fonts in the user domain. Possible values for this parameter are: classic, local, network, system, or user. If it is not specified, the default value is system.
to:

The arguments have the following signification:

  • -create tells to attempt to create the folder if it does not exist. This argument is optional.
  • folderType is a four-character code characterizing a particular folder (see below).
  • domain is optional. It specifies the domain the folder belongs to. For instance, there are several Fonts directories on the system, corresponding to different domains: /System/Library/Fonts in the System domain, /Library/Fonts in the local domain, or ~/Fonts in the user domain. Possible values for this parameter are: classic, local, network, system, or user. If it is not specified, the default value is system.
Added line 24:
Added line 28:
Added lines 107-111:

Note: some of the codes in the table above use the symbol. This is the character of code 196 (0xc4 in hexadecimal) in the MacRoman encoding. It corresponds ot the U+0192 code-point in the Utf-8 Unicode encoding form. It is obtained from the keyboard by typing opt-f.

Changed line 113 from:

Here are some examples to demonstrate the use of the [getStandardFolder] command:

to:

Here are some examples to demonstrate the use of the [getStandardFolder] command:

Changed line 138 from:

Last updated 2006-04-23 09:53:46

to:

Last updated 2006-04-23 10:07:01

April 23, 2006, at 07:55 AM by 84.37.69.107 -
Added lines 1-130:
This page documents the new [getStandardFolder] command introduced in version 8.1d1 of AlphaX.

Description

The new command [getStandardFolder] has been introduced in order to wrap the ToolBox function of the same name. It returns the full path of certain system-related directories. Optionnally this function can create (or attempt to create, depending on the permissions) the folders when they do not exist already.

Synopsis

The syntax of the command is the following:

 
     getStandardFolder ?-create? folderType ?domain?

The arguments are:

  • -create is optional: it tells to create the folder if it does not exist.
  • folderType is a four characters code designated the folder (see below).
  • domain is optional. It specifies the domain the folder belongs to. For instance there are several Fonts directories on the system, corresponding to different domains: /System/Library/Fonts in the System domain, /Library/Fonts in the local domain, or ~/Fonts in the user domain. Possible values for this parameter are: classic, local, network, system, or user. If it is not specified, the default value is system.

Main folder codes

One must pass a four-character folder type for the folder you want to find. The table below indicates the currently available codes. More information can be found on Apple's Developer Connection at http://developer.apple.com/documentation/Carbon/Reference/Folder_Manager/Reference/reference.html#//apple_ref/c/tdef/FolderType These codes are declared in the Folders.h header found in the CoreServices framework (see /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/Folders.h).

FolderCode
System Foldermacs
Desktop Folderdesk
System Desktop Foldersdsk
Trash Foldertrsh
System Trash Folderstrs
Where To Empty Trash Folderempt
Print Monitor Docs Folderprnt
Startup Folderstrt
Shutdown Foldershdf
Apple Menu Folderamnu
Control Panel Folderctrl
System Control Panel Foldersctl
Extension Folderextn
Fonts Folderfont
Preferences Folderpref
System Preferences Foldersprf
Temporary Foldertemp
Extension Disabled FolderextD
Control Panel Disabled FolderctrD
System Extension Disabled FoldermacD
Startup Items Disabled FolderstrD
Shutdown Items Disabled FoldershdD
Applications Folderapps
Documents Folderdocs
Volume Root Folderroot
Chewable Items Folderflnt
Application Support Folderasup
Text Encodings Foldertex
Stationery Folderodst
Open Doc Folderodod
Open Doc Shell PlugIns Folderodsp
Editors Folderoded
Open Doc Editors Folderodf
Open Doc Libraries Folderodlb
Gen Editors Folderedi
Help Folderhlp
Internet Plug In Foldernet
Modem Scripts Foldermod
Printer Description Folderppdf
Printer Driver Folderprd
Scripting Additions Folderscr
Shared Libraries Folderlib
Voices Folderfvoc
Control Strip Modules Foldersdev
Assistants Folderast
Utilities Folderuti
Apple Extras Folderaex
Contextual Menu Items Foldercmnu
Mac OS ReadMe Files Foldermor
ALM Modules Folderwalk
ALM Preferences Foldertrip
ALM Locations Folderfall
Color Sync Profiles Folderprof
Themes Folderthme
Favorites Folderfavs
Internet Folderint
Appearance Folderappr
Sound Sets Foldersnds
Desktop Pictures Folderdtp
Internet Search Sites Folderissf
Find Support Folderfnds
Find By Content Folderfbcf
Installer Logs Folderilgf
Scripts Folderscr
Folder Actions Folderfasf
Launcher Items Folderlaun
Recent Applications Folderrapp
Recent Documents Folderrdoc
Recent Servers Folderrsvr
Speakable Items Folderspki
Keychain Folderkchn
Quick Time Extensions Folderqtex
Display Extensions Folderdspl
Multiprocessing Foldermpxf
Printing PlugIns Folderpplg

Examples

Here are some examples to demonstrate the use of the [getStandardFolder] command:

 
     Welcome to AlphaX's AlphaTcl shell.
     MacOS version
     AlphaX 8.1d1, Wednesday, 11 January 2006

     MacOS info command getStandardFolder
     getStandardFolder

     MacOS getStandardFolder asup user
     /Users/bernardo/Library/Application Support/

     MacOS getStandardFolder asup local
     /Library/Application Support/

     MacOS getStandardFolder flnt user
     Error: 

     MacOS getStandardFolder -create flnt user
     /Users/bernardo/Library/Caches/Cleanup At Startup/


(add your comments here...)


Last updated 2006-04-23 09:53:46

Page last modified on December 30, 2007, at 09:08 AM
Hosted on SourceForge.net Logo