Extra data in resource or attached file?
Extra data in resource or attached file?
- Subject: Extra data in resource or attached file?
- From: "Philippe GRUCHET" <email@hidden>
- Date: Tue, 24 Sep 2002 02:37:21 +0100
Greetings!
I need to post an applet with some extra data (text data).
This applet will run over MacOS Classic and X systems.
Do you advice to put these data in resource inside the same applet {1}, or
to link this applet to an attached file {2} ?
{1} Example:
path to me as text
set myData to alias result
load resource 128 type "DATA" from myData as string
-- the last line uses the "Satimage" osax, written by Emmanuel Levy,
-- and works over the two systems.
Or:
path to me as text
set myData to alias result
res get myData type "DATA" id 128 as string
-- the last line uses the "Resource Utilities" osax,
-- part of "Dialog Director" written by Christopher E. Hyde,
-- but works on Mac OS Classic only!
{2} Example:
set myData to alias {":theAttachedFile"}
--> returns the full pathname
--
For the solution {1}, I have always to provide an osax, but which one?
Moreover, I just need a 'get resource' or 'load resource' command.
Nothing else.
About the solution {2}, does it slowdown the app (in general) ?
--
In other words, what is the best: putting data in resource or as an attached
file?
Thanks to give me a hand!
Kind regards,
Philippe
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.