This model wraps access to key project files and folders. This model is based on a Project Naming Convention, which specifies the names of files and folders inside of a single toplevel Project Folder.
This toplevel project folder contains a Project Home Stack, a disk based Project Array, and a series of Standard Project Folders.
getprop project_Folder [pSubFolderPath] put the stack_Name of the target into stackName put project_GetFolder (stackName, pSubFolderPath) into projectFolder return projectFolder end project_Folder
Assumes the project home stack exists and is at the root of the project folder.
There are several ways of finding the project home stack:
put the name of stack projectName
Projects are designed to be as simple as possible. A single folder containing a project home stack, a Project Array, and a series of Standard Project Folders. These folders and files conform to the a simple naming convention.
function project_GetFolder stackName, pSubFolderPath
The first step is to fetch the project folder from the stored library array and return that if the folder exists:
put project_GetFolderFromArray (projectName, pSubFolderPath) into projectFolder
If it does not exist we then try to find the project folder based on the naming conventions by looking for a stack that has the same name as the project:
put project_SearchForProjectFolder (stackName) into projectFolder