Mount -- no arguments means "return a version string" in 'the result'
put the result into msg
end mouseUp
-- part 2 (button)
-- low flags: 00
-- high flags: 0004
-- rect: left=12 top=281 right=315 bottom=51
-- title width / last selected line: 0
-- icon id / first selected line: 20098 / 20098
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Home
----- HyperTalk script -----
on mouseUp
visual effect iris close
go "Home"
end mouseUp
-- part 6 (field)
-- low flags: 00
-- high flags: 0007
-- rect: left=9 top=30 right=276 bottom=484
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 20
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 7 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=77 top=285 right=313 bottom=175
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Try it out╔
----- HyperTalk script -----
on mouseUp
go to next card
end mouseUp
-- part contents for card part 6
----- text -----
Mount and Unmount XCMDs Version 1.06
October 5, 1988
This stack contains two XCMDs that allow you to mount and unmount AppleShare volumes. The commands are called "Mount" and "Unmount" respectively.
SETTING UP
As usual, use ResEdit or Rez to move these XCMDs to your own stacks. MOUNT requires the 'STR' -1902 resource to run correctly; be sure to drag it along with the XCMD, and don't renumber it.
The first three arguments are required, and should be obvious to anyone who's used the Chooser. If the zone name is empty, Mount uses your current zone.
The username can be empty, for guest access to a server where you might not have an account.
If you have a password, it must be specified in clear text as the fifth argument. Just as in the Chooser, you must type the password in EXACTLY right; in particular, uppercase and lowercase are distinct.
There is currently no secure way to specify a password, and you should be damn careful about NOT distributing scripts that have passwords embedded in them. As usual, make sure no one is looking over your shoulder when you type your passwords in. You do that already, don't you?
If your server administrator has given the volume its own password, you need to specify that as the sixth argument, and the same paranoia applies.
Since Mount is an XCMD, results are returned in 'the result'. An empty result indicates success; anything non-empty is an error. The error messages are self explanatory text (in english in this version), suitable for framing or placing in an alert box.
If you don't supply ANY arguments, Mount responds with a version string, as the "Show version" button below demonstrates.
UNMOUNT
The XCMD "Unmount" requires exactly one argument, the name of the volume to unmount. You can supply a colon on the end of the volume name, or not, as you like. Unmount returns its status in 'the result'; an empty result implies success, anything non-empty is an error message.
WE KNOW, WE KNOW…
Clearly there is a need for more commands to do NBP lookups to find servers, to find volumes on servers, to list currently mounted volumes, to list and pick LaserWriters, and so forth.
MISCELLANEA
These XCMDs do not use call-back to Hypercard. If you follow the Hypercard calling conventions you can use the XCMDs from any application, since you don't need Hypercard around for the XCMDs to run successfully.
CREDITS
These XCMDs were written by Landon Dyer, of the Apple Development Systems Group, with help from Gene Tyacke, of the Networking and Communications Group. The networking people helped find some awesome initial bugs.
Send bugs and comments to Landon Dyer, x4582, Mailstop 27E, or