and creator types are four-bytes long; the file type for
PDF is PDF , with a trailing space, not PDF. So try changing the
above line to:
MacPerl::SetFileInfo('CARO', 'PDF ', $path);
and I think you'll be set.
Hope this helps,
--
John Gruber | Daring Fireball
[EMAIL PROTECTED
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 with all
, 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.
--
John Gruber | Daring Fireball
[EMAIL PROTECTED]|http
, 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.
--
John Gruber | Daring Fireball
[EMAIL PROTECTED]|http
Lewthwaite, all I needed to do was follow these instructions:
http://duke.usask.ca/~dalglb/macosx/Perl_5.6.html
*and* add -Dcc=gcc2 to the Configure switches:
sudo sh Configure -des -Dfirstmakefile=GNUmakefile \
-Dldflags=-flat_namespace -Dcc=gcc2
Hope this helps.
--
John Gruber
applescripts, such as
those embedded in Perl scripts, I'm not sure what to suggest, other
than not including version info in application file names. :^)
--
John Gruber | Daring Fireball: Mac Punditry and Curmudgeonry
[EMAIL PROTECTED] |http://daringfireball.net
and 8.
--
John Gruber
[EMAIL PROTECTED]
with any shell
scripting language.
Hope this helps,
--
John Gruber
[EMAIL PROTECTED]
[EMAIL PROTECTED] wrote on 1/23/02 at 1:19a:
Please, pretty please, carbonize MacPerl.
Just curious: Why?
--
John Gruber
[EMAIL PROTECTED]
will be parsed as
part of that comment.
--
John Gruber
[EMAIL PROTECTED]
to editor wars.
:-)
--
John Gruber
[EMAIL PROTECTED]
Mac OS X 11, but instead Mac OS XI, or (preferably) Mac OS 11?
--
John Gruber
[EMAIL PROTECTED]
is ever going to change (nor should
it); Unix tools expect Unix line endings. And the high level stuff
needs to remain compatible with Mac OS 9, at least for next few
years, and that means Mac line breaks.
--
John Gruber
[EMAIL PROTECTED]
http://www.apple.com/applescript/macosx/script_menu/
It's a system-wide script menu for 10.1 that runs AppleScript, Perl,
and Shell scripts.
Hmm...
--
John Gruber [EMAIL PROTECTED]
Bare Bones Software http://www.barebones.com
14 matches
Mail list logo