Re: Script Application Versions
Re: Script Application Versions
- Subject: Re: Script Application Versions
- From: Michelle Steiner <email@hidden>
- Date: Wed, 12 Sep 2001 15:48:49 -0700
On 9/12/01 3:39 PM, Mr Tea <email@hidden> wrote:
>
>> I want to be able to change version numbers that appear in the "get info"
>
>> box for script applications. I have figured out how to do it using ResEdit
>
>
Your contributions to this list are often delightfully terse, Michelle, but
>
this one (apparently composed entirely from AppleScript's default text item
>
delimiters) takes the cake.
An esoteric bug in Emailer 2.0 hit that message, and cut it short.
here's the full item.
--Michelle
>
I want to be able to change version numbers that appear in the "get info"
>
box for script applications. I have figured out how to do it using ResEdit
>
Is there an easier/faster way than cutting and pasting the resource in?
there's a Resource Utilities OSAX. Here's the dictionary.
--Michelle
Resource Utilities Suite:
Copyright ) 1996-1998 Christopher E. Hyde.
All rights reserved.
www.hylight.demon.co.uk
email@hidden
res create: Create a resource file
res create file specification -- the file to create
creator type type class -- the file creator
file type type class -- the file type
res open: Open a resource file
res open alias -- the file to open
[write permission boolean] -- if true, the file will be opened with
read/write access. If false, the file will be opened with read access
only.
[keep in chain boolean] -- if true, the file will remain in the
resource chain. Defaults to false.
Result: integer -- a resource file ref
res count types: Count the resource types in a resource file
res count types integer -- the resource file ref
Result: integer -- number of resource types
res count: Count the resources of a given type in a resource file
res count integer -- the resource file ref
type res type -- the resource type
Result: integer -- number of resources
res get type: Get the n9th resource type
res get type integer -- the resource file ref
index integer -- the resource type index
Result: res type -- the resource type
res get: Get data from a resource
res get integer -- the resource file ref
type res type -- the resource type
[id integer] -- the resource id
[name international text] -- the resource name
[index integer] -- the resource index
[as type class] -- the required data type
Result: anything -- the resource data
res put: Put data into a resource
res put integer -- the resource file ref
[type res type] -- the resource type
id integer -- the resource id
[name international text] -- the resource name
data anything -- the resource data
res delete: Delete a resource
res delete integer -- the resource file ref
type res type -- the resource type
[id integer] -- the resource id
[name international text] -- the resource name
[index integer] -- the resource index
res get info: Get the info for the given resource
res get info integer -- the resource file ref
type res type -- the resource type
[id integer] -- the resource id
[name international text] -- the resource name
[index integer] -- the resource index
Result: res info -- the resource info
res set info: Set the info for the given resource
res set info integer -- the resource file ref
type res type -- the resource type
[id integer] -- the resource id
[name international text] -- the resource name
[index integer] -- the resource index
to res info -- the resource info
res unique id: Generate an ID unique to the given resource type
res unique id integer -- the resource file ref
type res type -- the resource type
Result: integer -- a resource ID
res close: Close a resource file
res close integer -- the ref of the file to close
res get ref to: Get a file ref to the current application or script
res get ref to type class -- application or script
Result: integer -- a resource file ref
Class res info: a resource information record
Properties:
res type res type [r/o] -- resource type
res id integer -- resource ID
res name international text -- resource name
res attributes integer -- resource attributes
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------