I am working with AppleScript and need to do this:
set TextToWrite to " #!/bin/bash cd "$( dirname "$0" )" java -server -Xmx4G -jar ./craftbukkit.jar" "
As you can see, the text I need to make into a string has quotes in it. How do I set
#!/bin/bash cd "$( dirname "$0" )" java -server -Xmx4G -jar ./craftbukkit.jar"
to an AppleScript string without the quotes messing it up?
bash
command could be simplified tocd "${0%/*}" && java <params>
, BTW. No externals and a modicum of flow control. – kopischke May 19 '12 at 20:14