Re: Setting empty type/creator codes?

2004-02-01 Thread John Gruber
John Gruber <[EMAIL PROTECTED]> wrote on 1/31/04 at 3:24a: > If I do this: > > MacPerl::SetFileInfo('', '', $f); > > the type and creator are set to garbage values. I can't figure out a > way to do it using the developer tools' SetFile command, nor using > AppleScript. The problem is that wi

Setting empty type/creator codes?

2004-01-31 Thread John Gruber
MacPerl::SetFileInfo makes it easy to set normal type and creator codes: #!/usr/bin/perl use strict; use warnings; use MacPerl; foreach my $f (@ARGV) { MacPerl::SetFileInfo('R*ch', 'TEXT', $f); } But what if I want to *remove* type/creator codes, so as to let Laun

Re: Setting empty type/creator codes?

2004-01-31 Thread John Delacour
At 3:24 am -0500 31/1/04, John Gruber wrote: Also, does anyone know if '' is still the Apple-sanctioned OSType for "unknown"? Doing this: MacPerl::SetFileInfo('', '', $f); seems to produce the same results as setting the values to blanks. The new thing is << missing value >> and i

Setting empty type/creator codes?

2004-01-31 Thread John Gruber
MacPerl::SetFileInfo makes it easy to set normal type and creator codes: #!/usr/bin/perl use strict; use warnings; use MacPerl; foreach my $f (@ARGV) { MacPerl::SetFileInfo('R*ch', 'TEXT', $f); } But what if I want to *remove* type/creator codes, so as to let Laun