Re: Copying Resource Files ???
Re: Copying Resource Files ???
- Subject: Re: Copying Resource Files ???
- From: JollyRoger <email@hidden>
- Date: Sun, 17 Jun 2001 08:02:29 -0500
On 6/16/2001 7:04 PM, "Robert Kalbaugh" <email@hidden> wrote:
>
Greetings All,
>
>
I am curious as to the possiblity of copying recource data from a resEdit
>
file or script into another file using a script. For example:[read or copy]
>
resource ID # from file ["A" or "me"] and then [write or copy] that resource
>
to file "B". Or by some other means. Can something like this be done? I've
>
no experience with resources in scripts other than the ol' custom icon in
>
the dialog routine.
>
>
Currently, I use the manual method to do it. What I do is copy custom "PICT"
>
& "VERS" resource files to my QuarkXPress documents via resEdit, thus
>
tagging the documents I create. "Branding" so to speak. heh heh.
>
>
It sure would be nice if I could do it via drag and drop. I've found nothing
>
in my reference books about it, but surely there's a way, is there not?
>
>
Any MACgicians here with a few tricks up their sleeve and willing to share?
>
I'd be most appreciative.
Hi Bob,
I use Resource Utilities by Christopher E. Hyde
<
http://www.hylight.demon.co.uk/> for this sort of thing. I believe it
comes with Dialog Director; but I could be mistaken.
I wrote a production applet called "Drop Prepare" that copies various
resources from certain resource files into any script that I drop on the
applet.
The folder in which the applet resides contains another folder called
"Resource Files". All of my resource files are stored in the "Resource
Files" folder, and have the same file name as the file I drop with the added
extension ".rsrc". In other words, if I drop a file named "MyScript", I
generally have another file within the ".rsrc" folder named "MyScript.rsrc".
When I drop a file onto the applet, the applet automatically finds the
matching resource file and inserts the resources contained in the resource
file into the file I dropped. It also handles special resources like custom
icons. It works very well, and I have been using it for a couple years now.
I don't mind sharing it. You can download it here:
<
http://homepage.mac.com/jollyroger/>
JR