Sujet : Re: Afficher le fichier sous Finder en Apple Script ?
De : kurtzlepirate (at) *nospam* free.fr (kurtz le pirate)
Groupes : fr.comp.sys.mac.programmationDate : 05. Sep 2021, 18:30:04
Autres entêtes
Organisation : Compagnie de la Banquise
Message-ID : <6134f08c$0$3721$426a74cc@news.free.fr>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:78.0) Gecko/20100101 Thunderbird/78.13.0
On 05/09/2021 14:39, Souris 8-) wrote:
mais comment mettre le nom du disque dans cette variable NomDisque ?
Si tu travail dans ton "home directory" tu as une variable système faite pour ça : <home folder>
Par exemple :
set applescript_path to path to home folder
set posix_path to POSIX path of applescript_path
display dialog (">> applescript path : " & (applescript_path as text) & "/n>> posix path : " & (posix_path as text))
affiche un dialogue avec le chemin du home directory aux deux formats.
-- kurtz le piratecompagnie de la banquise