Re: Scripting Mac OS Server Admin
Re: Scripting Mac OS Server Admin
- Subject: Re: Scripting Mac OS Server Admin
- From: email@hidden
- Date: Mon, 8 Jan 2001 09:51:24 -0500
We are running Version 6.3 of AppleShare IP:
The odd thing is that I have written simple scripts that use the organize
function which works with no problems
Here is a copy of the dictionary
Required Suite: Terms that every application should support
Standard Suite: Common terms for most applications
close: Close an object
close reference -- the objects to close
data size: Return the size in bytes of an object
data size reference -- the object whose data size is to be returned
Result: integer -- the size of the object in bytes
get: Get the data for an object
get reference -- the object whose data is to be returned
Result: anything -- The data from the object
organize: Clean up windows for all or specified sessions
organize
[session reference]
connect: Make a new connection to a host
connect
[to string] -- the name or IP of the server
[user string] -- the username to use with connection
[with password anything] -- password of given user
Result: reference -- Object specifier for the new element
set: Set an object?s data
set reference -- the object to change
to anything -- the new value
Class application: An application program
Elements:
'RASW' by numeric index
'RASM' by numeric index
window by numeric index, by name, before/after another element
Class window: A Window
Properties:
bounds bounding rectangle -- the boundary rectangle for the window
closeable boolean [r/o] -- Does the window have a close box?
titled boolean [r/o] -- Does the window have a title bar?
index integer -- the number of the window
floating boolean [r/o] -- Does the window float?
modal boolean [r/o] -- Is the window modal?
resizable boolean [r/o] -- Is the window resizable?
zoomable boolean [r/o] -- Is the window zoomable?
zoomed boolean -- Is the window zoomed?
name international text -- the title of the window
visible boolean [r/o] -- is the window visible?
position point [r/o] -- upper left coordinates of window
Miscellaneous Standards: Useful events that aren?t in any other suite
odds and ends: Things that should be in some standard suite, but aren?t
select: Select the specified object
select reference -- the object to select
email@hidden on 12/31/1903 08:57:30 AM
To: email@hidden
cc:
Subject: Re: Scripting Mac OS Server Admin
>
From: email@hidden
>
Subject: Scripting Mac OS Server Admin
>
>
Hello All,
>
I am trying to write a simple AppleScript that allows me to connect to various
>
AppleShare IP servers using the Mac OS Server Admin software. According to the
>
Applescript Dictionary, This should be possible:
>
>
connect: Make a new connection to a host
>
connect
>
[to string] -- the name or IP of the server
>
[user string] -- the username to use with connection
>
[with password anything] -- password of given user
>
Result: reference -- Object specifier for the new element
>
>
Here is the script I am trying to work with:
>
-- For Security Reasons I am not going to inculde any valid Server IP
>
Information,
>
-- or User Name and Password Information
>
tell application "Mac OS Server Admin"
>
activate
>
connect to "127.0.0.1" user "userName" with password "passWord"
>
end tell
s'funny Steve. The copy of MOSSA that I have doesn't support
AppleScript. What version do you have ?
--
David Bakkers, IT Manager.
---------------------------
Energi Pty Ltd, Sydney
Reply to: email@hidden
_______________________________________________
appleshare-ip mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/appleshare-ip