Re: <no subject> [Was Re: Akua Sweets and Writing long version resource?]
Re: <no subject> [Was Re: Akua Sweets and Writing long version resource?]
- Subject: Re: <no subject> [Was Re: Akua Sweets and Writing long version resource?]
- From: "Bob.Kalbaugh" <email@hidden>
- Date: Sat, 11 Aug 2001 13:33:36 -0500
on 8/11/01 12:12 PM, T.J. Mahaffey at email@hidden wrote:
>
Paul, thank you for your generous help...
(snip)
>
> Hi folks.
>
>
>
> I'm trying to use Akua Sweets osax to set the version of a file in it's info
>
> box, but I can't seem to figure out how to word it. My attempts all error
>
> out, but I know Akua has commands for this and I've looked them over in it's
>
> dictionary...
>
> Could someone shed some light? here's my latest attempt:
>
> set long version of Extended Info Rec of thisItem to ("this is a test" as
>
> text)
>
> Can someone show me what I'm doing wrong?
(snip)
T.J.,
I'm under the impression that you would like to set the long version string
for a file so that it shows up in the info window, (Version:) for the file.
I have tried every conceivable way to set or change the short and long
versions of files and not just with AKUA's additions, but with many others
and my experience has shown that this property is [r/o] and just cannot be
changed with simple commands.
Arguments anyone? Please. I'm sure there is something that I've missed.
The only way I've been able to set or change version information for files
is with the use of resEdit, or some other resource editor (Resourcerer? - I
have never used it)
There are many additions that will let you read and write resource files to
(files). AKUA is one of them and I believe also "Resource Utilities" and
"Tanaka's" to name a few.
A while back Jolly Roger provided for me a nice script that he wrote that
used the Resource Utilities addition to move resources between files. I
would provide it for you, but I'd have to first check the information that
was included with the script to see if he allows that sort of thing.
My current method uses Tananka's osax 2.0.1
First I create a resEdit source file containing a resource that I want to
read and write from. In this case "vers" ID's 1 and 2. I set the short and
long version string information there.
Next I use Tanaka's addition to read and write this information.
-- Example Script:
set mySourceFile to "HD:default.rsrc" -- file that I created with resEdit
set myDestFile to "HD:TestDoc" -- file that I want to mangle
set sourceCopyA to MT Read Resource mySourceFile of type "vers" ID 1
set sourceCopyB to MT Read Resource mySourceFile of type "vers" ID 2
MT Write Resource sourceCopyA to myDestFile of type "vers" ID 1
MT Write Resource sourceCopyB to myDestFile of type "vers" ID 2
-- end script
TestDoc should now show my information in the info window. BTW - only the
long version string info is displayed. vers ID 1's is displayed next to
Version: and vers ID 2's is displayed under the file name.
WORD OF CAUTION! These commands will overwrite any "vers" information that
may already exist in the file so...
Test on copies, Be Careful! and Good Luck!
bob.kalbaugh
References: | |
| ><no subject> (From: "T.J. Mahaffey" <email@hidden>) |