Packages

Mark Smith mark at maseurope.net
Sun Dec 9 10:29:09 EST 2007


It's definitely a pain for Rev programmers until a general and  
reliable isPackage() function or somesuch is available.

I don't think any of the things discussed so far will give a  
definitive answer as to the packageness of a folder.

Checking .suffixes will work, but the list of suffixes probably can't  
be exhaustive, the absence of a .DS_Store is not reliable (a package  
that has been a regular folder may well have one, a regular folder  
may not have one), and the presence of /Contents/PkgInfo or /Contents/ 
Info.plist is also not guaranteed ( though the only packages I've  
seen so far without a pkgInfo or info.plist are .rtfd and .band ).


Definitely a pain.

Perhaps this should be an enhancement request in the qa centre?

Best,

Mark

On 9 Dec 2007, at 13:59, Chipp Walters wrote:

> I suppose this whole thing started when I commented "what a pain" when
> Klaus announced the existence of more than just app bundles. Others
> responded by pointing out the benefits of bundle/packages, and my
> answer was 'it's still a pain for us programmers.'
>
> Appears I'm not too far off base ;-)




More information about the use-livecode mailing list