Skip to main content
Home Forums 68kMLA Network/AppleScript? — #10
Post #10 by Gil
Source Forum68kMLA
CategoryOS 9
Post DateWed, 15 Oct 2008 - 00:55
Original URLhttps://68kmla.org/bb/threads/network-applescript.15202/
Post
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

mp.ls