Writing to the resource fork
joef1 at mac.com
Fri May 28 21:58:56 CDT 2010
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":
-- 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"
Maybe they're not "real" resources; only some kind of special "rev" resources?
On May 28, 2010, at 6:37 PM, Mark Schonewille wrote:
> Thanks, Joe. Have you checked, with a resource editor, that the resource was actually written to the file? Although your modified syntax might also work on my machine, it still won't work for all the other resource types :-(
> Best regards,
> Mark Schonewille
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> Economy-x-Talk is always looking for new projects. Contact me for a quote http://economy-x-talk.com/contact.html
> 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 00:24, Joe F. wrote:
>> Your example worked for me on OS X 10.6.3 when I made these changes.
>> put empty into URL "binfile:~/desktop/resource test.dat"
>> get setResource("~/desktop/resource test.dat","TEXT",999,"Test","U","Hello World")
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode