Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

MacSOUP (mail) et PJ

36 réponses
Avatar
ecm.mec
Bonjour,

J'utilise MacSOUP aussi comme logiciel de messagerie.

N'envoyant que rarement des pj il me convient très bien.

Cependant, il m'est arrivé d'avoir besoin de cela et sous MacOS 8.6 je
transformais le document au format Binhex avec Dropstuff.

Un simple glissé dans le corps du message suffisait.

N'utilisant plus Dropstuff, j'aimerai savoir comment encoder un tel
document pour envoi et ceci *depuis le terminal* (histoire de savoir)

Merci à vous pour vos info,

Thierry

10 réponses

1 2 3 4
Avatar
laurent.pertois
ecm wrote:

Jusqu'à là, ça semble bien marcher (à ce niveau) sur le Macmini.


Bon résumé des opération.

Me
reste à voir les possibilité pour les encodages / décodages en BinHex.


Ben, je te repasse le premier lien que j'avais donné avec des exemples
d'utilisation des commandes :

<http://kb.iu.edu/data/aewr.html>


--
Politically Correct Unix - UTILITIES
The "touch" command has been removed from the standard distribution due
to its inappropriate use by high-level managers.

Avatar
ecm.mec
Laurent Pertois wrote:


Me reste à voir les possibilité pour les encodages / décodages en
BinHex.


Ben, je te repasse le premier lien que j'avais donné avec des exemples
d'utilisation des commandes :

<http://kb.iu.edu/data/aewr.html>


Ok. Dans un premier temps, j'ai fait un

$ binhex test.jpg > test.hqx avec pour retour une erreur :

File is not MacBinary: test.jpg

D'après la page de ton lien, il est dit :

"Creating a MacBinary file is a very similar process. The only
difference is that you pipe the output of the binhex command into hexbin
rather than redirecting it to a file. So, at the Unix prompt, enter:
binhex [options] file | hexbin

This will create a MacBinary file with the same name as file except it
will have a .bin extension."

Donc, je fait un

$ binhex test.jpg | hexbin
File is not MacBinary: test.jpg

Je pense qu'il me faut obtenir un test.bin pour obtenir un test.hqx ?
C'est ça ?

Thierry


Avatar
laurent.pertois
ecm wrote:

D'après la page de ton lien, il est dit :


Oui, bon, la page est fausse par rapport à ces macutils, semble-t-il.

Je viens de les installer (merci MacPorts) et voici ce que je tape pour
faire un HQX :

$ binhex encode Picture 1.png

ça fait un fichier "Picture 1.png.hqx" et c'est tout.

Si tu souhaites renommer, il y a l'option -o.

Pour plus d'infos, man binhex ou bien binhex tout court dane le
Terminal, ça donne une aide rapide.

--
Politically Correct Unix - UTILITIES
The "touch" command has been removed from the standard distribution due
to its inappropriate use by high-level managers.

Avatar
loiseauthierry
Laurent Pertois wrote:

Je viens de les installer (merci MacPorts) et voici ce que je tape pour
faire un HQX :

$ binhex encode Picture 1.png

ça fait un fichier "Picture 1.png.hqx" et c'est tout.

Si tu souhaites renommer, il y a l'option -o.

Pour plus d'infos, man binhex ou bien binhex tout court dane le
Terminal, ça donne une aide rapide.


Ok. De mon côté, pour encoder test.jpg :

$ binhex encode test.jpg
File encode not found.

:-/
--
4 Calculs & Astronomie en Javascript : <http://astrophoto.free.fr>
3 " Il y a 10 sortes de personnes sur Terre : ceux qui connais-
2 sent le système binaire et ceux qui ne le connaissent pas "
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72

Avatar
laurent.pertois
Thierry Loiseau wrote:

Ok. De mon côté, pour encoder test.jpg :

$ binhex encode test.jpg
File encode not found.


Strange...

Ca permet de voir où se trouve la commande appelée :

$ which binhex
/usr/bin/binhex

Maintenant, MacPorts indique ce qu'il a installé :

$ port info macutil
macutil 2.0b3, sysutils/macutil (Variants: universal, darwin)
http://homepages.cwi.nl/~dik/english/ftp.html

macutil contains the following utilities: macunpack - unpacks PackIt,
StuffIt, Diamond, Compactor/Compact Pro, most
StuffItClassic/StuffItDeluxe, and all Zoom and LHarc/MacLHa archives,
and archives created by later versions of DiskDoubler. Also it will
decode files created by BinHex5.0, MacBinary, UMCP, Compress It,
ShrinkToFit, MacCompress, DiskDoubler and AutoDoubler. hexbin -
de-hexify files created in BinHex 4.0 compatible format (hqx) but also
the older format (dl, hex and hcx). Moreover it will uudecode files
uuencoded by UUTool (the only program I know that does UU hexification
of all Mac file information). macsave - reads a MacBinary stream from
standard input and writes the files according to the options. Optionally
self-extracting archives are modified to normal archives. macstream -
reads files from the Unix host and will output a MacBinary stream
containing all those files together with information about the directory
structure. binhex - reads a MacBinary stream, or will read
files/directories as indicated on the command line, and will output all
files in binhexed (.hqx) format. Information about the directory
structure is lost. tomac - transmits a MacBinary stream, or named files
to the Mac using the XMODEM protocol. frommac - receives one or more
files from the Mac using the XMODEM protocol.

Platforms: darwin
Maintainers:


Maintenant, en lançant la commande à vide on voit les versions et aussi

$ binhex
binhex 1.0 - Oct 4 2007 20:46:44
Copyright 2005-2007 Apple Inc.

Usage: binhex <verb> <options> file1 file2 ...
perform BinHex decoding and encoding.

Verbs:
probe Indicates that probe is requested.
encode Indicates encoding is requested.
decode [optional] Indicates that decode is
requested.

If no verb is specified, "decode" is assumed.

General Options:
-h, --help display this usage statement and exit.
-V, --version display version of binhex,
-v, --verbose display verbose output.

Probing Options:
This will return 0 if file specified is BinHex.

Encoding Options:
-R, --no-runlength-encoding
[optional] don't generate compressed BinHex
file.
-s, --suffix [suffix] [optional] suffix to use instead of ".hqx".
-p, --pipe, --stdout [optional] pipe encoded output to standard
output.
-C, --directory (dir) [optional] save encoded file in specified
directory.
-o, --rename (file) [optional] specifies name for output file
instead
of instead of using input filename with
suffix.
No suffix is applied to (file).
-n, --overwrite [optional] overwrite output file if it
exists.

Decoding Options:
-p, --pipe, --stdin [optional] decode data piped from standard
input.
-C, --directory (dir) [optional] save encoded file in specified
directory.
-o, --rename (file) [optional] specifies name for output file
instead
of instead of using input filename with
suffix.
-n, --overwrite [optional] overwrite output file if it
exists.



Il n'y a plus qu'à comparer avec toi...

--
Politically Correct Unix - UTILITIES
The "touch" command has been removed from the standard distribution due
to its inappropriate use by high-level managers.

Avatar
loiseauthierry
Laurent Pertois wrote:

Thierry Loiseau wrote:

Ok. De mon côté, pour encoder test.jpg :

$ binhex encode test.jpg
File encode not found.


Strange...

Ca permet de voir où se trouve la commande appelée :

$ which binhex
/usr/bin/binhex


/opt/local/bin/binhex

Maintenant, MacPorts indique ce qu'il a installé :

$ port info macutil
macutil 2.0b3, sysutils/macutil (Variants: universal, darwin)
http://homepages.cwi.nl/~dik/english/ftp.html


== (en lisant en diagonale, ça semble être le même blabla)
===

Platforms: darwin
Maintainers:


Maintenant, en lançant la commande à vide on voit les versions et aussi

$ binhex
binhex 1.0 - Oct 4 2007 20:46:44
Copyright 2005-2007 Apple Inc.

Usage: binhex <verb> <options> file1 file2 ...
perform BinHex decoding and encoding.

Verbs:
probe Indicates that probe is requested.
encode Indicates encoding is requested.
decode [optional] Indicates that decode is
requested.


(...)

Il n'y a plus qu'à comparer avec toi...


Sur ce dernier point, rien ne se passe :

$ binhex
(ligne vide) => je fais control + c pour reprendre la main.

Bigre,

Thierry
--
4 Calculs & Astronomie en Javascript : <http://astrophoto.free.fr>
3 " Il y a 10 sortes de personnes sur Terre : ceux qui connais-
2 sent le système binaire et ceux qui ne le connaissent pas "
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72


Avatar
loiseauthierry
Matt wrote:

$ port contents macutil


Port macutil contains:
/opt/local/bin/binhex
/opt/local/bin/frommac
/opt/local/bin/hexbin
/opt/local/bin/macsave
/opt/local/bin/macstream
/opt/local/bin/macunpack
/opt/local/bin/tomac
/opt/local/share/doc/macutil/README
/opt/local/share/doc/macutil/README.crc
/opt/local/share/doc/macutil/README.crc.orig
/opt/local/share/doc/macutil/README.hexbin
/opt/local/share/doc/macutil/README.macget
/opt/local/share/doc/macutil/README.macput
/opt/local/share/doc/macutil/README.unpit
/opt/local/share/doc/macutil/README.unsit
/opt/local/share/doc/macutil/README.zoom
/opt/local/share/man/man1/binhex.1.gz
/opt/local/share/man/man1/frommac.1.gz
/opt/local/share/man/man1/hexbin.1.gz
/opt/local/share/man/man1/macsave.1.gz
/opt/local/share/man/man1/macstream.1.gz
/opt/local/share/man/man1/macunpack.1.gz
/opt/local/share/man/man1/macutil.1.gz
/opt/local/share/man/man1/tomac.1.gz


Une autre commande pratique pour savoir quel fichier a été installé par quel
port (ici avec un exemple) :

$ port provides /opt/local/bin/tin
/opt/local/bin/tin is provided by: tin


$ port provides /opt/local/bin/binhex
/opt/local/bin/binhex is provided by: macutil

Thierry
--
4 Calculs & Astronomie en Javascript : <http://astrophoto.free.fr>
3 " Il y a 10 sortes de personnes sur Terre : ceux qui connais-
2 sent le système binaire et ceux qui ne le connaissent pas "
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72

Avatar
laurent.pertois
Matt wrote:

D'après ce que j'ai compris, Rob BRAUN qui détenait le domaine
opendarwin.org a décidé d'arrêté le site et donc tous les projets (certains
ont migrés chez MacOSForge.org). Je ne connais pas les raisons qui l'ont
poussé à faire cela (peut-être une couille avec l'ISC; les machines
opendarwin.org étaient hébergées chez l'ISC à part lamancha et rozinante).


Il n'a jamais donné de raison officielle ?

Bon, en tous cas je me souviens de l'annonce de Mac OS Forge, j'étais à
la WWDC à ce moment-là, ce fut un soulagement pour la suite de MacPorts
que je préfère largement à fink maintenant (enfin, depuis près de 3 ans
d'ailleurs).

--
Politically Correct Unix - UTILITIES
The "touch" command has been removed from the standard distribution due
to its inappropriate use by high-level managers.

Avatar
laurent.pertois
Matt wrote:

$ port info macutil
macutil 2.0b3, sysutils/macutil (Variants: universal, darwin)
http://homepages.cwi.nl/~dik/english/ftp.html

[...]


Là tu n'as que les informations du port.
Pour voir ce qui est installé tu peux utiliser :

$ port contents macutil


Remarque, j'aurais aussi pu faire une liste et ne prendre que la ligne
macutil pour la version en cours sur ma machine.


Une autre commande pratique pour savoir quel fichier a été installé par quel
port (ici avec un exemple) :

$ port provides /opt/local/bin/tin
/opt/local/bin/tin is provided by: tin


Tiens, je l'avais ratée cette option, merci.

--
Politically Correct Unix - UTILITIES
The "touch" command has been removed from the standard distribution due
to its inappropriate use by high-level managers.


Avatar
laurent.pertois
Thierry Loiseau wrote:

Laurent Pertois wrote:

Ca permet de voir où se trouve la commande appelée :

$ which binhex
/usr/bin/binhex


/opt/local/bin/binhex


Je n'ai pas tilté en le faisant mais là, le binhex que j'utilise est
installé d'origine en fait. Je suis en Leopard, donc il est livré
d'origine.

$ binhex -V
binhex 1.0 - Oct 4 2007 20:46:44
Copyright 2005-2007 Apple Inc.

Bonne et mauvaise nouvelle. Bonne car ça va servir. Mauvaise car les
infos que je t'ai donné sont pour cette version, pas pour celle que tu
as installé avec MacPorts, désolé, j'aurais du faire attention à ça.

Ca explique aussi que la commande "binhex encode toto.foo" ne fonctionne
pas chez toi, le comportement de la commande que tu as installé est bien
celui de la page que je t'ai donné à deux reprises.

Il n'y a plus qu'à comparer avec toi...


Sur ce dernier point, rien ne se passe :

$ binhex
(ligne vide) => je fais control + c pour reprendre la main.


$ /opt/local/bin/binhex -H
File input options:
-r: read as resource files
-d: read as data files
-u: read as data files with Unix -> Mac text file translation
-U: a synonym for -u
-c cr: creator if one of the above options is used
-t ty: filetype if one of the above options is used
Binhex specific options:
-r: do not use run length encoding
-i: give information only, do not write
-l: give listing
-q: query for every file/folder before writing
-V: give information about this version
-H: this message
Default is silent writing

Bon, je suis comme toi, circonspect, il est très désagréable ce binhex
là, celui d'Apple a le bon goût d'être efficace :-/

(et l'option encode ne fonctionne pas dans celui des macutils, d'où
l'erreur que tu as)

--
Politically Correct Unix - UTILITIES
The "touch" command has been removed from the standard distribution due
to its inappropriate use by high-level managers.


1 2 3 4