New topic: Saving files on Network volume
<http://forums.realsoftware.com/viewtopic.php?t=46687> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message lenpartico Post subject: Saving files on Network volumePosted: Thu Jan 24, 2013 8:42 pm Joined: Fri Sep 30, 2005 10:49 pm Posts: 485 Hello, I have two computers connected via an Ethernet Switch - "Mac Mini 183" and "Mac Mini 166" myApp is a program I created in RS. When I am working on myApp on "Mac Mini 183" I would like to save the document on "Mac Mini 166" in a folder named "MacMini166 Shared" in "Mac Mini 166" Public folder. How do I do that? Thanks. Lennox Top ktekinay Post subject: Re: Saving files on Network volumePosted: Thu Jan 24, 2013 10:26 pm Joined: Mon Feb 05, 2007 5:21 pm Posts: 392 Location: New York, NY If you want your app to mount the volume, that's a different discussion. If it's already mounted, use: dim f as FolderItem = GetFolderItem( "Public:MacMini166 Shared:", FolderItem.PathTypeAbsolute ) But hard-coding a path is a bad idea. Better to have the user select the folder once, then store the string returned from "GetSaveInfo" somewhere like a prefs file. On the next run, you can recreate the destination from that string. If you download the MacOSLib package, there is true alias handling code and plist code within that will not only let you save an alias, but will mount the volume for you when you try to resolve it. https://github.com/macoslib/macoslib _________________ Kem Tekinay MacTechnologies Consulting http://www.mactechnologies.com/ Need to develop, test, and refine regular expressions? Try RegExRX. Top lenpartico Post subject: Re: Saving files on Network volumePosted: Thu Jan 24, 2013 10:38 pm Joined: Fri Sep 30, 2005 10:49 pm Posts: 485 Thanks Kem, Yes, your suggestion is what I think I really wanted. I will try it. Lennox Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml rbforumnotifier@monkeybreadsoftware.de