Re: Get/set file type/creator in plain Perl?

2005-08-04 Thread Iyanaga Nobumi
Hello Sherm and others, Thank you for all these instructions. I learned a lot of things. Best regards, Nobumi Iyanaga Tokyo, Japan On Aug 4, 2005, at 4:36 AM, Sherm Pendley wrote: On Aug 3, 2005, at 2:41 PM, Lola Lee wrote: [snip] It's an option you pass to "make install" - i.e. "make ins

Re: Get/set file type/creator in plain Perl?

2005-08-03 Thread Chris Nandor
The best thing to do for FInfo is *not* to dereference is, but to call the supplied methods. `man Mac::Files` and look for FInfo, and see: FInfo Information for a file, including: OSType fdTypethe type of the file OSType fdCreat

Re: Get/set file type/creator in plain Perl?

2005-08-03 Thread Sherm Pendley
On Aug 3, 2005, at 2:41 PM, Lola Lee wrote: Sherm Pendley wrote: The easiest thing to do is to let CPAN handle it. It asks when you configure it, if you want to use the UNINST option when installing modules. That's what that option does - it automagically removes older Now that's rea

Re: Get/set file type/creator in plain Perl?

2005-08-03 Thread Lola Lee
Sherm Pendley wrote: The easiest thing to do is to let CPAN handle it. It asks when you configure it, if you want to use the UNINST option when installing modules. That's what that option does - it automagically removes older Now that's really handy to know . . . I'd wondered if there was

Re: Get/set file type/creator in plain Perl?

2005-08-03 Thread Sherm Pendley
On Aug 3, 2005, at 2:08 PM, Ken Williams wrote: On Aug 3, 2005, at 10:22 AM, Sherm Pendley wrote: No conflict. @INC is searched in order, and the first one found is used. /Library/Perl appears before /System/Library/Perl in @INC for precisely this reason Unfortunately that's not true, un

Re: Get/set file type/creator in plain Perl?

2005-08-03 Thread Ken Williams
On Aug 3, 2005, at 10:22 AM, Sherm Pendley wrote: On Aug 3, 2005, at 10:35 AM, Iyanaga Nobumi wrote: But now I have it twice, once in /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level/, and the other in /Library/Perl/5.8.6/darwin-thread-multi-2level. Does this make some conflict

Re: Get/set file type/creator in plain Perl?

2005-08-03 Thread Sherm Pendley
On Aug 3, 2005, at 10:35 AM, Iyanaga Nobumi wrote: But now I have it twice, once in /System/Library/Perl/Extras/5.8.6/ darwin-thread-multi-2level/, and the other in /Library/Perl/5.8.6/ darwin-thread-multi-2level. Does this make some conflict? No conflict. @INC is searched in order, and the

Re: Get/set file type/creator in plain Perl?

2005-08-03 Thread Lola Lee
Iyanaga Nobumi wrote: and the other in /Library/Perl/5.8.6/ darwin-thread-multi-2level. Does this make some conflict? Should I delete one of them -- and if so, how would I be able to do that? Delete this one. This one should be under your user directory. The other one is part of the sys

Re: Get/set file type/creator in plain Perl?

2005-08-03 Thread Iyanaga Nobumi
Hello John, On Aug 3, 2005, at 6:02 PM, John Delacour wrote: At 12:28 pm +0900 3/8/05, Iyanaga Nobumi wrote: I tried also: use Mac::Carbon qw(:files); print FSpGetFInfo "/Users/[me]/Desktop/my_file"; but I got "FInfo=SCALAR(0x1801434)", what I could not understand or use... That is b

Re: Get/set file type/creator in plain Perl?

2005-08-03 Thread Iyanaga Nobumi
Hello Sherm, Thank you for your reply. On Aug 3, 2005, at 10:27 PM, Sherm Pendley wrote: Finding a file whose name you know is easy - just use the "locate" tool at a shell prompt: Sherm-Pendleys-Computer:~ sherm$ locate Carbon.pm /System/Library/Perl/Extras/5.8.6/darwin-thread-multi

Re: Get/set file type/creator in plain Perl?

2005-08-03 Thread Sherm Pendley
On Aug 3, 2005, at 2:12 AM, Iyanaga Nobumi wrote: On Aug 3, 2005, at 1:02 PM, Sherm Pendley wrote: You said you're using Tiger. Why not simply use the copy of Mac::Carbon that's already pre-installed with the OS? Well, I couldn't find it on my pre-installed system... Are you sure that it

Re: Get/set file type/creator in plain Perl?

2005-08-03 Thread John Delacour
At 12:28 pm +0900 3/8/05, Iyanaga Nobumi wrote: I tried also: use Mac::Carbon qw(:files); print FSpGetFInfo "/Users/[me]/Desktop/my_file"; but I got "FInfo=SCALAR(0x1801434)", what I could not understand or use... That is because the result is a reference. You need to dereference it like t

Re: Get/set file type/creator in plain Perl?

2005-08-02 Thread Iyanaga Nobumi
Hello Sherm, On Aug 3, 2005, at 1:02 PM, Sherm Pendley wrote: On Aug 2, 2005, at 11:28 PM, Iyanaga Nobumi wrote: 1. Is it legal to include the module MacPerl in my application? (I would add the credit in my ReadMe) You said you're using Tiger. Why not simply use the copy of Mac::Carb

Re: Get/set file type/creator in plain Perl?

2005-08-02 Thread Sherm Pendley
On Aug 2, 2005, at 11:28 PM, Iyanaga Nobumi wrote: 1. Is it legal to include the module MacPerl in my application? (I would add the credit in my ReadMe) You said you're using Tiger. Why not simply use the copy of Mac::Carbon that's already pre-installed with the OS? sherm-- Cocoa progra

Re: Get/set file type/creator in plain Perl?

2005-08-02 Thread Iyanaga Nobumi
Hello Edward, On Aug 2, 2005, at 4:47 PM, [EMAIL PROTECTED] wrote: On Aug 1, 2005, at 11:32 PM, Iyanaga Nobumi wrote: Hello, Is it possible to get and/or set the file type and/or creator in plain Perl, on OS 10.4.x, without using /Developer/Tools/ GetFileInfo or /Developer/Tools/SetFile?

Re: Get/set file type/creator in plain Perl?

2005-08-02 Thread emoy
On Aug 1, 2005, at 11:32 PM, Iyanaga Nobumi wrote: Hello, Is it possible to get and/or set the file type and/or creator in plain Perl, on OS 10.4.x, without using /Developer/Tools/ GetFileInfo or /Developer/Tools/SetFile? Thank you in advance for any idea. Best regards, Nobumi Iyanaga To

Get/set file type/creator in plain Perl?

2005-08-01 Thread Iyanaga Nobumi
Hello, Is it possible to get and/or set the file type and/or creator in plain Perl, on OS 10.4.x, without using /Developer/Tools/GetFileInfo or /Developer/Tools/SetFile? Thank you in advance for any idea. Best regards, Nobumi Iyanaga Tokyo, Japan