I created an .app using Script Editor that automagically mounts a Windows share on my network. Here's the script, which I grabbed from macosxhints.com:
Mounts share_name just fine. I also created an Automator .app to grab files from this share daily and copy them to the external Firewire drive hooked up to my Mac.
First issue is that the share keeps mysteriously disappearing. I'll go to bed with the share mounted and wake up to find it gone from the desktop. The share is on a PC that's active 24 hours a day; it never goes to sleep.
Since the share mysteriously unmounts, my backup fails.
Second issue: I tried adding the mounting script as the first item in the Automator backup.app so it runs before the copying actions, but that item fails and causes the whole backup.app to fail.
Any idea what foolishness is going on or what I might be doing wrong?
Code:
[b]
tell application "Finder"
activate
try
mount volume "smb://NETWORK;username:password@computer_name/share_name"
end try
end tell
[/b]
Mounts share_name just fine. I also created an Automator .app to grab files from this share daily and copy them to the external Firewire drive hooked up to my Mac.
First issue is that the share keeps mysteriously disappearing. I'll go to bed with the share mounted and wake up to find it gone from the desktop. The share is on a PC that's active 24 hours a day; it never goes to sleep.
Since the share mysteriously unmounts, my backup fails.
Second issue: I tried adding the mounting script as the first item in the Automator backup.app so it runs before the copying actions, but that item fails and causes the whole backup.app to fail.
Any idea what foolishness is going on or what I might be doing wrong?