Bonjour,
Je suis vraiment novice en prog, mais voila j'ai essayé de faire un outil de sélection aléatoire de ligne dans un fichier texte
mais ça bug, et oui sinon je serais pas là ;)
voila mon mini script :
Qqun peut m'aider?Code:
1
2
3
4
5
6
7
8 set n to random number from 1 to 30 tell application "Finder" open file "textdam.txt" of folder "enregistreur text" of folder "data_me" of folder "documents" of folder "damien" of folder "users" of startup disk tell application "System Events" to keystroke "l" using command down tell window "Sélectionner une ligne" set text field "N° de ligne" to n end tell end tell
Merci!
Damien