Deutsch English Français Italiano |
<sh2s1p$pvb$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Souris 8-) <souris@meta-science.fr> Newsgroups: fr.comp.sys.mac.programmation Subject: Re: Afficher le fichier sous Finder en Apple Script ? Date: Sun, 5 Sep 2021 16:42:34 -0000 (UTC) Organization: =?UTF-8?B?TcOpdGEtU2NpZW5jZQ==?= Lines: 39 Message-ID: <sh2s1p$pvb$1@dont-email.me> References: <sgt0cd$jtn$1@dont-email.me> <1pezm7l.3c2nkf1g84f3yN%josephb@nowhere.invalid> <sh09gl$6ki$1@dont-email.me> <1pezz65.132zusf16yybi8N%josephb@nowhere.invalid> <sh0gkt$of4$1@dont-email.me> <1pf0cp5.1l4vnh89qcnkdN%josephb@nowhere.invalid> <sh22jd$d2q$1@dont-email.me> <1pf1d13.195je95dspa6yN%josephb@nowhere.invalid> <sh2dqk$m26$1@dont-email.me> <6134f08c$0$3721$426a74cc@news.free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 5 Sep 2021 16:42:34 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="465b013be32466bb9ba7faccece6c98e"; logging-data="26603"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/dtPLUQIIJxyuP4qm2xTM5" User-Agent: MacCafe/2.06(bs) (macOS 11.5.2 (20G95) - iMac18,3) Cancel-Lock: sha1:wbAVrwgtM/aIKJBUp6NK8KY8BnU= sha256:vUJp3ImLfs9wPihTZIoRkrUwr024LnEXoX4aan+OcjE= sha1:pApvdFC9Y8/w+eZoNAijJkRF0zY= In-Reply-To: <6134f08c$0$3721$426a74cc@news.free.fr> Bytes: 2763 Le 5 septembre 2021 à 18:30, kurtz le pirate a écrit : > 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. > > > > je commence à comprendre un peu la syntaxe de Apple Script, mais c'est pas très clair faut que je m'habitue... cela dis j'ai juste besoin du nom du Disque, le chemin home ne m'intéresse pas ça fait redondance dans le chemin que j'ai qui commence par ":user:etc" au lieu de home folder si je veux le nom du disque je fait quoi ? -- -- \ / Croire c'est le contraire de savoir, -- o -- si j'y crois, je ne sais pas, / \ si je sais, pas la peine d'y croire. --> Je crois pas, car je sais que c'est faux malgré tout...