| Click here to select a new forum. |
| Network/AppleScript? |
Posted by: Gil on 2008-10-12 10:36:47 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.
|
Posted by: porter on 2008-10-12 13:47:12
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.....
|
Posted by: Gil on 2008-10-12 15:36:46 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. 🙂
|
Posted by: porter on 2008-10-12 16:01:37
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.
|
Posted by: Gil on 2008-10-12 17:10:30 I'm using Mac OS 9.1.
|
Posted by: ~Coxy on 2008-10-12 21:03:00 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.
|
Posted by: porter on 2008-10-12 21:20:18
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.
|
Posted by: Gil on 2008-10-13 05:32:30 Yeah, when I first installed the OS, I dumped the entire Applications folder onto the server, and i could open every single app.
|
Posted by: Flash! on 2008-10-14 01:04:50 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
|
Posted by: Gil on 2008-10-14 16:55:58
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
|
Posted by: Flash! on 2008-10-14 23:50:24 let us know how you go....
|
| 1 |