Mailing List SIMS@mail.stalker.com Message #7126
From: Wolfgang Schwindt <schwindt@onetext-ps.de>
Subject: Re: Auto account creation?
Date: Wed, 15 Nov 2000 07:34:51 +0100
To: (SIMS Discussions) <SIMS@mail.stalker.com>
Hello !

This is an osax that works pretty well, within otherfor editing resoures
with Apple Script.

Suite Name:
Late Night Software Suite :
Copyright 1993-1995 Mark Alldritt & Late Night Software Ltd.
All Rights Reserved

I listed the commands and the results:

choose new file: Choose a new file from a list
    choose new file
        [default name string] -- Optional initial file name
        [with prompt string] -- optional user prompt
    Result: reply  -- chosen new file

choose several files: Choose several files from a list
    choose several files
        [with prompt string] -- optional user prompt
        [of type list] -- list of file types to display (up to 4)
        [starting with list] -- list of already selected files
    Result: list  -- chosen files

choose several folders: Choose several folders from a list
    choose several folders
        [with prompt string] -- optional user prompt
        [starting with list] -- list of already selected folders
    Result: list  -- chosen folders

set default folder: Set default folder and volume for subsequent Choose File
and Folder commands
    set default folder alias  -- New default folder and volume

get default folder: Get default folder used in Choose File and Folder
commands
    get default folder
    Result: alias  -- Default folder and volume

openFile: open a text file
    openFile alias  -- the file to be opened
        [for reading/writing/update] -- type of file access
    Result: small integer  -- open file reference number

closeFile: close an open text file
    closeFile small integer  -- open file reference number

getFilePosition: get current file position
    getFilePosition small integer  -- open file reference number
    Result: integer  -- file position

positionFile: set file position
    positionFile small integer  -- open file reference number
        at integer -- file position
        [relative to start/position/end]

getFileLength: get the length of an  open file
    getFileLength small integer  -- open file reference number
    Result: integer  -- length of the file

lengthenFile: set the length of an open file
    lengthenFile small integer  -- open file reference number
        length integer -- new file length

readLine: read a line of text from an open file
    readLine small integer  -- open file reference number
        [maximum length integer] -- maximum number of characters to read
    Result: string  -- a line of text

writeLine: write a line of text to an open file
    writeLine small integer  -- open file reference number
        text string -- text to be written

writeString: write a string to an open file
    writeString small integer  -- open file reference number
        text string -- text to be written

createFile: create a new text file
    createFile string  -- name of new file to be created
        [in alias] -- a folder where the new file is to be placed
        [owner string] -- signature code of application which should own the
new file

createFolder: create a new folder
    createFolder string  -- name of new folder to be created
        [in alias] -- a folder where the new folder is to be placed

deleteFile: delete a file
    deleteFile alias  -- the file to be deleted

exchangeFile: exchange the contents of two files
    exchangeFile alias  -- first file
        with alias -- second file

renameFile: change the name of a file
    renameFile alias  -- the file being renamed
        to string -- the file's new name

moveFile: move a file or folder to another folder
    moveFile alias  -- the file or folder being moved
        to file specification -- the destination folder

changeFileOwner: change a file's owner application signature
    changeFileOwner alias  -- the file to modify
        to string -- new signature - four character code

find application: locate an application by its signature
    find application string  -- four character application signature
        on string -- name of the volume to search
        [index small integer] -- application index
    Result: file specification  -- application file

get gestalt: obtain Gestalt value
    get gestalt string  -- Gestalt selector - a four character code
        [bit small integer] -- a bit to test
        [report missing selectors boolean] -- report errors for missing
selectors?
    Result: anything  -- gestalt value

union of: join two lists together, and return the union (all unique items)
of the two lists
    union of list  -- first list
        and list -- second list
        ignoring case boolean -- Ignore the case of letters when comparing
string items
    Result: list  -- resulting merged list

intersection of: join two lists together, and return the intersection (items
common to both) of the two lists
    intersection of list  -- first list
        and list -- second list
        ignoring case boolean -- Ignore the case of letters when comparing
string items
    Result: list  -- resulting merged list

difference of: join two lists together, and return the difference (items not
common to both) of the two lists
    difference of list  -- first list
        and list -- second list
        ignoring case boolean -- Ignore the case of letters when comparing
string items
    Result: list  -- resulting merged list

extract items from: extract items of certain type(s) from a list
    extract items from list  -- the list to filter
        of type list of type class -- the data type(s) to extract
    Result: list  -- resulting filtered list

get process: get information about a running application
    get process string  -- application name
    Result: process info  -- process information

list processes: get a list of the running applications
    list processes
    Result: list  -- list of running applications

get current process: determine the name of the currentlty executing process
    get current process
    Result: string  -- application name

get foreground process: get the name of the active application
    get foreground process
    Result: string  -- name of foreground application

countResourceTypes: get total number of resource types in open resource
files
    countResourceTypes [small integer]  -- resource file reference number
    Result: small integer  -- number of resource types

count1ResourceTypes: get total number of resource types in the current
resource file
    count1ResourceTypes small integer  -- resource file reference number
    Result: small integer  -- number of resource types

getIndexedResourceType: Get a resource type, given its index
    getIndexedResourceType [small integer]  -- resource file reference
number
        index small integer -- resource index
    Result: string  -- resource type

listResourceTypes: Get a list of the resource types in all open resource
files
    listResourceTypes small integer  -- resource file reference number
    Result: string  -- resource type

get1IndexedResourceType: Get a resource type in the current resource file,
given its index
    get1IndexedResourceType small integer  -- resource file reference number
        index small integer -- resource index
    Result: string  -- resource type

list1ResourceTypes: Get a list of the resource types in the current resource
file
    list1ResourceTypes small integer  -- resource file reference number
    Result: string  -- resource type

countResources: Count resources of a specific type
    countResources [small integer]  -- resource file reference number
        of type string -- four character resource type code
    Result: small integer  -- count of resources

count1Resources: Count resources of a specific type in the current resource
file
    count1Resources small integer  -- resource file reference number
        of type string -- four character resource type code
    Result: small integer  -- count of resources

openResourceFile: Open a resource file and make it the current resource file
    openResourceFile alias  -- resource file
        [for reading/writing/update] -- type of file access
    Result: small integer  -- resource file reference number

closeResourceFile: Close a resource file
    closeResourceFile small integer  -- resource file reference number

createResourceFile: create a new resource file
    createResourceFile string  -- name of new file to be created
        [in alias] -- a folder where the new file is to be placed
        [owner string] -- signature code of application which should own the
new file
        [filetype string] -- file type code for the new file

getIndexedResource: Locate and read a resource by its index
    getIndexedResource [small integer]  -- resource file reference number
        of type string -- four character resource type code
        index small integer -- resource index
        [as type class] -- desired resource type
        [reading data boolean] -- should the resource data be read and
returned?
    Result: resource  -- resource data

get1IndexedResource: Locate and read a resource by its index from the
current resource file
    get1IndexedResource small integer  -- resource file reference number
        of type string -- four character resource type code
        index small integer -- resource index
        [as type class] -- desired resource type
        [reading data boolean] -- should the resource data be read and
returned?
    Result: resource  -- resource data

getResource: Read a resource
    getResource [small integer]  -- resource file reference number
        of type string -- four character resource type code
        [id small integer] -- resource ID
        [name string] -- resource name
        [as type class] -- desired resource type
        [reading data boolean] -- should the resource data be read and
returned?
    Result: resource  -- resource data

listResources: Read all resource of a particular type
    listResources [small integer]  -- resource file reference number
        of type string -- four character resource type code
        [as type class] -- desired resource type
        [reading data boolean] -- should the resource data be read and
returned?
    Result: list of resource  -- resource data

get1Resource: Read a resource from the current resource file
    get1Resource small integer  -- resource file reference number
        of type string -- four character resource type code
        [id small integer] -- resource ID
        [name string] -- resource name
        [as type class] -- desired resource type
        [reading data boolean] -- should the resource data be read and
returned?
    Result: resource  -- resource data

list1Resources: Read all resource of a particular type from a resource file
    list1Resources [small integer]  -- resource file reference number
        of type string -- four character resource type code
        [as type class] -- desired resource type
        [reading data boolean] -- should the resource data be read and
returned?
    Result: list of resource  -- resource data

getStringResource: Read a string ('STR ') resource
    getStringResource [small integer]  -- resource file reference number
        [id small integer] -- resource ID
        [name string] -- resource name
    Result: string  -- string data

getIndexedStringResource: Read an indexed string ('STR#') resource
    getIndexedStringResource [small integer]  -- resource file reference
number
        [id small integer] -- resource ID
        [name string] -- resource name
        index small integer -- string index
    Result: string  -- string data

removeResource: Delete a resource
    removeResource small integer  -- resource file reference number
        of type string -- four character resource type code
        [id small integer] -- resource ID
        [name string] -- resource name

addResource: Add a new resource
    addResource small integer  -- resource file reference number
        of type string -- four character resource type code
        id small integer -- resource ID
        [name string] -- resource name
        data anything -- resource data
        [purgeable boolean] -- is the resource purgeable
        [protected boolean] -- is the resource protected
        [preload boolean] -- is the resource preloaded
        [locked boolean] -- is the resource locked
        [system heap boolean] -- is the resource loaded into the system heap

changeResource: Change a resource
    changeResource small integer  -- resource file reference number
        of type string -- four character resource type code
        [id small integer] -- resource ID
        [name string] -- resource name
        [new id small integer] -- new resource ID
        [new name string] --  new resource name
        [data anything] -- new resource data
        [purgeable boolean] -- is the resource purgeable
        [protected boolean] -- is the resource protected
        [preload boolean] -- is the resource preloaded
        [locked boolean] -- is the resource locked
        [system heap boolean] -- is the resource loaded into the system heap

changeStringResource: Change an 'STR ' (string) resource
    changeStringResource small integer  -- resource file reference number
        [id small integer] -- resource ID
        [name string] -- resource name
        [new id small integer] -- new resource ID
        [new name string] --  new resource name
        [data string] -- new resource string
        [purgeable boolean] -- is the resource purgeable
        [protected boolean] -- is the resource protected
        [preload boolean] -- is the resource preloaded
        [locked boolean] -- is the resource locked
        [system heap boolean] -- is the resource loaded into the system heap

getUniqueResourceID: Get a unique resource ID
    getUniqueResourceID [small integer]  -- resource file reference number
        of type string -- four character resource type code
    Result: small integer  -- unique resource ID

getUnique1ResourceID: Get a unique resource ID within the current resource
file
    getUnique1ResourceID small integer  -- resource file reference number
        of type string -- four character resource type code
    Result: small integer  -- unqiue resource ID

Class reply
Properties:
    folder returned alias  [r/o]  -- folder containing new file
    filename returned string  [r/o]  -- new file name
    replacing boolean  [r/o]  -- is new file replacing an existing file?

Class process info : information describing a running application
Properties:
    process name string  [r/o]  -- application's name
    process number 'psn '  [r/o]  -- Process Serial Number
    application type string  [r/o]  -- application's file type
    signature string  [r/o]  -- application's signature
    partition size integer  [r/o]  -- partition size in bytes
    free memory integer  [r/o]  -- free memory within partition in bytes
    launcher string  [r/o]  -- name of the application which launched this
application
    launch date anything  [r/o]  -- date object - date and time when the
application was launched
    active time integer  [r/o]  -- CPU time (in ticks) used by this
application
    application file file specification  [r/o]  -- application file
    deskDccessory boolean  [r/o]
    multiLaunch boolean  [r/o]
    needSuspendResume boolean  [r/o]
    canBackground boolean  [r/o]
    activateOnForegroundSwitch boolean  [r/o]
    compatible32Bit boolean  [r/o]
    onlyBackground boolean  [r/o]
    getFrontClicks boolean  [r/o]
    getApplicationDiedEvents boolean  [r/o]
    highLevelEventAware boolean  [r/o]
    localAndRemoteEvents boolean  [r/o]
    stationeryAware boolean  [r/o]
    useTextEditServices boolean  [r/o]

Class resource : A resource
Properties:
    resType string  [r/o]  -- The resource type
    resID small integer  [r/o]  -- The resource ID
    resName string  -- The resource name
    resData anything  -- The resource data
    resPurgeable boolean  -- Is the resource purgeable?
    resPreload boolean  -- Is the resource preloaded?
    resProtected boolean  -- Is the resource protected?
    resLocked boolean  -- Is the resource locked?
    resSystemHeap boolean  -- load resource into system heap?


--


> Von: Shane Stanley <sstanley@myriad-com.com.au>
> Antworten an: <SIMS@mail.stalker.com> (SIMS Discussions)
> Datum: Wed, 15 Nov 2000 13:11:50 +1100
> An: <SIMS@mail.stalker.com> (SIMS Discussions)
> Betreff: Re: Auto account creation?
>
> On 10/11/00 12:42 AM +1000, Serge Belleudy-d'Espinose, sam@ijm.jussieu.fr,
> wrote:
>
>> Does any one know of an osax
>> that would allow me to edit the resource fork of a file?
>
> Akua Sweets.
>
> --
> Shane Stanley,  sstanley@myriad-com.com.au
>
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list <SIMS@mail.stalker.com>.
> To unsubscribe, E-mail to: <SIMS-off@mail.stalker.com>
> To switch to the DIGEST mode, E-mail to <SIMS-digest@mail.stalker.com>
> To switch to the INDEX mode, E-mail to <SIMS-index@mail.stalker.com>
> Send administrative queries to  <SIMS-request@mail.stalker.com>
>

Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster