Jump to content

Xiaobai

Member
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Xiaobai

  1. Hi, I use JavaScript for Automation and run it using the shell 'osascript' command, but I don't know how to get the arguments in the script.

    OK, I have solved the problem, it looks like this:

    function run(arg){
        console.log(arg);
    }

    I never wrote applescript and I know nothing about it. I read the document from this url, and I found that the run function. It solved my problem.

     

    My English is very bad, I hope you can get it!

×
×
  • Create New...