Re: apply catalog info
Re: apply catalog info
- Subject: Re: apply catalog info
- From: Bryan <email@hidden>
- Date: Sun, 12 Aug 2001 03:51:17 -0400
- Organization: Apex Radiology
What are you doing up this time of night Paul?
Sorry, about the 'with server attributes' stuff,
I'm running this on files on a remote NT server.
Odd isn't it?
Bryan
Paul Berkowitz wrote:
>
Very good that it needs 'with desktop comment', Bryan (no indication in
>
the Dictionary that it does, but it does). I get 'parameter error' for 'with
>
server attributes ' with every file that I've tried so far, however. What
>
sort of file did you try that on?
>
>
[Actually, you're saved by Akua's coercions from the redundancy:
>
>
> set fp to choose file
>
> set eirec to extended info for file fp with server attributes and desktop
>
> comment
>
>
You don't need 'file fp' : 'fp' is already an alias, not a string.
>
>
set eirec to extended info for fp with desktop
>
comment
>
>
will do the job.]
>
>
--
>
Paul Berkowitz
>
>
> From: Bryan <email@hidden>
>
> Organization: Apex Radiology
>
> Reply-To: email@hidden
>
> Date: Sun, 12 Aug 2001 02:30:50 -0400
>
> To: Applescript-Users <email@hidden>
>
> Subject: Re: apply catalog info
>
>
>
> This one works for me on OS 9.1 AS 1.5.5 G4 400 Akua Sweets 1.4.3
>
>
>
> set fp to choose file
>
> set eirec to extended info for file fp with server attributes and desktop
>
> comment
>
> set desktop comment of eirec to "another test
>
> another test"
>
> apply catalog info eirec to file fp
>
>
>
> Does anybody have a problem with this?
>
>
>
> Bryan Kaufman
>
>
>
> Paul Berkowitz wrote:
>
>
>
>> '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
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users