How To Open A Folder of native system

Hello Frnds can any body guides me how to open a folder of my system.actually i am using adobe air 2.0 for making a simple application in which i send and recived files.I simply uses File Class for extarct the nativepath of file.now i have path where my downloaded file stored.so Please tell me how to open the file or File Containg folder similary sevral aother web application does.
Thanks In Advance
    Vineet Osho

For opening the file itself, AIR 2.0 gives you a method in the File class called File.openWithDefaultApplication():
openWithDefaultApplication
method
public function openWithDefaultApplication():void
Language Version:
ActionScript 3.0
Runtime Versions:
AIR 2
Opens the file in the application registered by the operating system to open this file type
The method description goes onto to talk about restrictions on file types in different operating systems.
As far as opening a directory and performing some action on its contents, you can use the method File.getDirectoryListing(). This returns an array of File objects. You can test each File object with the isDirectory property, if you are interested in finding and dealing with sub-directories.
Bill

Similar Messages

  • I do not know how to open a folder, file !

    Hi  everyone,
    I do not know how to open a folder, file or
    a JavaScript  program in photoshop cs4?
    can you tell me how to proceed
    Thank you

    thank zhpingw
    the script not function unfortunately
    I had to go  through to have a flash file. swf
    I put in a  url link
    file. swf I was put in the palette and  its works!
    Download This file tutoweb. link . swf
    requete  content  for Google find tuto a Photoshop !
    Warning you change to script Google.fr  for Google.uk  in file .fla
    Place to swf in your palet of configurator
    Enjoy
    http://rapidshare.com/files/390041665/Flash_CS4.rar

  • How to open file in their native application

    How to open file in their native application form web browser?
    if associated .txt file should open in editplus then from web browser if I try to open .txt file it should open in editplus rather then open in notepad(default), If on other computer if I associate .txt file should open in word, it should open in word. I am using Tomcat Web Server.

    that's nothing you could influence from a servlet or jsp.
    all you could do is specifying the content type of your response.
    Next you might hope that the client requesting your content uses a browser that relates the given content type to a special application (e.g. "text/plain" -> editplus or notepad or kedit or word or ...)

  • Urgent... how to open particular folder by using file tag

    Hi,
    I want to select a particular folder using file browsing option in html. why i want this is : i have to update the resumes located in a particular folder. so every time i am opening that folder which is a subfolder.
    ex: c:\dir1\dir2\dir3\Resumes
    Eveevry time , i have to go to C -> dir1->dir2-->dir3 then Reusmes
    what i need is when i click the browsing button, i want to get the Resumes folder directly. Is there any option to do that one by setting value to file tag.
    thanks in advance
    my mail id [email protected]

    Hi venkatanarayanareddy (if that is your real name),
    You say you want to use file browsing option in html, which makes me guess this functionality is through a web page. Can you give us a bit more information about how this works as it's not abundantly clear how it relates to Java (JSP?).
    On another note (and I woke in customarily pedantic mood this morning), there's no need to post your e-mail address since [in the name of sharing the knowledge and not keeping answers to questions secret between the questioner and respondant] you will find responses posted here in the forum.
    Chris.

  • Urgent.. How to open Particular folder direcly using File Browse tag

    Hi,
    I want to select a particular folder using file browsing option in html. why i want this is : i have to update the resumes located in a particular folder. so every time i am opening that folder which is a subfolder.
    ex: c:\dir1\dir2\dir3\Resumes
    Eveevry time , i have to go to C -> dir1->dir2-->dir3 then Reusmes
    what i need is when i click the browsing button, i want to get the Resumes folder directly. Is there any option to do that one by setting value to file tag.
    thanks in advance

    Hi venkatanarayanareddy (if that is your real name),
    You say you want to use file browsing option in html, which makes me guess this functionality is through a web page. Can you give us a bit more information about how this works as it's not abundantly clear how it relates to Java (JSP?).
    On another note (and I woke in customarily pedantic mood this morning), there's no need to post your e-mail address since [in the name of sharing the knowledge and not keeping answers to questions secret between the questioner and respondant] you will find responses posted here in the forum.
    Chris.

  • How to open a folder in Terminal

    Folks
    Sorry, but I'm 'way out of my depth dealing with unix, but I know it's mighty interesting, and I just wish I had time to learn it, but...! Here's my need:
    My Trash is so full it won't open just by mouse click! I need to check it before I Empty Trash. What is the command/string I need to open the folder, please?
    Anybody help me, please?
    Regards
    Roy

    You can actually, should you desire a more GUI experience, drag-and-drop a folder onto Terminal.app, which will accomplish the same task as Unix's cd.
    That is not correct.
    Dragging a folder to a terminal window is in no way related to cd.
    All that happens is that the path to that folder is written out, as if you'd typed it.
    This does not cd to that directory, it doesn't even imply you will cd to that directory after pressing return (unless you manually typed cd before you dragged the folder to the terminal, but the cd is entirely up to you - you might prefer to ls or even rmdir that directory, which are just as valid uses for the drag-and-drop).

  • How to open a folder using Actionscript 3.0

    Hi,
    I have been trying for about a day to get this to work, but nothing seems to, so i'm finally going to ask.
    So far, code wise, i have this:
         open_btn.addEventListener(MouseEvent.CLICK, OpenButtonHandler);
         function OpenButtonHandler(event:MouseEvent):void
    From there, what code gets flash to literally open up a folder such as My Documents? The end use of this code will be for a CD, whereby the flash .exe file will call up folders from the disc through clicking buttons. Also, please make me awear of under what situations the code may not work. At the moment, i am writting the .exe file to the desktop, and trying to open a folder on my desktop through the application.
    Often times, everything i have tried so far, either causes Syntax Errors or no errors, but just doesn't work.
    Thanks,
    Ricky
    EDIT:
    Primarily in Windows, but if you know the Mac way too, that could be useful.

    Is there no way to get buttons to open up explorer folders specified? It seems people are managing it somehow, but i can't do it. Others aprantly can do it using this code:
         on(release){
          getURL("flash",_black);
    , but that's actionscript 2, not 3 which i am using. Surely actionscript 3 can do this and possibly even better seeing as it is a higher version?
    I also found another bit of code that was like this:
         fscommand("exec","explorer\dirname");
    ,but again that didnt work. However, in another way it did because flash reported no errors when it was run, but nothing happened when the button was clicked.
    The only other thing i tried was this:
         var request:URLRequest=new URLRequest("C:\\");
        navigateToURL(request);
    The problem with that was that it tried to open the internet as expected unfortinatly, not windows explorer to open the folder C:\\.
    Directing users to the appropiate locations on the disk wasn't really what i needed thanks for the suggestion though.
    EDIT:
    That last idea worked, sorry, but it opened in the default web-browser instead of using explorer, so i'm half way there. Is it possible to tell it what application to use to open the directory, so that way i can specify explorer?

  • How to open .caj file under Yosemite system?

    Caj viewer is for opening documents from Chinese Academic Journals. After updating my system to Yosemite, Cajviewer software is no long be able to installed. which means I cannot read any Chinese Journal articles. How can I solve this problem? Please help!!

    Can you explain why it cannot be installed?
    If it is because it is from an Unidentified developer, then just right-click on the Installer and select Open. It will then confirm you wish to open and install it.

  • How to open old website on new system

    Have loaded 10.8 from 10.6 and trying to access and transfer an old iweb 08 folder and site to the new iweb. don't know how to import or where to put. Once I get it there - any advice about an ftp client?

    In Lion and Mountain Lion the Home/Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    To open your domain file in Lion or Mountain Lion or to switch between multiple domain files Cyclosaurus has provided us with the following script that you can make into an Applescript application with Script Editor. Open Script Editor, copy and paste the script below into Script Editor's window and save as an application.
    do shell script "/usr/bin/defaults write com.apple.iWeb iWebDefaultsDocumentPath -boolean no"delay 1
    tell application "iWeb" to activate
    You can download an already compiled version with this link: iWeb Switch Domain.
    Just launch the application, find and select the domain file in your Home/Library/Application Support/iWeb folder that you want to open and it will open with iWeb. It modifies the iWeb preference file each time it's launched so one can switch between domain files.
    WARNING: iWeb Switch Domain will overwrite an existing Domain.sites2 file if you select to create a new domain in the same folder.  So rename your domain files once they've been created to something other than the default name.
    OT

  • How to open a folder inside a folder, without closing the first?

    I can't find a way to open a sub-folder, inside a mainfolder, without closing the main folder.
    What's even worse, if you hold "option" or "command,"  (old OS9 muscle memory kicking in) it opens the new folder but wipes-out the ability to use the back button!  So then if you needed that main folder open, and it's deep inside some chain, you have to go searching for it again.
    So, is there any fix for this?
    <Edited by Host>

    Problems such as yours are sometimes caused by files that should belong to you but are locked or have wrong permissions. This procedure will check for such files. It makes no changes and therefore will not, in itself, solve your problem.
    First, empty the Trash, if possible.
    Triple-click anywhere in the line below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 -o -acl \) 2> /dev/null | wc -l
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    The output of this command, on a line directly below what you entered, will be a number such as "41." Please post it in a reply.

  • How to open files in their native fromats in a browser

    Hi,
    i have jsp file which contains pure java script functionality, from this page i want to open local files. the same i can open with following code as html page but it is not opening when i place in the tomcat server,
    code
    function loadPage(id)
              if(id == 'launch')
                   document.getElementById("docframe").src = "C:\\Documents and Settings\\3041\\documents\\01\\pdf\\DOM.pdf";
              if(id == 'prev')
                   document.getElementById("docframe").src = "C:\\Documents and Settings\\3041\\documents\\01\\doc\\HR-007_Leave.doc";     
              if(id == 'next')
              document.getElementById("docframe").src = "C:\\Documents and Settings\\3041\\documents\\01\\excel\\sample.xls";                    
    <table cellspacing="10" cellpadding="0" border="0" width="100%" height="100%">
         <tr valign="top" height="5%">
              <td align="left">
              <input type="button" id="prev" name="prev" onClick="javascript:loadPage('prev');" value="Previous">
    </td>
              <td align="right">
              <input type="button" id="next" name="next" onClick="javascript:loadPage('next');" value="Next">
              </td>
         </tr>
         <tr valign="top" height="95%">
         <td colspan="2">
              <iframe id="docframe" src="javascript:pageCall('launch');" width="100%" height="100%"></iframe>
              </td>
         </tr>
         </table>
    please help me in getting out of this problem

    What is it you are trying to do???
    The browser open files with their defaults programs, because they make use of the header values such as content-type. it seems that you are using DOM to archieve that, how do you expect that to work??
    Something is not right.
    MeTitus

  • How to open the files from the system

    Hai to all
    Here I am doing a project where I have to put backup word files on the browser . I have created an applet with browse , attach and done (Buttons) . By clicking browse I have to get the open dialog box so that i can give the path easily . Any one can help me in that action event.

    If you're calling FileDialog from an applet via a browser you will throw a security exception (check the browser's Java console). As mentioned in my previous post unless your applet is digitally signed opening a FileDialog is not possible (however it is possible using appletviewer as that tool considers the applet "trusted").

  • How to open default browser of the system using swing

    Iam doing a project in swing iam havina a problem actually if i click click a button on the top of the frame it has to open an asppage or html page in default browser. Please if any body can help me.if anybody having the code or solution please send me.

    I think, but never tried, thatexecuting a html file will automatically ask the OS to open the defaulkt browser. This is like executing a *.doc file will open Word
    o execute a file, you need to use the Process class. Usually, we do something like this
    Process p = Runtime.getRuntime().exec( your command)

  • How do I open a folder and update web page on different computer.

    Hi All,
    I started my iweb page on my powermac at work and have uploaded the pages online. I have saved the page to a folder and now want to work on the updates at home on my powerbook and can't seen to figure out how to open the folder. I've used QuickTime VR photos and the powermac at work is struggling and is sluggish so that's why I want to use my powerbook. In the file column I see "Publish to .Mac, All to.Mac, Folder but no open folder. Help
    Thanks
    Mark

    in order to update a web page on a different computer you're going to have to move the entire site over to the other computer. to do so you need to move the "domain" file that iweb uses.
    The “domain” file is hidden away in <home>/Library/Application Support/iWeb/domain.sites.
    unless you've already moved it to another location on your hard drive.
    there's more detailed info in this article:
    http://docs.info.apple.com/article.html?artnum=303045
    once you update/change the page you want to update and publish, you'll have to move that domain file back to the other computer if you want to use the 'first' computer again to edit your site. if you just want to continue using the 'second' computer then you don't need to move the file back (obviously)
    hope this helps.

  • Trouble opening a folder

    I have a director movie that has the script below to open a folder on the system (view in explorer on windows and finder on a mac) to view its contents. The script works when running in director on windows. I have not tried it on a mac yet. When I publish it, the script just gives an error on windows. Again I have not tried on a mac, but I need it to be cross platform.
    Any help would be appreciated.
    SCRIPT:
    on mouseUp me
    tPath = _movie.path & me.pFolder
      tApp  = getOSDirectory() & "\explorer.exe"
      if ( offset("Windows", _system.environmentProplist.platform) = 0 ) then tApp = "finder.app"
      _player.open(tPath, tApp)
    end
    Thank you

    If you search this forum, or the 'Basics' forum, you'll find a couple of instances of exactly the same question very recently. Try searching before posting Also, since you're already using Buddy API, you might consider using it for opening folders - again see the recent threads.
    Your current version is probably failing because getOSDirectory() is a function/method of the FileIO xtra and you didn't make it available to your projector.

Maybe you are looking for