HT2488 How to I insert text into a this command in automator wine "Text goes here" this is a perl script

I have spent hours trying to figure this out, automator is the hardest thing to figure out. All I want to do is emulate me doing this
-Open terminal
-type wine
-drag and drop the location of an .exe file
-hit enter
Now this should be easy as all I have to do is do run shell script, insert argument and done, BUT IT DOESNT RECOGNIZE WINE!?!?! Pleas help me.
Let me clarify.
If I make an automator application that that runs the command "wine" and then inserts text into the space after that Then i will be set. But no matter what I do nothing works. If i set the shell to perl and pass input as argument....It doesnt work the $f and $@ stuff doesnt work.
Wine is likely not recognized because is is pearl based so I set it to pearl, but how do i pass and argument over to it?

Try
/opt/local/bin/wine "$@"
The "..." will protect the white space, but still allow $variable subsitutions.
The $@ will substitute all the files you drag as a group to your Automator app.
The notation "$@" does the substitution with each file properly quoted to protect the white space in the file path, but provide each file as its own quoted argument to the 'wine' command line.
If you need to invoke 'wine' once for each file of a group of files you drag on to your automator app, then use
for f in "$@"
do
     /opt/local/bin/wine "$f"
done
This will loop through each file of a group of files you drag onto your automator app, and invoke 'wine' once for each file in the group.

Similar Messages

  • How can I Insert data into my msaccess Database table

    Hello all,
    I am new to Java programming and I have problem that how can i insert name into my database table.
    The code which i have written is following:
    String filename = "d:/test.mdb";
    String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
    database+= filename.trim() + ";DriverID=22;READONLY=true}";
    Connection con = DriverManager.getConnection(database,"","");
    String s = String.valueOf(text.getText());
    int k =10;
    Statement st = con.createStatement();
    st.execute("create table Test123(name text)");
    st.execute("INSERT INTO Test123 values" +s);
    on the INSERT program throws exception???
    can any one help me how to insert data into tabel.
    Thanks

    he INSERT program throws exception???
    can any one help me how to insert data into tabel.I have never used the jdbc driver to access, but what do you think that the flag READONLY=true means? An insert is not a read.
    Kaj

  • How to decide inserting Queries into Workbooks

    Hi,
    I have a few doubts..pls clarify my doubts
    1. How to decide inserting Queries into workbooks (How many number of Queries will be inserting into workbooks??)
    2. Shall i use single sheet (or) Multiple sheets
    3. We are using Hierarchy...So, How to insert a Query( How to decide which row/coulmn the Query can be placed??)
    4. How to suppress Zeros and # permanently (For temporarily, i went to cell context menu--All Characteristics-Suppress zero column/Row..)
    But looking for permanent solution..
    Please Suggest me ...
    Thanks..
    Help will be greatly appreciated..
    Thanks.........

    Hi venkat,
    1.how may queries in a workbook will depend on the reporting requirement.
    2. single or multiple sheet - it is advisable to insert one query in each sheet to avoid confusion.
    3. If you are using hierarchies then it is not advisable to use then in worrkbooks, since the values in the cells would keep changing depending on the hierarchy and the level it is expanded etc.
    4. To supress zeros you can also do a setting in spro -- > SAP netweaver --> SAP Business information warehouse --> Report-relevant settings --> presenting the numeric value in the Business explorer
    Standard settings
    Under certain circumstances numeric values and texts for currencies, or units, in the Business Explorer cannot be determined uniquely. In such cases predefined texts are displayed instead of the numeric values, and currencies, or units:
    If a Division by zero arises when calculating a numeric value then this text is output.
    If a numeric value cannot be determined then this text is output (does not exist).
    If a numeric value is not calculated due to numeric overlapping then this text is output.
    If a numeric value is made up of several currencies, or units, then this text is output instead of the currency or unit (mixed currencies).
    If a user does not have authorization to display a particular numeric value for a cell in the executed query, then this text is output in the cell instead (no authorization).
    If a calculated numeric value is made up of different currencies, or units, then the numeric value can or cannot be output. If you choose mixed values then the numeric value is output. If mixed values is not active then the text is output that you entered under "mixed currencies".
    Activities
    1. Determine the texts that are to be output in the Business Explorer instead of numeric values.
    2. Decide whether numeric values, that are made up of different currencies, or units, should be output.
    If the above explanation was helpful, please assign reward points.
    Regards
    Venkata Devaraj

  • How do I insert video into my webpage?

    I am using Dreamweaver 8. I have taken my camcorder video and uploaded it to youtube and copied the mp4 file to my hard drive.
    I have created a page with several videos on the page. I created a screenshot of the video and sized it to the appropriate size. I then created a link to the video mp4 file. However it opens in a separate page.
    I want to have the video open on the same page in the same location as the screenshot. Click on the image and it just starts playing.
    I notice that I can get it to do this if it is a flash (.flv) file but since all of my videos are mp4 that won't work.
    How do I insert video into my webpage? Do I convert the mp4 files to flash? How? What do I do?
    Thanks
    Matt

    The help docs tell you how:
    http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WSc78c5058ca073340dcda9110b1f693f21-7c9 fa.html
    or:
    http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WSc78c5058ca073340dcda9110b1f693f21-7ca da.html
    Or other media objects:
    http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WSc78c5058ca073340dcda9110b1f693f21-7c9 2a.html

  • How can I insert data into the standard CRM tables ?

    Hi Experts,
    Scenario----
    I need to download few attributes (fields) from SAP MDM to SAP CRM via SAP XI. I'm using the 'COMT_PRODUCT_MAINTAIN_API' API for it.
    The attributes(fields) that are present in the strucutres of API are downloaded into CRM system (by executing the Inbound proxy that is created based on the Message Interface created on XI) by calling the functions present in the API.
    And for those fields that are not present in CRM, but need to be downloaded into CRM, I'm creating the Set Type attributes in CRM, which get appended to the API.
    My query is:
    There are fields in CRM into which I need to insert the values. But they are not listed in the API. So, how can I insert(/download) the values into these standard fields?
    Regret the long description. Intended to be clear.
    TIA. Points will be awarded.
    Regards,
    Kris
    Edited by: Kris on Jul 21, 2008 8:00 AM

    he INSERT program throws exception???
    can any one help me how to insert data into tabel.I have never used the jdbc driver to access, but what do you think that the flag READONLY=true means? An insert is not a read.
    Kaj

  • How can i insert data into DB from my page programatically in Oracle ADF..?

    Hai, this is praveen.
    I have created  an EO and VO, when i have inserted data by dragging and dropping from DataControl -->Operations-->Create. I have successfully inserting data. But how can i do it programatically. What are the pre-defined steps that i can use over there to insert data into table programatically. Could u plz help me?

    Hi,
    You have to create an action Listener in the bean for any button.
    Then call an AM method.
    In that you have to do the following
    ViewObject yourVO = getYourVO();
    Row r = yourVo.createRow();
    r.setAttribute("Column1", value1); //the name of column should be as it is in your vo attribute.
    yourVO.insertRow(r);
    this.getDbTransaction().commit();
    Thanks

  • How do I insert checkboxes into a Pages document?

    I have been trying to insert checkboxes into a document I created using Pages version 2.4.2 on my iPad Air. I would like an actual checkbox (not just the image of an empty box) so that a checkmark will appear once it has been selected. I am able to do this with the "Numbers" app, but I cannot copy and paste those check boxes to a Pages document.
    I want to use this document as a form I can easily access and print with checkboxes. I have only found a way to insert bullets, but not checkboxes that you can click on with your finger and a check mark appears in the checkbox.
    Thank you!

    I think you are misunderstanding "Insert text at cursor". The ANNOTATIONS are not text editing tools, rather they are tools for people making comments to "mark up" documents. You use "Insert text at cursor" to tell the document author you want HIM OR HER to insert text at that point; the author reviews all the comments and changes the original.
    You need to use one of the OTHER methods mentioned to actually add text. Probably simplest is the typewriter tool, which in Acrobat X is under TOOLS > CONTENT and is called ADD OR EDIT TEXT BOX.

  • How do you insert bullets into a keynote presentation?

    I am trying to insert bullets into a custom keynote presentation.  How do you do this?  Then, I need to convert to powerpoint.  Haven't had to do this before.  Is there someone who can walk me through it?

    see the following thread:  https://discussions.apple.com/message/5876208#5876208
    There is also Keynote '09 User Guide available to you in your Help Menu which can be downloaded for free.
    I recommend Chapter 4 for starters.
    Good luck

  • How do you insert files into a database

    Hi
    I believe oracle can store files.
    I am trying to create a web application that will include an option of uploading files to oracle.
    What kind of data type do i create in the database, is it a file of a blob or what is it.
    Also locally how do i insert the file into the database. Would it be something like
    Insert into <tablename>(id,name,picture) values(1,Jennifer Aniston,c:\pictures\Jennifer Aniston.jpg)
    Is there any problem inserting the file using a web site url.
    Thanks
    Garry

    The easiest way to store files in the database is to use BLOB's. You can use a PreparedStatement and call the following API's:
    setBinaryStream(int parameterIndex, ...)
    setBlob(int i, Blob x)
    SCJP, SCJD, SCEA, SCWCD, SCBCD
    CISSP, PMP, PHR
    OCPDBA 8i/9i
    http://www.certgear.com

  • How to update\insert data into a NVARCHAR column using ODBC API

    I am trying to update a Sybase table via Microsofts ODBC API. The following is the basics of the C++ I am trying to execute. In table, TableNameXXX, ColumnNameXXX has a type of  NVARCHAR( 200 ).
    SQLWCHAR updateStatement[ 1024 ] = L"UPDATE TableNameXXX SET ColumnNameXXX = N 'Executive Chair эюя' WHERE PKEYXXX = 'VALUE'";
    if( ret = SQLExecDirect( hstmt, ( SQLWCHAR* ) updateStatement, SQL_NTS ) != SQL_SUCCESS )
    // Handle Error
    The Sybase database has a CatalogCollation of 1252LATIN1, CharSet of windows-1252,  Collation of 1252LATIN1, NcharCharSet of UTF-8 and an NcharCollation of UCA.
    Once this works for the Sybase ODBC connection I need to get it to work in various other ODBC drivers for other databases.
    The error i get is "[Sybase][ODBC Driver][SQL Anywhere]Syntax error near 'Executive Chair ' on line 1"
    If i take out the Unicode characters and remove the N it will update. 
    Does anyone know how to get this to work? What am I missing?
    I wrote a C# .net project using an ODBCConnection to a SQL Server database and am getting "sort of" the same error. I means sort of as this error contains the Unicode Text in the message whereas the Sybase ODBC error has "lost" the unicode.
    static void Main(string[] args)
    using (OdbcConnection odbc = new OdbcConnection("Dsn=UnicodeTest;UID=sa;PWD=password")) // ;stmt=SET NAMES 'utf8';CharSet=utf16"
    //using (OdbcConnection odbc = new OdbcConnection("Dsn=Conversion;CharSet=utf8")) // ;stmt=SET NAMES 'utf8';CharSet=utf8
    try
    odbc.Open();
    string queryString = "UPDATE TableNameXXX SET ColumnNameXXX = N 'Executive Chair эюя' WHERE PKEYXXX = 'AS000008'";
    System.Console.Out.WriteLine(queryString);
    OdbcCommand command = new OdbcCommand(queryString);
    command.Connection = odbc;
    int result = command.ExecuteNonQuery();
    if( result == 1)
    System.Diagnostics.Debug.WriteLine("Success");
    catch(Exception ex)
    System.Diagnostics.Debug.WriteLine(ex.StackTrace);
    System.Diagnostics.Debug.WriteLine(ex.Message);
    "ERROR [42000] [Microsoft][SQL Server Native Client 11.0][SQL Server]Incorrect syntax near 'Executive Chair эюя'."

    Your error comes from Sybase, so I suggest you post your question to a Sybase forum.  And be aware that Sybase does not use the same tsql dialect as sql server, so you must use their dialect (if, indeed, there is any difference in this particular situation). 
    One note - there should be no space between "N" and the Unicode string literal to which it applies in tsql.  E.g.,
    = N'Executive Chair эюя'
    not
    = N 'Executive Chair эюя'

  • How do I insert additional pages inside a footnoted document with accompanying text boxes and still keep pages below syncronized?

    Is there a way to insert additional pages into a lengthy document containing continuous footnotes at the bottom of each page and accompanying text boxes on most pages without losing the syncronization of text and text box information on the pages below?

    Footnotes do not work for text in textboxes, and you can keep on adding text after existing text so I am not sure what you are asking for.
    Peter

  • How can I insert a vertical line  between two underlined unfilled with text lines.  I am trying to construct an invoice and I need a break.  If I try any of the shapes or inset functions it eliminates my underlined lines and shifts the whole document.

    I am trying to construct an invoice.  How can I install a vertical line between two or more underlined lines to create a break.  I have tried the insert, shapes and nothing works.  If I try any of the functions the whole document shifts to the right and I loose some of the lines.  Is there a work around, or is I work not able to do what I want?   
    Thanks
    Armand

    It sounds as though you may have "Object Causes Wrap" activated for the Line Shape. This will push other content away.
    See the Wrap Inspector.
    Jerry

  • How to store current time into database when key is pressed in  text input?

    I am a beginner in java programming.
    I use netbeans in my project which I need to cature the keystroke pattern of users.I have problem in capturing and storing the current time when a key is pressed or released in a text input.
    This is the jsp i wrote.
    <SCRIPT LANGUAGE=JAVASCRIPT><!--
    var current;
    var previous;
    var current_time;
    var previous_time;
    var count_latency = 0;
    function keyDown(e) {
    current = new Date();
    current_time = current.getTime();
    latency=(current_time-previous_time);
    previous_time=current_time;
    function keyUp(e) {
    count_latency = 1;
    current= new Date();
    current_time = current.getTime();
    hold_time=(current_time-previous_time);
    //--></SCRIPT>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>web application</title>
    </head>
    <body>
    <form name="temp">
    <h2>
    Steps:     
    <h2>
    Step 1:     Please type your password for 10 times with your normal typing rhythm.
    <h2>
    Step 2:     Press Enter or "Next" button when done.
    <h2>
    Username <input type="text" name="username" value="" width="20" />
    <h2>
    Password <input type="password" name="password" value="" width="20" onkeydown="javascript:keyDown(event)" onkeyup="javascript:keyUp(event)" />
    <h2>
    <input type="submit" value="Next" name="Next" />
    </form>
    </body>
    </html>
    I can't store the latency and hold_time value into my database (Java DB Database) in javascript.
    Can anyone please help me?

    Thanks shoopy for your suggestion.
    But, I want to store latency and hold_time to database everytime the key is pressed and released, that means users are typing, meanwhile the values of latency and hold_time are stored. The datas are stored before users click "Next" button. So, is it POST that form to a JSP page can solve it?
    Hope you all can help me, I have been stuck in this problem for a long time.
    Thanks

  • How do i insert cgi into my movie clips?

    I have shot a couple scenes and i have downloaded free cgi effects. How do i put these in my movie using iMovie?

    I'm not clear exactly what effects these are but iMovie 9 and10 do not support third party plug-ins.   You need Final Cut Pro which accepts Motion template plugins.
    Geoff.

  • How can we insert image into mssql server  and retrive without path ?

    please give us detail coding

    http://forum.java.sun.com/thread.jspa?threadID=654086&messageID=4505027
    http://www.google.co.in/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=y2u&q=how+to+store+image+in+mysql+and+display+with+example+in+jdbc&btnG=Search&meta=

Maybe you are looking for

  • App crashes 30+ times/day - BLUE SCREEN APPEARS - system reboots

    HELP! I purchased a new Macbook Pro about 1.5 months ago, and am running PowerCADD (I work at an architecture firm). No problems on any of the other computers running 10.4, but for some reason my PowerCADD application crashes about 30 times or more p

  • How to copy and paste text into email without HTML gibberish

    I've had trouble for some time now copying and pasting text into and out of yahoo emails. I can't just copy and paste text, I have to first transfer to Word for Mac and then paste into a yahoo email. Then I end up with what looks like three lines of

  • Touchscreen monitor and photoshop

    I've tried drawing with a stylus on my touchscreen monitor, but it doesn't work on CS6 (it pans instead).  I've been able to draw in previous versions.  Is there a setting I can adjust or anything?

  • Import settings panel missing

    On selecting IMPORT, I frequently find that the panel at the right of the screen showing the destination and chosen import settings is completely blank. The only way I can get the panel back is to log off OS or restart - simply closing Aperture and r

  • Sub-pages in a tab-region

    I'm working on Oracle 9iAS release 2. And I have to set up a company portal. The first page (the root page) should show/contain a banner, a region with 4 tabs and a footer. My problem is that in one tab I want to create something like a content area.