Writing to the resource fork
m.schonewille at economy-x-talk.com
Sat May 29 03:53:20 EDT 2010
As I explained in my original e-mail, your example creates the
resources, but doesn't write the actual data.
Economy-x-Talk Consulting and Software Engineering
Economy-x-Talk is always looking for new projects. Contact me for a
Download Clipboard Link http://clipboardlink.economy-x-talk.com and
share the clipboard of your computer over the local network.
On 29 mei 2010, at 04:58, Joe F. wrote:
> I don't know about all that. I just moved to snow leopard so I don't
> even know if I have a hex editor available.
> If I open the file it looks empty; but I wouldn't know about
> resource fork reading on OS X, they all look like flat files to me.
> Here's the script I used in a button that creates the file with 2
> resources,then retrieves them to a field named "Notes":
> on mouseUp
> -- Create file first
> put empty into URL "binfile:~/desktop/resource test.dat"
> get setResource("~/desktop/resource test.dat","TEXT",
> 999,"Test","U","Hello World")
> get setResource("~/desktop/resource test.dat","MARK",
> 999,"Test","U","Hello World2")
> put getResources("~/desktop/resource test.dat") into fld "Notes"
> end mouseUp
> Maybe they're not "real" resources; only some kind of special "rev"
More information about the Use-livecode