Is there a way to create a new directory or file in application install directory programatically

Hi to all,
Is there a way to create a new directory or file in
application install directory programatically.
I want a xml file to be created with in the application
install directory programatically(not the application storage
directory)
I have used the following code snippet:
var file:File = new File();
file = File.applicationDirectory;
file = file.resolvePath("assets");
if(!file.exists)
file.createDirectory()
I am thrown an exception when using this .....Security
Exception

Thanks, but my main problem is to delete the locally stored
data that is stored in the application storage directory when the
application is uninstalled.
The data is not being deleted automatically when the
application is uninstalled, thats why I want to write some file to
application directory.
My application is remembering the login username and password
even I uninstall the application and reinstall the next
time.

Similar Messages

  • Is there a way to create a new Calendar that replicates all events

    Is there a way to create a new Calendar that replicates all events from a subscribed calendar ? Mobile Me is great but my most important Calendar is technically in the "Subscriptions" category so it doesn't get pushed to me iPhone. I want to create a new Calendar and have it just automatically copy all the events from the subscribed calendar and keep up to date with that one.

    lincolnroadjeff,
    I subscribed to a Holiday calendar that I also wanted to be published, and the only workaround that I found was to export the calendar, delete the subscription, and then import the calendar.
    This obviously will only work with a subscription that is not often updated/subject to change.
    ;~)

  • Is there a way to create a new section under "Library"?

    iTunes lists several sections/divisions under the heading "Library" (Music, Movies, Books, Apps, etc), but I have a lot of audio (and a few video) recordings of speeches that I would like to put in a division of their own, preferably called "Talks". Is there a way of creating such a section/division? Better still is there any hope that iTunes would ever come with such a division? I can't believe that I'm the only one who collects interesting talks.
    (Just to be sure that I'm being clear, I am NOT asking how to use an "alternate iTunes Library". I want a new section within the exisiting Library. BTW, I know how to use playlists, but I don't want talks mixed in with Music or audiobooks.)

    Thanks turingtest2 for pointing out iTunes Feedback. I'm new here and I have not learned the ropes.
    I've been pokin' around in Podcasts and iTunes U. It seems like those are good possibilities. Thanks again.
    One thing I notice is that both sections sort on Newest vs Oldest which makes sense for such things. But I'd rather sort on titles. Ah, well, ya can't have everything. (Can you?)
    Your smartsource sounds interesting. Good luck.

  • Is there a way to create a new folder in the Save As dialog box?

    I could do this on my PC in Windows - I find it hard to believe there isn't a way to create a new folder when I'm saving a document?  Perhaps I'm missing something...

    Cool. BTW because you are recent switcher from the Windows world you may find these URL's useful.
    Mac 101
    Switch 101
    Find Out How Video tutorials
    List of Useful URLs for switchers

  • Is there a way to create a new PDF from part of a form?

    I would like to create a PDF form that is really several forms. A master form and several forms like Form A, Form B and Form C. The idea is to be able to fill out the Master form and have it populate the like fields in the other forms. What I would like to accomplish is to have buttons/scripts for each Form A, Form B and Form C that would output each one to a new PDF. If I wrap each form in a subform, is there a way I can output that subform to a new PDF? Or is there another approach I can take?
    Maybe I could put all the forms in a package but somehow automatically populate the like fields in the other forms without exporting and importing data?
    Thanks in Advance,
    Ken

    You are using LiveCycle Designer?
    Acrobat Forms has has Personal Field Names, PFN, that can be used to import and export personal data since version 4. Samples are included on the distribution CD-Rom. forms\PFN

  • Is there any way to create a new library on iTunes?

    I want to create a new library on my computer from the music on my iPod, but I can't figure it out! When I originally downloaded iTunes 10, it updated to a previous library. I can't get my playlists to update to my computer. AGH! Please help!

    I think youre pasting it where the Red arrow is, highlight the Blue arrow one & paste there...
    Doing so here results in No Name being changed to the Green arrow here, with all the same stuff in the Pane at the right...

  • Is there a way to create multiple New Tabs pages and name them?

    This feature is great but I would like to be able to create multiple new tabs pages and label them. This would be more useful than tabs groups that all load at once.

    No that is (currently) not possible.
    It will be possible in future Firefox version to specify the number of rows and columns.
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=752841 bug 752841] - [New Tab Page] make the number of tabs adjustable
    <i>([https://bugzilla.mozilla.org/page.cgi?id=etiquette.html please do not comment in bug reports])</i>

  • Is there a way to create a new user template so I don't I have to set each policy for new users in control panel?

    hi,
    I want conferencing, mobility, remote access, etc., to be automatically set to a defined policy so when I create a user, I don't have to go down the list to change the default from automatic to my custom policy.  I don't want to edit the global
    polices.
    thanks,
    rudif

    Agree with Georg, you can do that using Powershell
    To assign policy using Powershell, you can refer below link
    http://blogs.technet.com/b/csps/archive/2010/06/06/refpolicies.aspx
    https://blogs.technet.com/b/csps/archive/2011/07/13/agmanagingusers.aspx
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"

  • Is there a way to create a new desktop ( Mission Control ) with a keyboard shortcut ?

    And toggling to it while at it ?

    Here you go, this script relinks all selected images to the same image, but it works as well for one image.
    #target Illustrator
    // script.name = relinkAllSelected.jsx;
    // script.description = relinks all selected placed images at once;
    // script.required = select at least one linked image before running;
    // script.parent = CarlosCanto // 7/12/11;
    // script.elegant = false;
    var idoc = app.activeDocument;
    sel = idoc.selection;
    if (sel.length>0)
              var file = File.openDialog ("open file");
              for (i=0 ; i<sel.length ; i++ )
                       if (sel[i].typename == "PlacedItem")
                                var iplaced = sel[i];
                                iplaced.file = file;
    else
              alert("select at least one placed item before running");

  • Is there a way to create favourites in a chm file that was converted from a WebHelp file?

    I am using RH 11. We generally output our help projects to WebHelp, but we still have a few .chm outputs.
    Marketing has provided us with a new branding for our Help projects. We implemented the new skin for the WebHelp and then applied this skin to the chm outputs.
    This works really well. The only issue is that in the new chm output, we no longer have access to the Favourites functionality.
    Does anyone know how to add this functionality or a workaround to create favourites in this new chm output?
    Any help would be much appreciated.
    Cheers,
    Mack

    You would need to add favorites to the WebHelp output prior to creating a CHM. You would need something along the lines of: http://www.wvanweelden.eu/product/favorites-widget-webhelp
    But since it's in a CHM, I'm not sure whether you will be able to save anything from the webhelp output between sessions.
    Kind regards,
    Willam

  • Is there a way to create different groups for my contacts using the installed contact app

    I am trying to make a group on my contacts. So that it's easier to just make messages to people and not having to make group messages every single time. For example, making a group for a sports team so that I can just message everyone in the group at once.

    No not possible but you can create contact groups at www.icloud.com and if you have contact synced thru cloud the groups you make at www.icloud.com will appear on your phone

  • Is there a way to create a ringtone or new alert sound for SMS?

    I know i get tired of hearing my alert sound when I receive a text message. On top of that it seems as if everyone uses the same alert. Is there a way to create a new sound/ringtone for the SMS Alerts?

    You can choose one of the 5 or 6 choices provided in settings.
    http://support.apple.com/manuals/iphone/

  • Is there a way to create a file other than mp4 with iMovie under Maverick

    Since the installation of the last version of iMoviei I noticed that the creation of a sharing file is only in mp4 type. Is there a way to create, for ex a mov file??
    Thanks for reply
    Daniel Goyens

    It doesn't seem like it.
    If you share to iTunes you get an .m4v. Maybe you can open this in Quicktime and convert to .mov.

  • Can I create a new form response file if the original is missing

    I distributed a form through acrobat.com. And now I cannot find the form_responses file (the form_distributed file is gone for that matter too). I do not want to send out a new form for people to fill out, as it would be too difficult logistically.
    Is there some way to create a new response file - perhaps using the original form - that can download the data from Acrobat.com?.
    Thanks,
    Matthew

    Creating a new file with the extension Filename_responses will not collect the previously distributed form data. If you have the original _responses file, try copying it back to the actual location. However, the information for the distributed forms are still saved in a file named "adhocWorkflow". The information inside this file  determines the distributed form data and other workflows.

  • Is there a way to create new events on the new iPhoto app?

    Is there a way to create new events on the new iPhoto app?  I seem to only be able to create albums.  I would really like the app to allow me to do all the same things that I was able to do on my Mac.  I would create events and then sync to all devices.  Can someone please instruct me on how to create new events from the photos imported from the photo stream.
    Thanks for all the help!

    The iPhoto for iOS seems to be aimed at working on photos then sharing them to social media sites or to iCloud for sharing there. iPhoto for iOS does not perform many of the organizing tasks that iPhoto on your Mac does. Many people expected that there would be more capabilities in iPhoto for iOS that would allow it to work more closely with iPhoto on your computer but this is not the case. They are separate apps.

Maybe you are looking for

  • Is there a way to change color of dw cs4 environment?

    specifically, the tabs, if you have a few files open in DW -- the ones that are not on top at the time have a very dark gray background and black text.  They are difficult to read on my laptop - I've looked throughout the options, thought DW used to

  • Safari can't handle gif 89a? Workaround?

    Back in 1998 I made some GIF 89a animations to aid some students and they worked fine. A few years later the animations stopped working. Now they work in Firefox but NOT in Safari 2.0.4 (419.3) My guess is that Safari only support animated GIFs if th

  • Deficit of EKLA-LWSBB

    Dear Gurus; I have the next issue when I tried to make a material document cancellation with movement type 108, I used inbound and outbound deliveries scenarios. The system show me the next messages: Error: Deficit of EKLA-LWSBB 22.750 TS : 202031 XK

  • EXIF date and time data issues

    I have several thousand images shot during the same trip, on two different cameras. The date and on one of the cameras was not correct. I corrected the date on the images using PhotoInfo 2.0.1 The problem is that Bridge CS3 is not recognizing the new

  • Import in PSE 13 using CanoScan 9000F under Windows 7 64 Bit

    I have installed the new PSE 13 on my Windows 7 64 Bit PC. I use a scanner CanoScan 9000F, the most actual driver is installed (ScanGear). But the scanner doesn't appear in the list when selecting "Import" in PSE. My last (also still installed) PSE V