Drive mounting problem
Drive mounting problem
- Subject: Drive mounting problem
- From: Aalok <email@hidden>
- Date: Tue, 6 Jun 2006 21:38:43 +0530
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
On 6/5/06, I. Savant <email@hidden> wrote:
Aalok:
I *think* I know what you're asking / the information you're missing.
I haven't played with this personally, but what *do* you get on
the pasteboard? If it's a number, it may be the "persistent id" of
the playlist. In which case, you'd need to parse the XML version of
the iTunes library (it's a PLIST, so you can open it as a dictionary
or array, depending on its structure) stored in the user's home
folder (look into iTunes' preferences to get the actual location the
user set).
Each playlist in this file has a persistent id. I'm guessing (if
you're just getting an inexplicable number) that it'll be the
persistent id. From there you can retrieve the playlist by its id,
then retrieve its name.
I'm *guessing* that's all you're really asking for. If not, let us
know (be specific!).
--
I.S.
On Jun 5, 2006, at 10:06 AM, Aalok wrote:
> Hi, thankx a lot for your reply.
>
> The problem I am having here is on playlist drop I dont get the
> playlist name.
> Is there any way to get that thing?
>
> I appreciate all your help.
>
> Best Regards,
> Aalok
>
> On 6/5/06, John Stiles <email@hidden> wrote:
>> I don't know the answer, but if it's urgent, maybe experiment with
>> this:
>> http://developer.apple.com/samplecode/PasteboardPeeker/index.html
>>
>> Aalok wrote:
>> > Hi,
>> >
>> > The following link provides a software which offers drag and drop
>> > facility of iTunes playlists and songs on window. Download the
>> latest
>> > trial version to try.
>> >
>> > http://www.dj1800.com/index.php
>> >
>> > I need the similar functionality. Can any one please help.
>> >
>> > Its very urgent.
>> > 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:
>> 40blizzard.com
>> >
>> > This email sent to email@hidden
>>
>
>
> --
> Tata Consultacy Services
> Voice:- (091) 9850984395
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 40gmail.com
>
> This email sent to email@hidden
--
Tata Consultacy Services
Voice:- (091) 9850984395
_______________________________________________
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