writing an OS X package from a custom property

Ken Ray kray at sonsothunder.com
Wed Aug 25 21:37:33 EDT 2004


On 8/25/04 8:22 PM, "Scott Morrow" <scott at elementarysoftware.com> wrote:

> What I would like to do is store an OS X package (osax scripting
> addition) as a custom property in my application so that I can install
> it later onto the user's machine if they require it.  In order to load
> the package I've tried the usual:
> 
> on mouseUp
>    answer file "Select a file:"
>    if it is empty then exit to top
>    put it into tFile
>    put URL("binfile:"&tFile) into tData
>    put compress(tData) into tData
>    set the uOSAX of stack "tester" to tData
> end mouseUp
> 
> the result of trying to read the package is: < error reading file >

Did you try storing the OSAX as a custom property but not compressed? I seem
to remember some issues with compression and custom properties...

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list