How can I find out File.nativepath from the folder where my .app or .exe AIR application is running? When I try to do it, I just get
'/Users/MYNAME/Desktop/MYAPP/Contents/Resources/FILETHATINEED.xml
I need to put this in any folder and read the xml file in the same folder. I do not need my XML file inside the package.
I need this structure
/folder/AIRAPP.exe/folder/FILE.xml
/folder/AIRAPP.exe
/folder/FILE.xml
Thanx in advance.
, , , . , File.applicationDirectory Mac ( ), :
File.applicationDirectory
var appDir = File.applicationDirectory if ( appDir.resolvePath("../../Contents/MacOS").exists ) { appDir = appDir.resolvePath("../../.."); }
, , Mac.app bundle, ( , .app).
, File.applicationDirectory.
Source: https://habr.com/ru/post/1704947/More articles:How to add clear button in UITextField? - iphoneCapturing all data that was changed during Linux installation - installerUsing DELAY_KEY_WRITE in MySQL: Should I Use It? Is there anything else I need to change? - mysqlHow can I make sure my iphone application is the one who is talking to my server? - emailResize UITableView on RootController - iphoneUsing linq with Sharepoint and deleting objects - linqКаковы хорошие стратегии развертывания кода? - automated-deployI am looking for a data structure for addressing content - chow to make an element in an Xml schema as an optical - xmlHow to determine if a network adapter is removable in Windows - windowsAll Articles