I've got an Air application that needs to reference files located in a shared network folder. From within the Air application running on Windows I can access the share through a File object as follows:
var folder:File = new File("file:///\\\\server\\share\\parent_folder\\folder");
On a Mac, that doesn't work, and I can't find any variation on the path that does. I can connect to the server through the Finder using the path "smb://server/share/parent_folder/folder", and then I can construct a File object through some (seemingly) convoluted volume mount with a name that seems to vary depending on how many existing mounts there are to "//server/share" (e.g., "/Volumes/share", "/Volumes/share-1", etc.)
Is there a way from within an Air application to connect to a shared server folder on a Mac, without the user needing to connect through the Finder first? Worst case, is there a way to execute a console command from within Air? Presumably I could then mount the share myself. I can't think of a work-around other than requiring Mac users to first manually connect to the server through the finder, then supply the app with the share path every time they run the app!
Thanks in advance for any workable solution!