This content has been marked as final. Show 4 replies
Can you try copying this file to app storage folder from app folder on the first run and modify it there. Modifying files in app folder cause issues even in vista as the "Program Files" is protected. So one option is to check for this file in app storage when app runs and if it is not there copy it from app to app storage, modify it and use it. Will that work for you?
Let me get this straight. I should locate the XML file that I'm interested in, copy it to my AIR app storage space, modify it there, and then copy it back and overwrite it? This XML file is required by some other application to run, but it is only read when that application starts, and it's not used (locked) by that application, even when it's running.
No; you should consider the application directory read-only. That means you shouldn't modify or overwrite the files in that location.
It's not possible to ignore or change the read-only attribute of a file. However, attempting to write to a read-only file will throw an error--not fail silently. I suspect a different issue is causing this problem.
Oliver Goldman | Adobe AIR Engineering
What I meant was to keep the modified file always in the app storage folder. I suggested this option without knowing that another app is consuming the same file. Can you create a symbolic link for the non-air app to use the file from air app storage or change the non-air and air apps to use the file from a common writable folder for both air and non-air apps?