|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Dec 2003
Città: D-NRW, I-CAM
Messaggi: 8019
|
Compilare ed eseguire codice c++ direttamente da Textwrangler (risolto)
Qualcuno conosce un applescript o simile per compilare direttamente da Textwrangler, evitando di digitare la cli a manina?
Un pò come viene fatto col devc++ su win...
__________________
Visit my site www.flapane.com - MY BLOG - MY GALLERY - MY Linux/OSX Repository MBP Retina 13'' i7 2.5ghz (2017) - One Plus 7+ - Sony a6000/16-50 - VDSL 100/40Mbps Ultima modifica di flapane : 12-09-2008 alle 14:50. |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Dec 2003
Città: D-NRW, I-CAM
Messaggi: 8019
|
vabò, se serve, me lo sono fatto io
Codice:
(* compile and execute source code, as Devc++ does Author flapane.com rev. 12-sep-08 *) tell application "TextWrangler" set the_file to file of text document 1 end tell set AppleScript's text item delimiters to ":" set source_file to the last text item of (the_file as string) set AppleScript's text item delimiters to "" set source_file_ext to characters 1 thru ((offset of "." in source_file) - 1) of source_file as string tell application "Finder" set the_folder to container of the_file as alias end tell tell application "Terminal" activate set shell_script to "cd " & (quoted form of POSIX path of the_folder) & "; g++ " & source_file & " -o " & source_file_ext & "; " & source_file_ext & "; exit" if (count windows) is 0 then do script shell_script else do script shell_script in the front window end if end tell
__________________
Visit my site www.flapane.com - MY BLOG - MY GALLERY - MY Linux/OSX Repository MBP Retina 13'' i7 2.5ghz (2017) - One Plus 7+ - Sony a6000/16-50 - VDSL 100/40Mbps Ultima modifica di flapane : 12-09-2008 alle 18:24. |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 12:34.



















