Packages

Mark Smith mark at maseurope.net
Sat Dec 8 23:19:05 CST 2007


As far as I can tell, a bundle (package) doesn't have a .DS_Store  
file at it's top level. This seems to apply to all  
the .bundle, .app, .rtfd, and .pages packages I've looked at so far.  
Empty folders seem to have no .DS_Store either.

function isPackage tFolder
   set the directory to tFolder
   put tFolder & "/.DS_Store" into tFile
   return (there is no file tFile) AND (the files is not empty)
end isPackage

which will still miss an empty package...


Best,

Mark




On 9 Dec 2007, at 03:50, Chipp Walters wrote:

> Good one Sarah, now how to create an
>
> isBundle() function without the answer file command?
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list