Re: Copying Resource Files ???
Re: Copying Resource Files ???
- Subject: Re: Copying Resource Files ???
- From: "Bob.Kalbaugh" <email@hidden>
- Date: Sun, 17 Jun 2001 12:01:14 -0500
on 6/17/01 8:02 AM, JollyRoger at email@hidden wrote:
>
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...<snip>
>
>
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.
You are not mistaken. I have Dialog Director v0.7 but haven't really
explored it (I'm still trying to fully grasp Applescript.) The Resource
Utilities are included with it. On further inspection, this seems exactly
what I need, so I've got some serious brain banging to do. Me head hurts
already, but I'm excited!
>
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
This is mighty kind of ya, mate. I've d/l it and give it whirl but alas, an
error occured. Reported that "Test File" doesn't understand the <<aKurIcos>>
message. I've got the rescource utilities and dialog director osax(en?)
loaded... hold on a minute, I need to check something!
I've just tried somethin'. It seems that, only last night, I removed some
additions based on an article I read dealing with AS in OS 8.5.1, at:
http://www.AppleScriptSourceBook.com/applescript/applescript134.html
Here is a short excerpt:
" Many formerly separate scripting additions have been consolidated into a
single Standard Additions scripting addition, which also now includes new
commands. The old separate scripting additions have the same interface and
functionality in the new location (except for the addition of the new
timeout parameter to 'display dialog'). The following formerly separate
scripting additions have been incorporated into Standard Additions and
should be removed from your Scripting Additions folder if present: AGStart,
Beep, Choose Application, Choose File, Current Date, Display Dialog, File
Commands, Load Script, Numerics, String Commands, Read/Write Commands, Run
Script, Store Script and Time To GMT."
I had some of the listed additions still floating around. This is what I
removed: (Current Date, Display Dialog, File Commands, Load Script,
Numerics, Time to GMT)
Seems I inadvertently removed the "File Commands" osax!!!
After restoring it, your script worked like a charm! I'll certainly make
good use of it.
In closing I'd like to thank you, Mr. JollyRoger, for your help and sharing,
not only with my question but to all of the ones in which you respond. Your
answers offer great knowledge and information and I've learnt a gread deal
from them. A fine example of just how amazing this board is. And thanks also
to Mr. Cheeseman for his wonderful web site!
And finally, I apologize for the "long wind", but might add 'It makes ye
ship sail further...and this poor vessel (me) needs 'all the 'elp he can
git!'" Therefore I welcome any long-winded replies.
cheers,
Bob.Kalbaugh