Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.os.mac-os.x > #98294

AppleScript me prend le chou

From "M.V." <mv@gmail.com.invalid>
Newsgroups fr.comp.os.mac-os.x, fr.comp.sys.mac.programmation
Subject AppleScript me prend le chou
Followup-To fr.comp.sys.mac.programmation
Date 2021-11-24 17:10 +0000
Organization M.V. & Co
Message-ID <snlrn0$2h7$1@dont-email.me> (permalink)

Cross-posted to 2 groups.

Followups directed to: fr.comp.sys.mac.programmation

Show all headers | View raw


Hello,

Si j'utilise AppleScript, la commande :

do shell script "echo -n VW5lIGZhbWlsbGUgZMOpY2ltw6llIHBhciBsYSBDb3ZpZC0xOSDD | base64 -D | od -t x1 -An"

me donne comme résultat :
     fa  75  56  e6  52  06  66  16  d6  96  c6  c6  52  06  4c  3a
     96  36  96  dc  3a  96  52  07  06  17  22  06  c6  12  04  36
     f7  66  96  42  d3  13  92 

mais si je tape directement dans Terminal :

echo -n VW5lIGZhbWlsbGUgZMOpY2ltw6llIHBhciBsYSBDb3ZpZC0xOSDD | base64 -D | od -t x1 -An

j'obtiens :
     55  6e  65  20  66  61  6d  69  6c  6c  65  20  64  c3  a9  63
     69  6d  c3  a9  65  20  70  61  72  20  6c  61  20  43  6f  76
     69  64  2d  31  39  20  c3

D'après <https://base64.guru/converter/decode/hex> référencé par
Olivier Miakinen (donc fiable), c'est le résultat de Terminal qui
est correct.

Est-ce que quelqu'un pourrait m'expliquer pourquoi AS ne me donne pas
le bon résultat ?

Merci d'avance.

X-post et fu2 fr.comp.sys.mac.programmation
-- 
Michel VAUQUOIS - <http://michelvauquois.fr>

Back to fr.comp.os.mac-os.x | Previous | Next | Find similar | Unroll thread


Thread

AppleScript me prend le chou "M.V." <mv@gmail.com.invalid> - 2021-11-24 17:10 +0000

csiph-web