I am working with AppleScript and need to do this:
set TextToWrite to \" #!/bin/bash cd \"$( dirname \"$0\" )\" java -server -Xmx4G -jar ./craftbukkit.jar\"
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