home *** CD-ROM | disk | FTP | other *** search
Text File | 2000-04-08 | 11.0 KB | 688 lines | [TEXT/R*ch] |
- This documentation is incomplete...
-
- For more info you may wish to refer to Inside Macintosh by Apple.
- Most routines in here roughtly mirror the calling conventions
- of the ones provided by Apple for the MacOS.
- =====================================
-
- (c) 2000 Peter Li, All Rights Reserved.
-
-
- Standard Lib Routines
- =====================
-
- NFLoadModuleConstants();
-
- Description: Loads constants used by InterfaceLib exported routines to make
- scripts more readable.
- Parameters: none
- Returns: null
-
- -----------------------------
-
- NFGetModuleVersion();
-
- Description: Returns the version of the current set of exported routines by
- NetFinder.
- Parameters: none
- Returns: null
-
-
-
- MacOS Routines
- ==============
- For more info on these routines see Inside Macintosh references by Apple.
- These routines are very similary.
- ==============
-
- SysBeep([int inNumBeeps]);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- [struct like StandardFileReply] = StandardPutFile([string inPrompt][,string inDefaultName]);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- [struct like StandardFileReply] = StandardGetFile([array [string inOSType]{0,4}]);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FindFolder(int inVRefNum, int inFolderType, int inCreateFolder,
- int* outVRefNum, int* outDirID);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSMakeFSSpec(int inVRefNum, int inParID, string inName, struct outSpec);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FlushVol(string inName, int inVRefNum);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSClose(int inRefNum);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSRead(int inRefNum, int* ioLen, string* outStr);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSWrite(int inRefNum, int* ioLen, string inStr);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = GetEOF(int inRefNum, int* outEOF);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = SetEOF(int inRefNum, int inEOF);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = GetFPos(int inRefNum, int* outFilePos);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = SetFPos(int inRefNum, int inPosMode, int inPosOff);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpOpenDF(struct inSpec, int inPerm, int* outRefNum);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpOpenRF(struct inSpec, int inPerm, int* outRefNum);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpCreate(struct inSpec, string inCreator, string inType [, int inScriptCode]);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpDirCreate(struct inSpec, int inScriptCode, int* outDirNum);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpDelete(struct inSpec);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpSetFLock(struct inSpec);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpRstFLock(struct inSpec);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpRename(struct inSpec, string inNewName);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpCatMove(struct inFromSpec, struct inToSpec);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpExchangeFiles(struct inSpecOne, struct inSpecTwo);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
-
-
-
- MoreFiles Routines
- ==================
- These are not standard MacOS routines, they are provided by Apple DTS
- (Developer Tech Support). These are also available from Apple.
- ==================
-
- int = FSpGetFullPath(struct inSpec, string* outFullPath);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpDTXGetAPPL(string inVolName, int inVRefNum, string inCreator,
- int inSearchCat, struct* outSpec);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpDTSetComment(struct inSpec, string inComments);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpDTGetComment(struct inSpec, string* outComments);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpDTCopyComment(struct inSpecFrom, struct inSpecTo);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpGetDirectoryID(struct inSpec, int* outDirID, int* outIsDir);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpGetFileSize(struct inSpec, int* outDataSize, int* outRsrcSize);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpBumpDate(struct inSpec);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpChangeCreatorType(struct inSpec, string inCreator, string inType);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpSetIsInvisible(struct inSpec);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpClearIsInvisible(struct inSpec);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpSetNameLocked(struct inSpec);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpClearNameLocked(struct inSpec);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpSetIsStationery(struct inSpec);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpClearIsStationery(struct inSpec);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpSetHasCustomIcon(struct inSpec);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpClearHasCustomIcon(struct inSpec);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = FSpClearHasBeenInited(struct inSpec);
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
-
-
-
-
-
-
-
- ============
- Available Constants (after constant are loaded)
- ============
-
- /* Script.h */
- /* ScriptCode */
- VALOF(smSystemScript),
- VALOF(smCurrentScript),
- VALOF(smAllScripts),
-
- /* File.h */
- VALOF(fsCurPerm),
- VALOF(fsRdPerm),
- VALOF(fsWrPerm),
- VALOF(fsRdWrPerm),
- VALOF(fsRdWrShPerm),
-
- VALOF(ioDirMask),
-
- VALOF(fsRtParID),
- VALOF(fsRtDirID),
-
- VALOF(fsAtMark),
- VALOF(fsFromStart),
- VALOF(fsFromLEOF),
- VALOF(fsFromMark),
-
- /* Finder.h */
- VALOF(kIsOnDesk),
- VALOF(kIsShared),
- VALOF(kHasNoINITs),
- VALOF(kHasBeenInited),
- VALOF(kHasCustomIcon),
- VALOF(kIsStationery),
- VALOF(kNameLocked),
- VALOF(kHasBundle),
- VALOF(kIsInvisible),
- VALOF(kIsAlias),
-
- /* Folders.h */
- VALOF(kOnSystemDisk),
-
- VALOF(kCreateFolder),
- VALOF(kDontCreateFolder),
-
- /* Folder Types */
- /* "original" */
- VALOF(kSystemFolderType),
- VALOF(kDesktopFolderType),
- VALOF(kTrashFolderType),
- VALOF(kWhereToEmptyTrashFolderType),
- VALOF(kPrintMonitorDocsFolderType),
- VALOF(kStartupFolderType),
- VALOF(kShutdownFolderType),
- VALOF(kAppleMenuFolderType),
- VALOF(kControlPanelFolderType),
- VALOF(kExtensionFolderType),
- VALOF(kFontsFolderType),
- VALOF(kPreferencesFolderType),
- VALOF(kTemporaryFolderType),
- /* "new" */
- VALOF(kExtensionDisabledFolderType),
- VALOF(kControlPanelDisabledFolderType),
- VALOF(kSystemExtensionDisabledFolderType),
- VALOF(kStartupItemsDisabledFolderType),
- VALOF(kShutdownItemsDisabledFolderType),
- VALOF(kApplicationsFolderType),
- VALOF(kDocumentsFolderType),
-
- VALOF(kVolumeRootFolderType),
- VALOF(kChewableItemsFolderType),
- VALOF(kApplicationSupportFolderType),
- VALOF(kTextEncodingsFolderType),
- VALOF(kStationeryFolderType),
- VALOF(kOpenDocFolderType),
- VALOF(kOpenDocShellPlugInsFolderType),
- VALOF(kEditorsFolderType),
- VALOF(kOpenDocEditorsFolderType),
- VALOF(kOpenDocLibrariesFolderType),
- VALOF(kGenEditorsFolderType),
- VALOF(kHelpFolderType),
- VALOF(kInternetPlugInFolderType),
- VALOF(kModemScriptsFolderType),
- VALOF(kPrinterDescriptionFolderType),
- VALOF(kPrinterDriverFolderType),
- VALOF(kScriptingAdditionsFolderType),
- VALOF(kSharedLibrariesFolderType),
- VALOF(kVoicesFolderType),
- VALOF(kControlStripModulesFolderType),
- VALOF(kAssistantsFolderType),
- VALOF(kUtilitiesFolderType),
- VALOF(kAppleExtrasFolderType),
- VALOF(kContextualMenuItemsFolderType),
- VALOF(kMacOSReadMesFolderType),
- VALOF(kALMModulesFolderType),
- VALOF(kALMPreferencesFolderType),
- VALOF(kALMLocationsFolderType),
- VALOF(kColorSyncProfilesFolderType),
- VALOF(kThemesFolderType),
- VALOF(kFavoritesFolderType),
- VALOF(kInternetFolderType),
- VALOF(kAppearanceFolderType),
- VALOF(kSoundSetsFolderType),
- VALOF(kDesktopPicturesFolderType),
- VALOF(kInternetSearchSitesFolderType),
- VALOF(kFindSupportFolderType),
- VALOF(kFindByContentFolderType),
- VALOF(kInstallerLogsFolderType),
- VALOF(kScriptsFolderType),
- VALOF(kFolderActionsFolderType),
- VALOF(kLauncherItemsFolderType),
- VALOF(kRecentApplicationsFolderType),
- VALOF(kRecentDocumentsFolderType),
- VALOF(kRecentServersFolderType),
- VALOF(kSpeakableItemsFolderType),
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- int = ();
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = ();
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = ();
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = ();
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = ();
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = ();
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-
- int = ();
-
- Description:
-
- Parameters: none
-
- Returns: null
-
- -----------------------------
-