Jump to content
Salesforce and other SMB Solutions are coming soon. ×

robertoghiazza
 Share

Recommended Posts

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?

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

Terms of Use