robertoghiazza Posted March 29, 2016 Share Posted March 29, 2016 Hallo! I have a big problem with my script! I have to create a text file, send it to a raw printer, and finally delete it. Using AppleScript I can tell the Terminal and do the script. I write this script but doesn't work... any suggestions? "tell application \"Terminal\" do script \"echo -e \"^XA^FO175,1500^ADR70,45^FD" & Tabella::Nome & "^FS^FO100,1500^ADR70,45^FD" & Tabella::Cognome & "^FS^FO70,2000^BY3^B3R,N,200,Y,N^FD" & Tabella::Id & "^FS^XZ\" > ~/desktop/file.txt\" do script \"lp -d ZebraHC100 -o raw ~/Desktop/file.txt\" do script \"rm -f ~/Desktop/file.txt\" end tell" where is the error? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.