Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Perl on OSX > Re: How to tell...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 978 of 1076
Post > Topic >>

Re: How to tell the difference between a nested folder structure and a Mac OS package?

by jonasbn@[EMAIL PROTECTED] (Jonasbn) Aug 12, 2007 at 09:47 AM

Hello Peter,

I would guess something like: MacOSX::File would be able to do the  
job (http://search.cpan.org/~dankogai/MacOSX-File-0.71/File.pm)

But I have not been able to get it to differentiate between  
directories and bundles, but then again neither does the standard:

/Developer/Tools/GetFileInfo

You can have a look at my program to generate aliases for OSX  
applications:

http://cph.pm.org/svn/trunk/scripts/macaliaser.pl

jonasbn
--
AIM: BjonasN      Gtalk: jonasbn@[EMAIL PROTECTED]
 62401545   MSN: jonasbn@[EMAIL PROTECTED]
 11/08/2007, at 11.49, Peter J. Hartmann wrote:

> Hi,
>
> I'd like to be able to tell the difference between a nested folder  
> structure and a Mac OS package from a Perl script?
> If a directory item is a (nested) folder, I want to recursively  
> scan its contents, if it is a package, I'd like to leave it alone.
>
> Thanks for any pointers into the right direction!
>
> Peter
>
> ___ Peter Hartmann ________
>
> mailto:hphartmann@[EMAIL PROTECTED]
>
>
 




 3 Posts in Topic:
newbie: install Bundle::CPAN failing
admin2@[EMAIL PROTECTED]   2007-08-10 12:58:47 
How to tell the difference between a nested folder structure and
hphartmann@[EMAIL PROTECT  2007-08-11 11:49:29 
Re: How to tell the difference between a nested folder structure
jonasbn@[EMAIL PROTECTED]  2007-08-12 09:47:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 0:16:18 CST 2008.