|
From: <cre...@us...> - 2006-05-05 19:17:19
|
Revision: 1360 Author: creecode Date: 2006-05-05 12:17:09 -0700 (Fri, 05 May 2006) ViewCVS: http://svn.sourceforge.net/frontierkernel/?rev=1360&view=rev Log Message: ----------- documented new specialfolder for Windows Modified Paths: -------------- ODBs/trunk/frontierRoot/system/verbs/builtins/file/getSpecialFolderPath.fvc Modified: ODBs/trunk/frontierRoot/system/verbs/builtins/file/getSpecialFolderPath.fvc =================================================================== --- ODBs/trunk/frontierRoot/system/verbs/builtins/file/getSpecialFolderPath.fvc 2006-05-05 19:12:44 UTC (rev 1359) +++ ODBs/trunk/frontierRoot/system/verbs/builtins/file/getSpecialFolderPath.fvc 2006-05-05 19:17:09 UTC (rev 1360) @@ -1,18 +1,22 @@ -FrontierVcsFile:1:scpt:system.verbs.builtins.file.getSpecialFolderPath +FrontierVcsFile:2:scpt:system.verbs.builtins.file.getSpecialFolderPath on getSpecialFolderPath (vol, specialfolder, create) { - \xC7Changes - \xC712/29/05; 11:38:18 AM by TAC - \xC7added specialfolder for "application support" and "current user" - \xC7reworked not to use getUserFolder - \xC78/25/05; 6:13:22 PM by TAC - \xC7on Mac OS X for trash case, folder is .Trash - \xC78/3/05; 3:20:59 PM by TAC - \xC7added Documents folder case for Mac OS Carbon, suggest by Sean Elfstrom from a doc server discussion group message - \xC78/26/01; 11:30:11 PM by JES - \xC7Added support for special folders used for MacOS X. - \xC75.0.1 dmb: added "temporary item" support for Windows - \xC7maps to the Temp directory + «Changes + «4/11/06; 1:43:50 PM by TAC + «documented new specialfolder for Windows + «12/29/05; 11:38:18 AM by TAC + «added specialfolder for "application support" and "current user" + «reworked not to use getUserFolder + «8/25/05; 6:13:22 PM by TAC + «on Mac OS X for trash case, folder is .Trash + «8/3/05; 3:20:59 PM by TAC + «added Documents folder case for Mac OS Carbon, suggest by Sean Elfstrom from a doc server discussion group message + «8/26/01; 11:30:11 PM by JES + «Added support for special folders used for MacOS X. + «5.0.1 dmb: added "temporary item" support for Windows + «maps to the Temp directory + «Monday, December 8, 1997 at 3:59:21 PM by DW + «added Windows support on kernelcall (vol, specialfolder, create) { kernel (file.getSpecialFolderPath)}; @@ -21,14 +25,14 @@ "MacOS" { local (flMacOsX = system.environment.osMajorVersion >= 10); - \xC7on getUserFolder () - \xC7local (username = string.nthField (sys.unixShellCommand ("who am i"), ' ', 1)) - \xC7return (vol + "Users" + pc + username + pc) + «on getUserFolder () + «local (username = string.nthField (sys.unixShellCommand ("who am i"), ' ', 1)) + «return (vol + "Users" + pc + username + pc) if vol == "" { vol = file.getSystemDisk ()}; case string.lower (specialfolder) { - \xC7"fontcollections" + «"fontcollections" "desktop folder"; "fonts"; "preferences"; @@ -71,25 +75,43 @@ kernelcall (vol, specialfolder, create)}; "Win95"; "WinNT" { - \xC7Monday, December 8, 1997 at 3:59:21 PM by DW - \xC7"Desktop" -- Windows desktop - virtual folder at the root of the name space. - \xC7"DesktopDirectory" -- File system directory used to physically store file - \xC7objects on the desktop (not to be confused with the desktop folder itself). - \xC7"Fonts" -- Virtual folder containing fonts. - \xC7"NetHood" -- File system directory containing objects that appear in the network neighborhood. - \xC7"Personal" -- File system directory that serves as a common respository for documents - \xC7"Programs" -- File system directory that contains the user's program groups (which are also file system directories). - \xC7"Recent" -- File system directory that contains the user's most recently used documents. - \xC7"SendTo" -- File system directory that contains Send To menu items. - \xC7"StartMenu" -- File system directory containing Start menu items. - \xC7"StartUp" -- File system directory that corresponds to the user's Startup program group. - \xC7"Templates" -- File system directory that serves as a common repository for document templates. - \xC7"Windows" -- The Windows directory is the directory where an application - \xC7should store initialization and help files. If the user is running a shared - \xC7version of Windows, the Windows directory is guaranteed to be private for - \xC7each user. - \xC7"System" -- Retrieves the path of the Windows system directory. - \xC7The system directory contains such files as Windows libraries, drivers, and font files + «specialfolder parameters + «"Desktop" + «Windows desktop - virtual folder at the root of the name space. + «"DesktopDirectory" + «File system directory used to physically store file objects on the desktop (not to be confused with the desktop folder itself). + «"Fonts" + «Virtual folder containing fonts. + «"NetHood" + «File system directory containing objects that appear in the network neighborhood. + «"Personal" + «File system directory that serves as a common respository for documents + «"Programs" + «File system directory that contains the user's program groups (which are also file system directories). + «"Recent" + «File system directory that contains the user's most recently used documents. + «"SendTo" + «File system directory that contains Send To menu items. + «"StartMenu" + «File system directory containing Start menu items. + «"StartUp" + «File system directory that corresponds to the user's Startup program group. + «"Templates" + «File system directory that serves as a common repository for document templates. + «"Windows" + «The Windows directory is the directory where an application should store initialization and help files. If the user is running a shared version of Windows, the Windows directory is guaranteed to be private for each user. + «"System" + «Retrieves the path of the Windows system directory. The system directory contains such files as Windows libraries, drivers, and font files + «"Program Files" + «Version 5.0. The Program Files folder. A typical path is C:\Program Files. + «"My Documents" + «Version 6.0. The virtual folder representing the My Documents desktop item. + «"My Music" + «The file system directory that serves as a common repository for music files. A typical path is C:\Documents and Settings\User\My Documents\My Music. + «"My Pictures" + «Version 5.0. The file system directory that serves as a common repository for image files. A typical path is C:\Documents and Settings\username\My Documents\My Pictures. + «"My Video" + «Version 6.0. The file system directory that serves as a common repository for video files. A typical path is C:\Documents and Settings\username\My Documents\My Videos. case string.lower (specialfolder) { "preferences" { return (file.getPrefsSubFolder (specialfolder))}; @@ -116,6 +138,6 @@ file.sureFolder (folder)}; return (true)}; errormessage = "Couldn't get the folder path because \"" + specialfolder + "\" is not a special folder name."; - return (scriptError (errormessage))}}}}}; -\xC7bundle // testing - \xC7window.msg (getSpecialFolderPath ("", "current user", false)) \ No newline at end of file + return (scriptError (errormessage))}}}}} +«bundle // testing + «window.msg (getSpecialFolderPath ("", "current user", false)) \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |