If you don't understand Mac file structures, please go on to the next topic.
From the very beginning in 1984, long before digital cameras, until the advent of OS X, Macs never had file extensions. On the other hand, The first 4 bytes of a file were a creator code, and the next 4 were the file type. When OS X and the UNIX kernel came along, then the MacOS got away from the creator/type codes. Suddenly, leave it to Micro$soft, they are important again. Here's a line from an Excel macro I'm trying to write:
strDir = Dir("iMacHD:Library:WebServer:Documents:DispatchReports:DispatchReportsFolder:", MacID("TEXT"))
This will only select the files in the particular directory that have the type code--you guessed it--"TEXT". The problem I am facing is that PHP doesn't assign type/creator codes, so in the file's properties, both codes are '????'. I am using PHP to generate .csv files, and I need to set the type code to "TEXT" (or anything else for that matter) for import into excel. Is there a way to do this?
I'm not going to get a duck on this one.