• Updated 2023-07-12: Hello, Guest! Welcome back, and be sure to check out this follow-up post about our outage a week or so ago.

Network/AppleScript?

Gil

Well-known member
Right now, I have a 320 MB Hard Drive in my Power Mac 9500. It BARELY fits OS 9, with just a few MB leftover. What I want to do is map the Applications and Documents folders on the drive, to network volumes on my Windows 2000 Server. Instead of having the network volumes appear on the desktop, I would rather have folders in the actual OS 9 drive, aliased to the network volumes, which are connected at startup.

Is there a way to make some sort of Applescript or network script to do this? I've never used AppleScript before.

 

porter

Well-known member
Is there a way to make some sort of Applescript or network script to do this? I've never used AppleScript before.
Forget AppleScript for the moment, AppleScript can only automate what can already be done.

Describe the steps you want to occur.....

 

Gil

Well-known member
Ideally,

1. During boot up process, connect to the network server with supplied username and password. (maybe in a text file?)

2. Map the desired network volumes.

3. Make aliases of the said network volumes, and put them in the workstation's hard disk, NOT volumes mounted on the desktop.

If that makes any sense whatsoever. :)

 

porter

Well-known member
Ideally,
1. During boot up process, connect to the network server with supplied username and password. (maybe in a text file?)

2. Map the desired network volumes.

3. Make aliases of the said network volumes, and put them in the workstation's hard disk, NOT volumes mounted on the desktop.

If that makes any sense whatsoever. :)
You do not say which operating system.

Normal AppleShare behaviour supports this without anything extra except for the part about it not appearing on the desktop.

1. when selecting volume in Chooser, select to have volume mounted at startup time.

2. make an alias to volume, put on harddisk and rename to whatever you want.

 

~Coxy

Leader, Tactical Ops Unit
Depending on the types of applications and documents that you store, you may or may not have troubles with resource forks disappearing.

Probably the best first step would be to see how Windows 2000's AppleTalk support handles the resource forks.

It may separate the resource information, encode it to binary data then chuck it in a separate hidden file to be seamlessly reintegrated when the remote client requests the file. That would be the best case, in which case your idea will work well.

 

porter

Well-known member
Probably the best first step would be to see how Windows 2000's AppleTalk support handles the resource forks.
Windows 2000 Server's Services For Macintosh on NTFS handles resource forks seamlessly over AppleShare. File data are kept in their separate forks using NTFS streams.

 

Gil

Well-known member
Yeah, when I first installed the OS, I dumped the entire Applications folder onto the server, and i could open every single app.

 

Flash!

Well-known member
Hmm well i don't know how you're going to do it without mounting volumes but....maybe this will help?

AppleScript Code (copy/paste below into script editor) The first part is where you set up your server paths and usernames, the "actaul code" uses those variables to mount the disks onto your desktop. Save your script as an application, drop it in your startup items folder and 'voila!' there you go....

Your path might be "afp://the_name_of_your_windows_PC/applications" , or alteraltively using the IP of your W2K box "afp://192.168.x.x/applications"

--START OF SCRIPT

--SERVER SETTINGS

set disk1 to "afp://path_to_network_folder_1"

set disk2 to "afp://path_to_network_folder_2"

set user to "insert_username_here"

set pass to "insert_password_here"

--CODE STARTS HERE

try

mount volume disk1 as user name user with password pass

mount volume disk2 as user name user with password pass

end try

--END OF SCRIPT

 

Gil

Well-known member
Hmm well i don't know how you're going to do it without mounting volumes but....maybe this will help?
AppleScript Code (copy/paste below into script editor) The first part is where you set up your server paths and usernames, the "actaul code" uses those variables to mount the disks onto your desktop. Save your script as an application, drop it in your startup items folder and 'voila!' there you go....

Your path might be "afp://the_name_of_your_windows_PC/applications" , or alteraltively using the IP of your W2K box "afp://192.168.x.x/applications"

--START OF SCRIPT

--SERVER SETTINGS

set disk1 to "afp://path_to_network_folder_1"

set disk2 to "afp://path_to_network_folder_2"

set user to "insert_username_here"

set pass to "insert_password_here"

--CODE STARTS HERE

try

mount volume disk1 as user name user with password pass

mount volume disk2 as user name user with password pass

end try

--END OF SCRIPT
Awesome, I'll try that tomorrow!

Thanks!

-Gil

 
Top