Open Application with files arguments

I want to create a Finder Service thats launch 7zX Application passing the selected files and folder as parameters. 7zX application works dropping files/folder on his icon, can I simulate that action with appleScript?
7z compress algorithm can be called from terminal, but I what to use the 7zX graphical interface.

Camelot wrote:
You should be able to do it via something like;
tell application "Finder" to open file "path:to:your.file" using application "7zX.app"
Thanks to Reply.
I tried that Script:
set fileName to "/Users/mario/Desktop/aew.PNG" as POSIX file
tell application "Finder" to open file fileName using application "7zX"
but doesn't work.
7zX send a pop up with message
This software only works through drag & drop.
and AppleScript Editor with Error
error "Finder got an error: Can’t make application \"7zX\" into type application file." number -1700 from application "7zX" to application file
To test that idea I changed 7zX to Preview but AppleScript Editor send me the same Error.
(Sorry about my english)
Message was edited by: MarioBajr

Similar Messages

  • How to save a list of open applications and files?

    Many times I need to turn off my computer but I have many things open. A friend tells me to use <sleep> but sometimes I have to still turn off my computer for a reason. Is there a way to create a list of all the open applications and files that when I turn on my computer I know where I last worked? Maybe there is a way to do this automatically without writing down on paper? My english is not the best and I am sorry. Thank you.

    Thank you Smokerz and ademsemir. I like alot both ideas that you have. Sometimes I will use one and sometimes I will use the other one. Maybe I can explain better what I am thinking to do. If I have 4 applications that I am using and different files in applications I hope to make a list of everything. I use Excel, Word, Preview, and Mail all the time. If I leave open emails when I close Mail then the same emails will open when I run Mail the next time. That is perfect for me. Excel, Word, and Preview only show the recent files I use if I close the applications and use them later. If I use shiftcommand4 it helps me alot because I click on Window and take a picture of the open files. I like shiftcommand3 also it helps if I use Expose and take a picture of the screen but the files with long names will cut off.
    I try also Activity Monitor and Force Quit because they show me applications that I use but they do not show the files. If I have alot of things open in Firefox that I will use again but do not have time I use Bookmark All Tabs.
    It is ok if you do understand what I ask. What you told me will help me. Thank you.

  • Ipod Nano 5th GenerationWindows xp.  My nano no longer opens automatically with file options menu.  Trying to import priceless videos of my daughter  from ipod to computer so I run it and get these results:  My computer/ipod/dcim/000apple and 75 IMG.DAT

    Nano 5th GenerationWindows xp. 
    My nano no longer opens automatically with file options menu when I connect it to my lap top.  Trying to import priceless videos of my daughter  from ipod to computer, However,  when I run it I get these results: I click onto  My computer/ipod/dcim/000apple and 75 IMG.DAT files come up.  Now I am almost sure those files shouldnt be on there.  If my memory serves me corrrectly the dcim folder is where one should be able to find video recording made with their iopd?If there is a way to import these videos without having to reset my ipod and lose precious videos please please let me know? HELLLLLLP

    Try: http://discussions.apple.com/thread.jspa?threadID=743515&tstart=15

  • Preferences for Open Application With is not working (although preferences are saved/appearing. Thoughts?

    Although the preferences for using certain applications to open downloaded files is set and saved (it still appears when accessed), the preferences are either not utilized automatically (for most files) or remembered at all for others (docx files). So, each time I try to download/open a docx file, I have to "browse" and tell firefox to use microsoft word, even though the preference is already set. I see that some people are having trouble with preferences being deleted, but that is not that case here. Thanks!

    Solved using STEP/OPTION 2 "resetpassword" in this post:
    why do i keep loosing my settings and homepage setting in safari
    I believe my problem started occurring after my system became unresponsive while the monitor was transitioning from Laptop display to external display. Safari locked up. I had to reboot the system.

  • Cannot open application server file even if it exists...

    Hello Experts,
    I cannot open a file residing in one of the directories in the application server
    using command OPEN DATASET. The file is there but OPEN DATASET gives me a value of 8
    in SY-SUBRC. Any solutions for this?

    ok .. basis need to give u the permission.
    Before opening dataset check file authority with FM AUTHORITY_CHECK_DATASET
    CALL FUNCTION 'AUTHORITY_CHECK_DATASET'
          EXPORTING
            activity         = 'WRITE'
            filename         = filename
          EXCEPTIONS
            no_authority     = 1
            activity_unknown = 2
            OTHERS           = 3.

  • [solved] Xdg-open to open everything with file manager

    I like to screw around with my system constantly and xdg-utils is an annoying utility to have to constantly fiddle with. I know there is a way to get xdg-open to open everything with the default file manager, but my google fu has failed me. As of right now I use pcmanfm, and I'm fairly certain I'm sticking with it for the long haul.
    Last edited by shamanstk (2010-05-11 17:57:15)

    Mr.Elendig wrote:perl-file-mimeinfo installed?
    This helped with a xdg-open anomaly. Before installing perl-file-* packages, pcmanfm used to open everything in firefox (which is set as default browser in xdg-open). Thought could be helpful to anyone having problems with applications using xdg-open.
    Last edited by shemz (2010-08-03 15:02:52)

  • Open application with administrative privilege

    Can anyone point me to resources on how to execute a command in Java to open an application with administrative privileges - similar to the windows runas command - but will accept the login and password in the command?

    First figure out how to do it at the command line (it's beyond me). Then use Runtime.exec() to run the command. You'll have to use the Process's output stream to respond to the password prompt, and it's possible that might not work if Windows isn't prompting on stdin.

  • Http post from an application with file attachment

    Hi ! I didn't know where else to post this message...
    I'm trying to make a HTTP POST from an application and upload a file with it. I have no problems with the posting, just that I haven't got any ideas how to get the file uploaded as well. I've been reading loads of examples regarding the topic, and searching older posts the forum here, without any help.
    Here's the method i'm using:
                   // open connections
                  URL url = new URL ("TheURL");
                   URLConnection urlConn = url.openConnection();
                              // We do input & output, without caching
                   urlConn.setDoInput (true);
                   urlConn.setDoOutput (true);
                   urlConn.setUseCaches (false);
                              // multipart/form-data because we want to upload a file
                     urlConn.setRequestProperty ("Content-Type", "multipart/form-data");
                  // Open output stream
                     DataOutputStream printout = new DataOutputStream (urlConn.getOutputStream ());
                  // Set the actual content
                     String content = "upfile=" + System.getProperty("user.dir") + "\\file.ext&";
                       content += "other_key-value_pairs";
                  // write the data to stream, and flush it.
                     printout.writeBytes (URLEncoder.encode(content));
                   printout.flush ();
                   printout.close ();
                   // Get the response.
                     DataInputStream input = new DataInputStream (urlConn.getInputStream());
                   FileOutputStream fos=new FileOutputStream("postto.txt");
                   String str;
                     BufferedReader bufr = new BufferedReader(new InputStreamReader(input));
                  // Write response to outputfile
                     while (null != ((str = bufr.readLine()))) {
                         if (str.length() >0) {
                         fos.write(str.getBytes());
                         fos.write(new String("\n").getBytes());
                   input.close ();Now, the response here I get from the url i'm posting to is "Failure, no data-file". I've tried many diff methods of writing the file to the stream, but always get the same result.
    I need to file attached like it would be when using a HTML form's <input type="file">.
    Please help ! This is getting really urgent !

    String content = "upfile=" + System.getProperty("user.dir") + "\\file.ext&";
    content += "other_key-value_pairs";
    printout.writeBytes (URLEncoder.encode(content));
    printout.flush ();
    printout.close ();Actually, what this does is create a request like:
    GET /path/to/file/script.language?upfile=/home/user/file.ext&other=params HTTP/1.1
    Content-Type: multipart/form-data
    -- And other HTTP params --
    The file is not actually appended to the request.
    I really don't know how Java handles the file upload, but you could do it by hand, like so:
    public static void doFileUpload(String url, String filename, Hashtable params) throws IOException {
        // Construct the request
        String boundary = "----------------------mUlTiPaRtBoUnDaRy";
        String request_head = "POST " + url + " HTTP/1.0\r\n" +
                                         "Content-type: multipart/form-data; boundary=" + boundary + "\r\n";
        String request_body = boundary + "\r\n\r\nContent-disposition: form-data; name=\"upload\"" +
                                         "\r\n\r\n";
        BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(filename)));
        int b = -1;
        while((b = in.read()) != -1) {
             request_body += (char)b;
        in.close();
        Enumeration keys = params.keys();
        while(keys.hasMoreElements()) {
            String key = keys.nextElement();
            requst_body += "\r\n" + boundary + "\r\n\r\nContent-type: form-data; name=\"key\"\r\n" +
                                    (String)params.get(key);
        request_body += "\r\n" + boundary + "--\r\n";
        int length = request_head.length() + request_body.length() + "Content-length: \r\n";
        String req_length = "Content-length: " + (length + new String("" + length).length()) + "\r\n";
        Socket socket = new Socket(url,80);
        PrintStream stream = socket.getOutputStream();
        stream.print(request_head + req_length + req_body);
        // And now an option to read the response, I will omit that...   
    }Note: I have not tested this code, just wrote it up out of memory. If it does not work, it will propably need some small fixes.
    Tuomas Rinta

  • How to open applications with Automator?

    How would I got about opening, say, Contacts, Mail, etc using Automator? I then will want to map it onto F13-F19.
    I'll also want to open specific Web pages by pressing a Fn key.
    FWIW, with the method described in this article I can open Contacts but then it tries to open specific contacts (I think) and results in a dialog I have to dismiss. I just want to open the app.
    TIA,
    David

    Sorry, I meant to provide the article's URL: http://www.makeuseof.com/tag/fkeys-launching-applications-finder-items-mac/

  • Opening application with no Address Bar

    Hi,
    We are developing an external WebDynpro application that should start-up with no Address Bar and Standard Buttons Bar.
    Does anyone has a solution for running the application/browser with no Address Bar and Standard Buttons Bar.
    Thanks in advance,
    Aviad

    Hi,
    byte[] pdfContent={here document is created i.e returned from RFC};                                  
    IWDCachedWebResource pdfResource=WDWebResource.getWebResource                  (pdfContent,WDWebResourceType.PDF);
    IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.getAbsoluteURL(),"");
                   window.removeWindowFeature(WDWindowFeature.TOOL_BAR);
                   window.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
                   window.removeWindowFeature(WDWindowFeature.STATUS_BAR);
    Regards,
    Vijai

  • Who to close an open application with Ios7 ?

    Why sometimes in ios7.0.2, I can't closed an application ? I use to do the same then before, double touch on home button and stay my finger on the app, may be they change that ???

    Close inactive apps
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe the app's windows upwards to close
    3. The app will fly off the screen
    http://support.apple.com/kb/ht5137

  • Gnome places menu opens with file-roller

    In the gnome places menu - all works fine except when trying to open recently used items - which open up with file roller instead of the proper app. The same thing happens when trying to download OOo docs - I can't open them directly but have to save them first. I've search through gconf-editor settings, have all my 'properties/open with' etc. all correct in nautilus and for individual items, but no luck.
    Any thoughts?

    Thanks - I read this already though, but it doesn't work. Actually the only things in recently used docs that don't open, and the only things I can't open automatically when downloading (ie I have to save them first and open them separately) are OOo docs. But I have OOo docs set to open with OOo - so its a conundrum!

  • Open application gives error code: wrong application association?

    Hello All,
    I had a trial M$ Office. I deleted this. Now i installed a regular version of Office.
    The strange thing is that if i open a word document, the finder still wants to open with the trial version. If i choose: 'always open application with' and point to the new version, still no luck.
    Seems the finder can't handle two versions(even if one is deleted) of the same app?
    Any help very welcome!
    Fré
    Macbook Pro   Mac OS X (10.4.8)  
    Macbook Pro   Mac OS X (10.4.8)  

    Thanks for your answer, Mylenium.
    I understand that Acrobat_com supports another program on my netbook, that I haven't used untill now.
    Acrobat_com will update itself when I use that other program.
    I think Acrobat_com is one of the programs, which is installed on the hard disk with a lot of other programs by Asus.
    I will check my assumption by contacting Asus technical support.
    Theo A&K

  • The most resent Firefox update has a conflicting application with adobe and all pdf files have to open firefox before opening

    My issue started with downloading the most current Firefox. Firefox opens multiple empty tabs (20 -30 or more) every time I use adobe reader. I changed the action for a content type to show adobe reader. It was showing open the file in adobe in Firefox. I uninstalled and reinstalled Firefox twice and this did not work. I uninstalled Adobe Reader and Air but could not uninstall Adobe Flash Player because of a conflicting Application with Firefox. I then uninstalled Firefox and was able to uninstall Adobe Flash Player. I reinstalled Adobe Reader only and then Firefox. I no longer have multiple empty tabs opening up but each time I open a pdf file, Firefox has to open as well. I am operating on Windows 7 Home edition. Can some one help this is a nuisance.
    Thank you,
    Steve Zalkin

    Try to rename (or delete) the mimeTypes.rdf file in the Firefox profile folder to reset all file actions.
    *http://kb.mozillazine.org/mimeTypes.rdf
    *http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions
    You can check the value of the plugin.disable_full_page_plugin_for_types pref on the about:config page and remove the application/pdf part if present or reset the pref to the default via the right-click context menu if you want to display PDF documents in Firefox with another application (i.e. not the built-in PDF Viewer).
    See also:
    *https://support.mozilla.org/kb/view-pdf-files-firefox-without-downloading-them
    *https://support.mozilla.org/kb/disable-built-pdf-viewer-and-use-another-viewer

  • When I open Firefox the following alert appears: "Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory." There is a solution in the forum but only for Windows based

    When I open the application the following alert appears: "Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory." There is a solution on the support site but only for Windows-based Firefox, and I'm a Mac user. I have plenty of room on my hard disk.
    == This happened ==
    Every time Firefox opened
    == Two days ago, for no apparent reason.

    In Mac OS X v10.7, the $HOME/Library folder is a hidden folder.
    Open Finder and use one of these:
    * Go > Go To Folder (Shift-Command-G) and in the dialog type: ~/Library
    * Open the "Go" menu and hold down the Option key to make the Library appear
    You can also use this command in a Terminal window to remove the hidden flag.
    * Mac HD > Applications > Utilities > Terminal
    * chflags nohidden ~/Library

Maybe you are looking for

  • Help with removing virus? SOCA

    A website called SOCA (Serious organised crime agency) has come up in one of my tabs and i am unable to close it. It is asking for money and I have noticed that I am not the only apple user to have this problem ( I have a macbook pro). Help me close

  • My Macbook was getting hot, and I think I know why.

    I have a week 22 build and it usually runs anywhere from 40-53C, but yesterday it was running in the 60-75c. I started to get a little worried that maybe my computer was taking a turn for the worst. I noticed that even when I was running just a few p

  • Multiple types created on included elements

    I have successfully registered three schemas: a, b and c, where b and c include an element defined in table a. For the referenced element I defined the defTable property to TABLEX. I was expecting that TABLEX was populated when inserting elements in

  • OA FRAME WORK MATERIAL

    Hello friends , I am new to oracle apps field...i didn't have any knowledge about OA Fram work.. Could you please give your valuable suggestions to learn OAF and please provide materials of OAF . Thank you, Durga.

  • Combine multiple drawings into ONE SHEET

    Hello, this is a question on Acrobat Pro, ver 8, using Windows XP. I guess I understand how to combine multiple files into a single PDF-file. However, this morning I happened to see the option mentioned in the subject line. When you go to "Combine fi