Variable to javascript

Discussion in 'Automator' started by bambid, Sep 13, 2018.

  1. bambid

    bambid New Member

    Joined:
    Sep 13, 2018
    Messages:
    1
    Likes Received:
    0
    Hello everybody
    I have a small problem, I try to pass a text variable which I create in the automator to a javascript (also in the automator). But I can not get over the variable.
    I already tried the following:
    Code:
    function run(input, parameters) {
            var myAmasysProdNr = input[0];
            }
    
    Thank you very much for your help.
    Best regards bambid
     
    bambid, Sep 13, 2018
    #1
    1. Advertisements

  2. bambid

    Cory Cooper Moderator

    Joined:
    May 19, 2004
    Messages:
    5,943
    Likes Received:
    193
    Hello and welcome.

    Sorry, but I am not very well-versed in Automator/JavaScript. Maybe the folks over at MacScripter would be able to help out.

    Let us know if they provide a solution.

    C
     
    Cory Cooper, Sep 16, 2018 at 2:52 PM
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.