How can I launch an applescript.scpt file from the terminal and pass terms / variables?

后端 未结 1 1892
忘掉有多难
忘掉有多难 2021-02-10 04:37

I have an applescript that does something along these lines:

using terms from application \"Quicksilver\"
    on open theseitems
        repeat with aitem in the         


        
1条回答
  •  -上瘾入骨i
    2021-02-10 05:07

    In the script you pass in the arguments with the on run like this :

    on run arg
      --do whatever you want with arg
    end run
    

    If more than one argument is specified the arg variable is a list. enter image description here

    enter image description here

    0 讨论(0)
提交回复
热议问题