reloadStack <stackName>, <fileName>
on reloadStack theStack,thePath -- bring reloaded window to front -- if you're trying to open the same file (for example, double- -- clicking the file), bring the already-open stack to the front: if the effective filename of stack theStack is thePath then go stack theStack else beep -- trying to open a same-named stack in different file end reloadStack
Handle the reloadStack message when you want to prevent a stack from being reopened, or moderate conflicts between the names of [[main stack|main stacks]], or prevent two main stacks with the same name from being open at one time.
- stackName: The short name that belongs to the two conflicting main stacks.
- fileName: The full path to the file that is opening--the file that contains thesecond main stack with the same name.