Sample Header Ad - 728x90

Sending commands from TextWrangler (BBEdit) to the terminal

1 vote
2 answers
1670 views
I want to send commands from TextWrangler (or BBEdit) to the terminal. Even if I found this , I don't understand how that works since I'm brand new to Unix and running Applescripts. tell application "BBEdit" set the_selection to (selection of front window as string) if (the_selection) is "" then set the_selection to line (get startLine of selection) of front window as string end if end tell tell application "Terminal" do script with command the_selection in window 1 end tell I saved an Applescript that looks like this: enter image description here Now, what I think is to put the script in the TextWrangler Scripts Folder: enter image description here 1. But then, how do I send commands to the Terminal.app? 2. How can I press cmd + enter to send a line from TextWrangler to the Terminal?
Asked by M. Beausoleil (225 rep)
Jul 23, 2016, 02:48 AM
Last activity: Jun 27, 2022, 12:58 PM