je cherche quelqu'un qui pourrait corriger mon script: je cherche à effacer via le terminal un fichier recalcitrant grace à une variable qui enregistre le chemin d'accès.
mais l'intégration de cette variable ne fonctionne pas ca le terminal interprete
sudo "chemin d'accès" rm
au lieu de
sudo rm "chemin d'accès"
PLEASE HELP
voici la source de mon script:
<font color="red">
tell application "Terminal"
activate
repeat
display dialog "Entrer le chemin d'accès de l'élément à effacer" default answer "" buttons {"Cancel", "OK"} default button 2
set the search_string to the text returned of the result
if the search_string is not "" then exit repeat
end repeat
do script with command "sudo rm " & the search_string & " "
end tell
</font>
mais l'intégration de cette variable ne fonctionne pas ca le terminal interprete
sudo "chemin d'accès" rm
au lieu de
sudo rm "chemin d'accès"
PLEASE HELP
voici la source de mon script:
<font color="red">
tell application "Terminal"
activate
repeat
display dialog "Entrer le chemin d'accès de l'élément à effacer" default answer "" buttons {"Cancel", "OK"} default button 2
set the search_string to the text returned of the result
if the search_string is not "" then exit repeat
end repeat
do script with command "sudo rm " & the search_string & " "
end tell
</font>