Re: apply catalog info
Re: apply catalog info
- Subject: Re: apply catalog info
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 11 Aug 2001 08:44:22 -0700
'short version' and 'long version' are both bad examples for you to be
trying to apply catalog info as a test, and I shouldn't have tried to abet
you!
Look at the Akua Dictionary for 'Class Extended Info Rec', which explains
what you'll find there:
short version string [r/o] -- the version string for the file (from the
Finder9s Get Info9 box)
long version string [r/o] -- the long version string for the file (from
the Finder9s Get Info9 box)
See the [r/o] for both of them? That means "read-only". You can't write
them. The versions are what they are - you can't pretend they're something
else. So 'apply catalog info' won't work for them. Try your test with
'desktop comment' and it should work. Other things to be aare of:
this_item
must be an alias or file:
file "Macintosh Hard Disk:Desktop Folder:Some File"
and don't do this in a Finder tell block.
--
Paul Berkowitz
>
From: "T.J. Mahaffey" <email@hidden>
>
Date: Sat, 11 Aug 2001 10:12:28 -0700
>
To: <email@hidden>
>
Subject: <no subject>
>
>
Paul, thank you for your generous help. But I don't think I'm getting it
>
right... Here's how I've got it set up and it's not panning out. The error
>
essentially returns "can't set.... to 'this is a test'" and lists every
>
property within the file's info box. So it seems to be trying to set my test
>
string as EVERYTHING in the info box, not just the version field. Can you
>
show me what I'm doing wrong? Here's my excerpt:
>
>
set extInfo to extended info for thisItem
>
set short version of extInfo to "this is a test"
>
apply catalog info extInfo to thisItem
>
>
T.J. Mahaffey
>
email@hidden
>
>
>
> 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?
>
>
>
>
Don't use the "class" extended info rec: you can't do anything with that.
>
Instead set a variable to the command 'extended info for':
>
>
set extInfo to extended info for thisItem -- an alias or file
>
>
Then use the 'apply catalog info' to actually change the properties of the
>
file:
>
>
set long version of extInfo to "this is a test"
>
apply catalog info extInfo to thisItem
References: | |
| ><no subject> (From: "T.J. Mahaffey" <email@hidden>) |