Auto Drag-and-Drop after execute the exteral program

I execute a program and provide the pathname.
The external program support Drag-and-Drop and also Open files by clicking Menu.
I have to open file after executing the program.
Is it possible to do that?

>
What actually happens when you browse to a file of type 'TS video' (e.g. using Windows Explorer) and double click on it?>It* opens in VLC media player here, my default player for AVI's.
>
Does it open in the 'software that find the TV station information'?
If not, it probably means that filetype is not 'associated' with that program. If that is the case, it will not work using the Desktop class (as I understand the Desktop class).
What happens when you try to Desktop.browse(URI) to the video?>
>
[http://lmc4b5b.com/temp_stop/123322113213.avi] >
* this file..
>
It seems to be no response.....>That seemed odd, since Desktop.browse() throws a whole mess of exceptions if it cannot do what you ask for. This is the output I got here, for both browse() and open().
Exception in thread "main" java.io.IOException:
  Failed to open file:/C:/.../123322113213.avi.
  Error message: The parameter is incorrect.
  at sun.awt.windows.WDesktopPeer.ShellExecute(WDesktopPeer.java:59)
  at sun.awt.windows.WDesktopPeer.open(WDesktopPeer.java:36)
  at java.awt.Desktop.open(Desktop.java:254)
...So - I was wrong in thinking any double clickable file would open in the correct program using Desktop. That is a pity.
On a side noted, related to exec().
Can you ..
a) launch the program from the command line?
b) launch the program form the command line, specifying a file to work with?
e.g.
C:>program path/to/the.avi
If so, why not simply add the file name as an argument to exec()? Or indeed (since I notice you are willing to use 1.6) swap the 'exec()' for ProcessBuilder - introduced in 1.5.

Similar Messages

  • Can't drag and drop after update

    can't drag and drop after update

    hi Dustin, maybe with a bit more info someone will be able to help with this:
    what Mac OS System version are you using?
    what is it you are 'dragging and dropping'? : Is this drag and drop of text in InDesign? Or are you dragging and dropping from the Mac OS (e.g. a file from a folder) into InDesign?
    If you are referring to drag and drop from OS into InDesign: I'm thinking this 'might' be a Mac OSX issue. If you look over at https://discussions.apple.com/index.jspa there seem to be plenty of issues with drag and drop across different OS versions.
    Next time it stops working whilst you are in InDesign, does it still work in other programs? That is one way of determining if this is caused by InDesign or the operating system. If it is the OS, my guess is that it stops working in other applicaitons as well.
    Hope this helps,
    Cari
    twitter: carijansen
    facebook: carijansen.au

  • HT5934 My iMac won't let me drag, and drop anything from the desktop to other files on the desktop, or anywhere else.

    My iMac won't let me drag, and drop anything from the desktop to other files on the desktop, or anywhere else.

    This procedure is a diagnostic test. It makes no changes to your data.
    Please triple-click anywhere in the line below on this page to select it:
    ls -@Oaen | pbcopy
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in 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 by pressing the key combination command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    Wait for a new line ending in a dollar sign ($) to appear below what you entered.
    The output of the command will be automatically copied to the Clipboard. If the command produced no output, the Clipboard will be empty. Paste into a reply to this message.
    The Terminal window doesn't show the output. Please don't copy anything from there.
    If any personal information appears in the output, anonymize before posting, but don’t remove the context.

  • Drag and Drop Functionality within the SAP Portal

    Does anyone know if SAP Netweaver Portal 6.0 sp18 supports drag and drop technology.  A good comparison would be Google where a user can drag iViews around and place them where they would like.
    We are trying to build something similar to Google Gadgets with iViews and we would like our users to be able to add, remove, drag, and drop them in the Portal.
    Has anyone done something similar to where I would be able to leverage them for further questions.
    Any help is greatly appreciated.  Thank you.
    Jason

    Hi
    Were you able to find away of using the drag and drop functionality?
    I am wanting to use a similar functionality to Yahoo where people can just drag the iViews they want into the page and saving their personalised settings.  I am unable to find information as to what Portal release supports this functionality and how it works.  Would you be able to help?
    Many thanks
    Jag

  • I can't remove icons from the dock, they don't move at all when I try to drag and drop them off the dock

    I can't remove icons from the dock, they don't move at all when I try to drag and drop them off the dock any help out there?

    Restart and see if that solves your issue.

  • ADF Drag and drop event inside the single af:treetable

    Hi Experts,
    I have a af:treeTable in my ADF web project and i would like to implement the drag and drop event to the same tree table for supporting my sample test project use case. Currently i am facing some issue to get the source tree node and the destination tree node of the drop and drop event inside my drop listener method. How can i get those object since i need to perform some business operation inside the listener. Please note that i am not using ADF BC4j in my project. The service layer is implemented as EJB and it's being called from the backing bean.
    Looking forward some guide lines to resolve this issue from you experts.
    Thank you.

    It's not a perfect solution, but a work in progress that i'm currently using in my backing bean:
    private RichTree navTree;
    private void exitContainers() {
    boolean success = false;
    while (!success) {
    try {
    navTree.exitContainer();
    } catch (Exception e) {
    success = true;
    private void clearDisclosedRowKeys() {
    if (navTree != null && navTree.getDisclosedRowKeys() != null) {
    RowKeySet rks = navTree.getDisclosedRowKeys();
    Iterator rksIter = rks.iterator();
    while (rksIter.hasNext()) {
    exitContainers();
    List<Integer> rowkey = (List<Integer>) rksIter.next();
    List<Integer> newRowkey = new ArrayList<Integer>();
    for (Integer row : rowkey) {
    if (navTree.isRowAvailable(row)) {
    navTree.setRowIndex(row);
    navTree.enterContainer();
    newRowkey.add(row);
    } else {
    // Row is no longer available
    break;
    if (newRowkey.size() == 0) {
    rks.remove(rowkey);
    } else {
    rowkey.clear();
    rowkey.addAll(newRowkey);
    Whenever you make a 'delete' or 'move' in the tree, call clearDisclosedRowKeys(), it will remove anything that's no longer valid, so your tree won't collapse, and you won't get the error anymore.
    I took out my logging and debug statements, but essentially this just gets all the rows, checks to see if they're valid, and if so creates a new RowKeySet with the valid rows in it.
    Of course make sure you have the setNavTree and getNavTree accessor's created and that they're bound in your JSFF, otherwise navTree will always be null.
    I haven't yet found a way to 'nicely' find out if you're at the top level container, so i'm relying on an Exception to occur to give me that information, if anyone knows a better solution please feel free to share it.

  • How do you drag and drop samples in the ex24 on pro x now that the edit button next to the option tab is no longer there?

    how do you drag and drop samples in the ex24 on pro x now that the edit button next to the option tab is no longer there?

    Well, it's aggravating seeing foolish limitations to the program. Having some experience in education, offering a professional program in a limited version is condescending to the user and has never been proven to help students move forward. Plus, some of the choices made to keep Logic simple are confounding... "removing the edit button on the EXS24"?  That's silly!  

  • I recently attempted to save my Notes in Macmail by dragging and dropping them into the Notes folder. On my most recent sync all Notes were deleted. Is there a way to undo this?

    I recently attempted to save my Notes in Macmail by dragging and dropping them into the Notes folder. On my most recent sync all Notes were deleted. Is there a way to undo this?

    Garret,
    is your movie in your backup folder a Quicktime movie? Then probably only have the Quicktime wrapper in your backup folder, but not the referenced media in the file fork of the movie. If you see the full quality movie in iPhoto in QuickTime player, don't drag it from the browser to the Desktop, but use "File > Reveal in Finder > Original File" to show the movie in your iPhoto Library. Select the Movie when it is revealed and ctrl-click it to open it in Quicktime Player.
    Export it from Quicktime Player with "Export to" and share it to iTunes. This way it will be converted to a .mp4 movie that embeds the missing resources.
    You can drag the converted movie from iTunes to the Desktop or share it using to Media Browser to other applications.
    Regards
    Léonie

  • GarageBand won't let me drag and drop songs into the timeline.

    GarageBand won't let me drag and drop songs into the timeline.  It did before, now all of a sudden it won't... anyone know why?
    I am dragging them from iTunes, and it has never been an issue before.  I have used AAC, MP3, and AIFF before and never had an issue.
    Is there a setting possibly that I need to change?

    Same with me, Lion is a cool OS but the updates iTunes has nothing but problems. I can't even drag song to my desktop. You can try finding the song through iTunes music folder but the song I wanted wasn't there. To get there look at this artical http://support.apple.com/kb/ht1391. to help you find that song.

  • I reinstalled Lion and now I cannot drag and drop photos from the internet to my desktop

    My Macbookpro was giving me a startup disk full message so I emptied out my photo library and itunes library to an external drive. By then I think the damage was done because I was still encountering the spinning color wheel all the time. On the advice of he Genius bar I reinstalled Lion. It worked well except for this one glitch. I can no longer drag and drop photos from the internet. Any ideas are appreciated. Thanks.

    That sounds like a browser issue so what browser and what web sites?

  • I used to be able to copy or drag and drop links from the address window. Now with the update, only the address is copied or dragged not the link. (Says something about not giving site information). I want to be able to drag and drop or copy links.

    Question
    I used to be able to copy or drag and drop links from the address window. Now with the update, only the address is copied or dragged not the link. (Says something about not giving site information). I want to be able to drag and drop or copy links.

    To be more precise, you can setup a JComponent or JPanel on top of your JavaFX nodes that has a TransferHandler that can convert the (AWT/Swing) images dragged to the app to JavaFX image and then insert it into the underlying node.
    As for the file chooser itselft: ListView and the JavaFX composer can allow you to create one quite easily. TreeView can aslso be used to a lesser extend (still a big buggy). For both of these, there are small bugs in the Cell API that may (or may not) prevent from displaying a proper thumbnail in the cells.
    You can also use a regular JFileChooser if you do not mind the dialog box having a different LnF from the rest of your application.

  • If i use Ps5 the order lasso, drag and drop or letters the win vista crashes down. Can anybody help?

    If i use PS5 the order lasso,drag and drop or letters the win vista crashes down. Can anybody help me?

    Now that I'm looking at it, I don't have it... but I still have the problem:(. I rebooted the PRAM, I cleaned my permissions, run utilities checks, nothing helps, I'm at the end of my wits. I called apple - all I got was bad attitude... I don't know what to do, this disfunction makes it impossible for me to work....
    does anybody know what I could do to fix this issue?

  • I reinstalled iPhoto 9.1 and now I can't drag and drop photos to the desktop.  The photos have a grayed out flag in the upper left corner and a pull down menu in the bottom right. Please help.

    I reinstalled iPhoto 9.1 and now I can't drag and drop photos to the desktop. The photos have a grayed out flag in the upper left corner and a pull down menu in the bottom right. Please help.

    Do you get any error messages?
    Regards
    TD

  • Drag and Dropping Photographs to the desktop

    We're running on a new MacBook, with leopard. - Running 7.1.1 (2008) iPhoto.
    As we've always done in the past, we are able to drag individual or groups of selected photographs directly from iPhoto onto the desktop.
    We've recently uploaded some new photographs into iPhoto 08, using the same camera we've had for years....
    Our older photographs (1month +) are still able to be dropped onto the desktop, for use in other applications, such as photoshop.
    However all of our new photographs WONT. When dragging the older photographs we receive an icon showing number of photographs and a green PLUS (ie, it copies the file, rather than moving it)\
    When doing this with the newer photographs - we get a little NO ENTRY icon, and when letting go after the drag nothing happens.
    We are able to export the photographs from the file menu, however, this is quite a slow process, and we would like to be able to export just by dragging and dropping.
    If anyone could point us in the right direction of a solution, it would be much appreciated.
    Dan

    Daniel:
    What happens when you bring up one of those problem photos in the edit window? Do you see it or some blank window, either white or gray? You can try the following:
    Run iRepair on your iPhoto LIbrary package as follows:
    1 - download iRepair and launch.
    2 - click on the lock and enter your admin password
    3 - click on the Select button and navigate to and select the iPhoto library.
    5 - set the owner to your short admin name with read, write and execute privileges.
    6 - set group to staff or the current group with read, write and execute privileges
    7 - set others to read only
    6 - click on the Apply button.
    See if that will help.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Why can't I drag and drop images from the browser into other programs?

    Ever since I upgraded to Firefox 4 (even after I upgraded again to Firefox 5) I have been unable to drag images from the browser into other programs, including MS Paint and IcoFx. I receive an error message stating that the file (the address given lists it as being located in the temporary files folder) cannot be found.
    Prior to this I had always been able to conveniently drag and drop images for easy editing without having to save first and then open them. This feature is important to me, as I work with graphics very often, and is still available in Chrome and Internet Explorer. I love Firefox though, and hope that there is something I can do to fix the problem.

    I had this problem on Windows 8.1.1 and iTunes 11.2.2.3
    To resolve it from within Itunes I did :  Edit, Preferences, Sharing.
    I took the tick out of "Share my library on my local network"
    Click OK.
    Closed iTunes/
    Reopened iTunes and I can drag and drop.
    I went back into Edit, Preferences, Sharing and put the tick back and clicked OK.
    Works fine now.

Maybe you are looking for