Bonjour,
Je ne sais pas trop où poser ma question ...
J'ai trouver ce bundle pour lancer une selection de script dans textmate vers le terminal :
ça marche bien ! mais je voudrais faire la même chose mais pour iTerm ... intuitivement j'ai simplement remplacer "Terminal" par "iTerm" mais voici l'erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 #!/usr/bin/env bash # [[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh" raw=$(cat) # unindent block of text based on first line indent while echo "$raw" | head -n 1 | grep -qE "^( | )"; do # = extract first line and detect if it starts by a tab or a blank space # if it does, remove one tab or blank space from every line raw=$(echo "$raw" | sed -E "s/^ //; s/^ //" ) done # replace tabs by four spaces everywhere to avoid inappropriate shell extension raw=$(echo "$raw" | sed -E "s/ / /") # replace roxygen comments raw=$(echo "$raw" | sed -E "s/#'//") # send the code to the Terminal osascript -e 'on run(theCode)' \ -e ' tell application "Terminal"' \ -e ' do script theCode in window 1' \ -e ' end tell' \ -e 'end run' -- "$raw"
Quelqu'un peut-il m'aider ?50:56: syntax error: Expected end of line but found “script”. (-2741)
Egalement si une âme charitable pourrait me rajouter l'option "quand j'execute la ligne de mon script dans iterm, le curseur va à la ligne" comme dans RStudio avec la commande ctrl+entrer pour ceux qui connaissent ..
Merci pour votre aide
DJ
Partager