# Mac and PC paths

**URL:** <https://forum.kirupa.com/t/mac-and-pc-paths/331167>\
**Category:** flash\
**Created:** [June 5, 2013, 7:24am UTC](https://forum.kirupa.com/t/mac-and-pc-paths/331167 "2013-06-05T07:24:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FJW](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@FJW](https://forum.kirupa.com/u/FJW)\
**Post date:** [June 5, 2013, 7:24am UTC](https://forum.kirupa.com/t/mac-and-pc-paths/331167/1 "2013-06-05T07:24:47Z")

</div>

Hi  
Could anyone help with this small problem? Am using AIR to create a very simple app and am testing on pc and Mac. The PC side works flawlessly but on the Mac get stream errors and file not found though the path and file and traced ok.

\<code\>  
var XML\_URL:String = File.userDirectory.nativePath;  
var Platform:String;  
Platform = Capabilities.os;  
if ( Platform.substr(0,1) == “W”)  
{  
XML\_URL +="[\Test\ est.xml](file://\Test\ est.xml)";  
}  
else  
{  
XML\_URL +="/Test/test.xml";  
}

trace(“XML”,XML\_URL);  
myXMLURL = new URLRequest(XML\_URL);  
myLoader = new URLLoader(myXMLURL);  
myLoader.addEventListener(“complete”,xmlLoaded);  
\</code\>
