ok, I need to create an FSSpec in order to save a file with the Quicktime function:
Movie FlattenMovieData (
Movie theMovie,
long movieFlattenFlags,
const FSSpec *theFile,
OSType creator,
ScriptCode scriptTag,
long createMovieFileFlags);
Can anyone tell me how to create such a structure (and initialize it with actual data)?
thanks
[edit:]
little update:
I have actually managed now to get myself an FSSpec and to save an actual file, using this function from QTText, a sample app from Apple:
myErr = NavPutFile(NULL, &myReply, &myDialogOptions, myEventUPP, MovieFileType, 'TVOD', NULL);
to get a NavReplyRecord of myReply, and then
myErr = AEGetNthPtr(&(myReply.selection), 1, typeFSS, &myKeyword, &myActualType, theFSSpecPtr, sizeof(FSSpec), &myActualSize);
this gets me a valid FSSpec by passing an empty FSSpec pointed to by theFSSpecPtr. I could just work with this, except that the user has to go through a Carbon save dialog for each file to be saved. Isn't it possible to create an FSSpec from just a path?