From: Jim I. <ji...@ap...> - 2002-03-11 18:52:50
|
Note that type & creator bits are metadata stored with the file, so you won't be able to do this on a read-only CD... There are commands to modify creator & filetype in Classic MacTk, but I haven't ported them over to Aqua yet. Probably not too hard, but I haven't needed it yet, so I haven't ported it. But in general, the non-GUI parts of MacTcl is just straightforward Unix. For this sort of simple thing, find is easy enough... For example, one easy way to do this is: find /Volumes/StartPoint -name \*.gif | xargs /Developer/Tools/SetFile -t 'xxxx' -c 'xxxx' SetFile comes on the DeveloperTool CD. Jim > > Hello. > > I have a major annoyance in that I have a CD of HTMLs and GIFs, which have > generic TYPE/CREATORS. > I would like to change this to TYPE/CREATOR of my choosing, so I want to > create a tool that will walk > through all of the directories. > > I'm so new to the Mac scripting, so I was wondering if someone could tell me > how can I change the > type/creator and walk through the folders. Do the folders look like UNIX > directories in MacTCL? > Are there symbolic . and ..? > > thanx, > Joaquin > > _______________________________________________ > Tcl-mac mailing list > Tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac > -- ++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++= Jim Ingham ji...@ap... Developer Tools - gdb |