Using quotes in a AppleScript string

后端 未结 5 1138
时光取名叫无心
时光取名叫无心 2020-12-31 06:07

I am working with AppleScript and need to do this:

set TextToWrite to \" #!/bin/bash cd \"$( dirname \"$0\" )\" java -server -Xmx4G -jar ./craftbukkit.jar\"          


        
5条回答
  •  南方客
    南方客 (楼主)
    2020-12-31 06:55

    Using quotes in applescript is quite easy you just need to make the line end and start in quotes

    E.G

    display dialog "hello world"

    but when you decide to put a variable in the text you must use &

    set my_name to "michael"

    display dialog "hello" & my_name

    thankyou

提交回复
热议问题