Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 629871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:47:40+00:00 2026-05-13T19:47:40+00:00

This is probably a bad idea or whatever you wan’t to call it. Nevertheless,

  • 0

This is probably a bad idea or whatever you wan’t to call it. Nevertheless, curious to know if Air can write inside it’s own installed package. I’m referring to the OSX ‘.app’ files found in great numbers in the applications folder. Since every one of these can be opened as a regular folder, i’m guessing that’s what they are.

What other fancy filewriting tricks am i missing out on?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:47:40+00:00Added an answer on May 13, 2026 at 7:47 pm

    It’s definitely a bad idea. That said, it looks like it’s probably possible. Something like (untested):

    var appDir:File = File.applicationDirectory; // uses app: URI, can't be written to
    var appPath:String = appDir.nativePath;
    var writeableAppDir:File = new File(appPath);
    
    var newFile:File = writeableAppDir.resolvePath("writeme.txt");
    

    The nativePath and applicationDirectory documentation in the File class are full of warnings against this. Follow them.

    From the docs:

    Modifying content in the application
    directory is a bad practice, for
    security reasons. If you want to store
    application-specific data, consider
    using the application storage
    directory
    (File.applicationStorageDirectory). If
    you want any of the content in the
    application storage directory to have
    access to the application-priveleged
    functionality (AIR APIs), you can
    expose that functionality by using a
    sandbox bridge.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So people are probably going to tell me this is a bad idea, but
This is a Bad Idea, I know, but... I want to configure log4net programmatically
This is probably a bad thing to do, as discussed in Can parent and
This probably sounds really stupid but I have noo idea how to implement jquery's
This probably sounds like a terrible idea at first glance, but here is my
I know this probably really simple but Im not sure what im doing wrong...
I've been working all day and I somehow can't get this probably easy task
Edit 2: What I previously planned was probably a bad idea and I now
This probably has a simple answer, but I must not have had enough coffee
I am using ASP.Net MVC but this probably applies to all MVC patterns in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.