sonenbli@oxy.edu (Andrew D. Sonenblick) (07/10/90)
After years of programming the Mac, I have decided just tonight that it is a very wierd machine... I am coding an init that upon boot, checks a certain folder for specific file types. Those it finds, it copies their names into an array as well as creating a menu the items of which are the names of the files. This menu appears whenever an application has a standard menu bar, allowing the user to select the name of the file to execute some code stored in the file. Everything has come along smoothly up to a point... When an Item in my menu is selected I get the name from the menu (which is identical to the file name--fully check that out) and setvol to the folder the file resides in (fully checked that out too) and attemps to openresfile on the file. The funny thing is, this works (that is, the files gets opened and I can proceed) as long as I am running in any application other than the Finder, in which case I receive a file not found error. (The names I have checked are identical when called within different application contexts and the setvol is always accurate). Yet the "file not found." I will soon look into the fact that I am running multifinder--though I don't suspect it... Does anyone have any ideas whatsoever why this behaviour might be occuring? If you do, or even have a guess, please let me know. Ando Moon.