Packages (was: copy large files in Rev on Mac)

Trevor DeVore lists at mangomultimedia.com
Sat Dec 8 12:58:43 CST 2007


On Dec 8, 2007, at 12:10 PM, Richard Gaskin wrote:

> Trevor DeVore wrote:
>> The Finder uses the following criteria to determine if something is  
>> a  package:
>> * The directory has a known   
>> extension: .app, .bundle, .framework, .plugin, .kext, and so on.
>> * The directory has its bundle bit set.
>> * The directory has a known structure type indicating it is a  
>> modern  or versioned bundle.
>
> How does one set a file's bundle bit in a post-ResEdit world?

I just did a quick Google search and could only find references to  
using a system API call.  If you were going to use an external you can  
use FSSetCatalogInfo and set the kHasBundle flag for the folder. I  
imagine someone could base an external off of the code in this posting:

<http://www.cocoabuilder.com/archive/message/cocoa/2007/11/27/194017>

PathFinder allows you to set the bit in the property dialog for the  
folder. Maybe someone can find an AppleScript or command line utility  
that can set the bit as well.

I just read something interesting that said even if you do register  
certain extensions as packages for your application it is still good  
to set the bundle bit. This causes the package to show up as a package  
on systems that don't have your application installed.

-- 
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com    -    www.screensteps.com





More information about the use-livecode mailing list