New topic: 

How to get absolutePath including server

<http://forums.realsoftware.com/viewtopic.php?t=26252>

       Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic         Author  
Message       jaysedai           Post subject: How to get absolutePath 
including serverPosted: Thu Jan 29, 2009 7:05 pm                        
Joined: Thu Apr 06, 2006 1:19 pm
Posts: 4              First let me explain what I'm trying to do.  I'm trying 
to send a string of the absolute path for a folderItem to another machine on 
the network.  The destination machine may be on a different platform than the 
source.  I'm making progress, but it turns out absolutePath isn't all that 
absolute on the Mac, in that it doesn't include the server name, the root is 
the volume name, but on the PC side the path needs to include the server name.  
So I need to figure out the server name of a folderItem on the Mac.  As you can 
see the Mac knows it see this get info dialog, note the "Server:" path includes 
afp://rivserve-Main.local/Production_01/etc...

But I can't figure out how to get anything prior to the volume name (in this 
case Production_01)

Also does anybody have advice on converting the path from Mac centric to PC 
centric and back? Here are the examples:
PC:
\\rivserve-Main\Production_01\CDI Media\

to Mac:
Production_01:CDI Media:

And visa versa.  I'm open to an already existing class or plugin.

I realize this breaks the cardinal rule of working with absolute paths, but I 
can't figure out any better way to transfer the location of a file on a server 
between two networked machines.  I'm certainly open to alternative method 
suggestions.  Thanks in advance.   
                            Top               npalardy           Post subject: 
Re: How to get absolutePath including serverPosted: Thu Jan 29, 2009 8:11 pm    
                    
Joined: Sat Dec 24, 2005 8:18 pm
Posts: 4347
Location: Canada, Alberta, Near Red Deer              thats because the AFP 
provided "volume" has been "mounted" onto a local file system and so appears as 
though it's local (even though its really not)

there might be some nav services code in macoslib that will let you get at that 
info     
_________________
My web site Great White Software
RBLibrary.com REALbasic learning  
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]     

-- 
Over 900 classes with 18000 functions in one REALbasic plug-in. 
The Monkeybread Software Realbasic Plugin v8.1. 

&lt;http://www.monkeybreadsoftware.de/realbasic/plugins.shtml&gt;

[email protected]

Reply via email to