On Jun 9, 2012, at 6:54 AM, Spencer Ted wrote: > open "O", _openBatchFileNum, gBatchFile, @gParentFolderRef btw: There are advantages to CFURLRefs instead of FSRefs and many have switched. One advantage( at least one pertinent to your code ): a CFURLRef ( like a full path ) can reference a file that does NOT exist. FSRefs cannot do this and require the little two-step to create a file. This might be part of the problem ( because you’re juggling two globals ---gParentFolderRef and gFileRef--- one of which could could contain the actual file reference or the reference to the parent directory ). Brian S.