Pas que .. ce message envoie à mon coursier le descriptif complet de la course :Je suis désolé, je ne comprend pas ce que tu veux dire...
Pour moi tu envois un imessage à un de tes coursiers, ce message contient les infos du client que ton raccourci à récupéré.
J'ai mal compris ??
tell application "Finder"
    set fichiertel to (path to documents folder) as string
    set fichiertel to fichiertel & "Liste coursiers.txt"
    set fichiertel to fichiertel as alias
    open for access fichiertel
    set lestels to read fichiertel
    close access fichiertel
    
    set AppleScript's text item delimiters to ASCII character 10
    set nb to count text item of lestels
    set tels to {}
    repeat with i from 1 to nb
        set end of tels to text item i of lestels
    end repeat
    set choix to ""
    set coursier to ""
    set choix to (choose from list the tels with prompt "Sélectionner Le coursier : " with title "Choix") as string
    if choix is not "false" then
        set AppleScript's text item delimiters to ","
        set coursier to text item 1 of choix
        set nom to text item 2 of choix
    end if
end tell
if coursier is not "" then
    tell application "Finder"
        display dialog "Client ? terminer la saisie par un espace ou cliquer sur les infos !" default answer "client"
        set a to text returned of result
        try
            set nb to count paragraph of a
            set b to (paragraph 1 of a) & return & (paragraph 2 of a) & return & (paragraph 3 of a) & return & (paragraph 6 of a) & return & (paragraph 7 of a)
            
            display dialog "Veuillez saisir les Infos ! Pour un retour ligne taper Option + retour !" default answer ""
            set lesinfos to text returned of result
            set b to b & return & return & lesinfos
            
            display dialog "Message à envoyer" & return & return & b & return & return & "Au Tel : " & coursier & " de " & nom
            
            
            if b is not "" then
                tell application "Messages"
                    set targetbuddy to coursier
                    set imessageservice to 1st service whose service type = iMessage
                    set textMessage to b
                    set imessagebuddy to buddy targetbuddy of imessageservice
                    send textMessage to imessagebuddy
                end tell
                log "Message sent"
            end if
        on error
            display dialog "erreur saisie client"
        end try
    end tell
end iftell application "Finder"
    set fichiertel to (path to home folder) as string
    set fichiertel to fichiertel & "Library:Mobile Documents:com~apple~CloudDocs:TextEdit:Liste coursiers.txt"
    set fichiertel to fichiertel as alias
    open for access fichiertel
    set lestels to read fichiertel
    close access fichiertel
    
    set AppleScript's text item delimiters to ASCII character 10
    set nb to count text item of lestels
    set tels to {}
    repeat with i from 1 to nb
        set end of tels to text item i of lestels
    end repeat
    set choix to ""
    set coursier to ""
    set choix to (choose from list the tels with prompt "Sélectionner Le coursier : " with title "Choix") as string
    if choix is not "false" then
        set AppleScript's text item delimiters to ","
        set coursier to text item 1 of choix
        set nom to text item 2 of choix
    end if
end tell
if coursier is not "" then
    tell application "Finder"
        display dialog "Client ? terminer la saisie par un espace ou cliquer sur les infos !" default answer "client"
        set a to text returned of result
        try
            set nb to count paragraph of a
            set b to (paragraph 1 of a) & "*" & return & (paragraph 2 of a) & return & (paragraph 3 of a) & return & (paragraph 6 of a) & return & (paragraph 7 of a)
            
            display dialog "Veuillez saisir les Infos ! Pour un retour ligne taper Option + retour !" default answer ""
            set lesinfos to text returned of result
            set b to b & return & return & lesinfos
            
            display dialog "Message à envoyer" & return & return & b & return & return & "Au Tel : " & coursier & " de " & nom
            
            
            if b is not "" then
                tell application "Messages"
                    set targetbuddy to coursier
                    set imessageservice to 1st service whose service type = iMessage
                    set textMessage to b
                    set imessagebuddy to buddy targetbuddy of imessageservice
                    send textMessage to imessagebuddy
                end tell
                log "Message sent"
            end if
        on error
            display dialog "erreur saisie client"
        end try
    end tell
end ifJe ne l'ai pas.Pourtant chez moi il passe.
Vérifie en ouvrant ton compte (la petite maison), bibliothèque-->Mobile documents-->TextEdit-->LIste coursiers.txt
Si tu le trouves bien dans ce chemin .
Ediot ton chemin est curieux :
Il y a un "Bureau" en trop ???
set fichiertel to fichiertel & "Library:Mobile Documents:com~apple~CloudDocs:TextEdit:Liste coursiers.txt"set fichiertel to fichiertel & "desktop:Library:Mobile Documents:com~apple~CloudDocs:TextEdit:Liste coursiers.txt"set fichiertel to (path to users folder) as string
set fichiertel to fichiertel & "Desktop:Library:Mobile Documents:com~apple~TextEdit:Documents:liste coursiers.txt"set fichiertel to (path to documents folder) as string
    set fichiertel to fichiertel & "Liste coursiers.txt"Oui j'ai vu et ça ne fonctionne pas.As-tu vu mon post précédent que j'ai édité....
Si toujours pas, les 2 lignes pour fichier dans document étaient:
Bloc de code:set fichiertel to (path to documents folder) as string set fichiertel to fichiertel & "Liste coursiers.txt"
 
	