[futurebasic] Set filetype, creatortype

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2004 : Group Archive : Group : All Groups

From: michael evans <michael.evans@...>
Date: Thu, 06 May 2004 10:10:22 -0400
Hello all

In subs files.incl there is a function:

LOCAL
DIM ioErr%
dim dirsave&
dim tempPB;128
LOCAL FN FBSetFileType(pb&,FType&,CType&)
tempPB;128 = pb&
tempPB.ioFVersNum`  = 0
tempPB.ioFDirIndex% = 0
dirsave&            = tempPB.ioDirID&'Date { 12/28/01 }
ioErr = FN PBHGetFInfoSync(@tempPB)
LONG IF ioErr = _noErr
tempPB.ioDirID&    = dirsave&'Date { 12/28/01 }
tempPB.ioFVersNum` = 0
tempPB.ioFDirIndex%= 0
tempPB.ioFlUsrWds.fdCreator&= CType&
tempPB.ioFlUsrWds.fdType&   = FType&
ioErr = FN PBHSetFInfoSync(@tempPB)
END IF
END FN = ioErr%


If I want to set a file to be a photoshop jpeg file then
FType& = _"JPEG" and CType& = _"8BIM"

What I can't figure out is how to get a file's pb& in osx to pass to the fn
above...

Any help would be appreciated...


Cheers,

----------------------------------------------------------------------------
Michael Evans
----------------------------------------------------------------------------