Re: Drive mounting problem
Re: Drive mounting problem
- Subject: Re: Drive mounting problem
- From: Dalton Hamilton <email@hidden>
- Date: Tue, 6 Jun 2006 18:23:19 +0200
Hi Aalok -
I noticed the same thing when I was playing around with some scripts
-- and this caused me problems as well. I then got some advice and
decided to go with an objective-C app (called MountWatcher) using the
filesystem calls and it works beautifully. My suggestion is do it in
Obj-C and use the FS calls. You can look at MountWatcher at http://
www.scriptsoftware.com/mountwatcher
cheers
Dalton Hamilton
On Jun 6, 2006, at 6:08 PM, Aalok wrote:
I am mounting a window drive on my mac thru smb using applescript.
What I have found is, sometimes it creates a fake volume of the drive
and next time it mounts the drive with other name...
for example,
I am mounting a directory named bm-share$. When the problem occurs,
bm-share$ is not removed from /volumes. And Mac mounts the drive with
name bm-share-1$ the next time. Although bm-share$ is not shown
mounted (in finder too) but it in present as a directory under
/volumes. This makes my application crash. If I remove bm-share$ from
/volumes by "rm -r bm-share$" it works and mounts the directory with
the correct name.
Can you please tell me when this happens? What could be the reason? I
do not get the reason behind it.
Regards,
Aalok
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden