I am not using hard coded paths. My app uploads files (jpeg images selected by browseForOpenMultiple) from LAN volume, e.g mapped to O: on PC. To be able to get access to these files from Mac AIR app I need the name of server which is mapped to this O: letter. And to be able to access files uploaded from Mac on PC I need to know the letter on which the server with saved name is mapped on PC.
--- In [email protected], Jeffry Houser <[EMAIL PROTECTED]> wrote: > > > I haven't had to deal with that yet. I guess you'll have to do some > form of "if MAC use X path", "if PC, use Y Path". My impulse is that > with hard coded paths your app will lose some portability. I also > suspect that you may have security considerations when accessing a > network share. > > zdenekmikan wrote: > > > > > > Unfortunately this solution does not work when I need to access the > > same file on LAN local file server from AIR applications on Mac and Win. > > > > --- In [email protected] <mailto:flexcoders%40yahoogroups.com>, > > Jeffry Houser <jeff@> wrote: > > > > > > > > > Use relative paths instead of absolute paths. > > > > > > I wrote about this here: > > > > > http://www.jeffryhouser.com/index.cfm/2008/2/19/Local-Access-URLs-in-Adobe-AIR > > <http://www.jeffryhouser.com/index.cfm/2008/2/19/Local-Access-URLs-in-Adobe-AIR> > > > > > > > > > > > > > > > > > Zdenek Mikan wrote: > > > > > > > > > > > > Is it possible to get platform independent path for file or folder in > > > > Adobe AIR? > > > > > > > > If I want to use the same Air application on Mac and Win, how can I > > > > translate the file paths between platforms? (The native path on > > Win does > > > > not include the server name, only the mapping on letter.) > > > > > > > > > > -- > > > Jeffry Houser > > > Flex, ColdFusion, AIR > > > AIM: Reboog711 | Phone: 1-203-379-0773 > > > -- > > > Adobe Community Expert > > > <http://www.adobe.com/communities/experts/members/JeffryHouser.html > > <http://www.adobe.com/communities/experts/members/JeffryHouser.html>> > > > My Company: <http://www.dot-com-it.com <http://www.dot-com-it.com>> > > > My Podcast: <http://www.theflexshow.com <http://www.theflexshow.com>> > > > My Blog: <http://www.jeffryhouser.com <http://www.jeffryhouser.com>> > > > > > > > > > -- > Jeffry Houser > Flex, ColdFusion, AIR > AIM: Reboog711 | Phone: 1-203-379-0773 > -- > Adobe Community Expert > <http://www.adobe.com/communities/experts/members/JeffryHouser.html> > My Company: <http://www.dot-com-it.com> > My Podcast: <http://www.theflexshow.com> > My Blog: <http://www.jeffryhouser.com> >

