Re: Akua Sweets and Writing long version resource?
Re: Akua Sweets and Writing long version resource?
- Subject: Re: Akua Sweets and Writing long version resource?
- From: Bryan <email@hidden>
- Date: Mon, 13 Aug 2001 05:04:49 -0400
- Organization: Apex Radiology
Two ways via OSAXen AFAIK:
Tanaka's OSAX 2.0
MT Store in Resource : Store object(data) in resource
MT Store in Resource anything -- Object (data)
to file specification -- Target File
ID small integer -- ID of resource
[name string] -- name for new resource
Weedhopper Commands : Commands to read and write resources, plus other good
stuff.
Copyright Weedhopper Press, 1998-9.
newResFile : creates a file with a resource fork
newResFile string -- name for the file
[creator type string] -- file's creator; default '????'
[file type string] -- file's type; default 'pref'
in folder file specification -- location for the file
Result : file specification -- the file newly created
Bryan Kaufman
Ehsan Saffari wrote:
>
On 10/08/2001 17:27, "T.J. Mahaffey" <email@hidden> wrote:
>
>
>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...
>
>
leaving akua out of the equation for a minute, isn't the problem the fact
>
that your file most probably doesn't have a resource fork to begin with?
>
I've been playing with programmer's tool and a resource osax for a bit; I
>
can add a "vers" resource to a file pretty easy, if the file already has
>
a resource fork (doesn't matter if it's empty). But if the file has no
>
resource fork, I have found no method of adding a resource fork to it
>
with AS. The only method is to open the file in resedit, which asks me to
>
add a resfork, then I say yes, close file, and I can add a vers resource.
>
>
So the question: How does one add a resource fork to a file by AS?
>
>
cheers
>
ehsan
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users