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

Automatisation avec un script ?

15 réponses
Avatar
loiseauthierry
Salut,

Je voudrais trouver le moyen d'automatiser cette tache:

1 depuis le fichier situé sur le bureau n.txt
2 déplacer ce fichier vers :
<http://localhost/~thierryloiseau/trombinewtscope/arch/>
3 activer la page :
<http://localhost/~thierryloiseau/trombinewtscope/arch/archives.php>
4 sauvegarder la page sous le nom de "index.html"
5 archiver cette page + le dossier "smiles"

Applescript ?

Merci à vous pour votre aide,

Pour l'instant, je fais tous ça manuellement pour archiver d'anciens
messages de la liste de diffusion "Newton-FR"... :-((

<http://www.trombinewtscope.free.fr/>

TL
--
<http://astrophoto.free.fr> Calculatrice astronomique en
JavaScript, une carte du ciel avec la position des planètes,
animation du système solaire, et «ousqu'ilfait» jour & nuit ?

10 réponses

1 2
Avatar
loiseauthierry
Thierry Loiseau wrote:

Salut,

Je voudrais trouver le moyen d'automatiser cette tache:

1 depuis le fichier situé sur le bureau n.txt
2 déplacer ce fichier vers :
<http://localhost/~thierryloiseau/trombinewtscope/arch/>
3 activer la page :
<http://localhost/~thierryloiseau/trombinewtscope/arch/archives.php>
4 sauvegarder la page sous le nom de "index.html"


dans le dossier :
<http://localhost/~thierryloiseau/trombinewtscope/arch/>

5 archiver cette page + le dossier "smiles"

Applescript ?



:-/

Avatar
patpro ~ patrick proniewski
In article <1gwxldu.1w3zvie14oyu0wN%,
(Thierry Loiseau) wrote:

Salut,

Je voudrais trouver le moyen d'automatiser cette tache:

1 depuis le fichier situé sur le bureau n.txt
2 déplacer ce fichier vers :
<http://localhost/~thierryloiseau/trombinewtscope/arch/>
3 activer la page :
<http://localhost/~thierryloiseau/trombinewtscope/arch/archives.php>
4 sauvegarder la page sous le nom de "index.html"
5 archiver cette page + le dossier "smiles"

Applescript ?



script shell (non testé) :

----------------------
#!/bin/bash

mv ~/Desktop/n.txt ~/Sites/trombinewtscope/arch/
cd ~/Sites/trombinewtscope/arch/
curl -o index.html
--url http://localhost/~thierryloiseau/trombinewtscope/arch/archives.php
tar -czf archive.tgz index.html smiles

----------------------


patpro

Avatar
loiseauthierry
patpro ~ patrick proniewski wrote:

script shell (non testé) :

----------------------
#!/bin/bash

mv ~/Desktop/n.txt ~/Sites/trombinewtscope/arch/
cd ~/Sites/trombinewtscope/arch/
curl -o index.html
--url http://localhost/~thierryloiseau/trombinewtscope/arch/archives.php
tar -czf archive.tgz index.html smiles

----------------------


Comment m'y prendre pour écrire ça ?

TL
--
<http://astrophoto.free.fr> Calculatrice astronomique en
JavaScript, une carte du ciel avec la position des planètes,
animation du système solaire, et «ousqu'ilfait» jour & nuit ?

Avatar
patpro ~ patrick proniewski
In article <1gwxo2s.hsb1qh1smoj4zN%,
(Thierry Loiseau) wrote:

patpro ~ patrick proniewski wrote:

script shell (non testé) :

----------------------
#!/bin/bash

mv ~/Desktop/n.txt ~/Sites/trombinewtscope/arch/
cd ~/Sites/trombinewtscope/arch/
curl -o index.html
--url http://localhost/~thierryloiseau/trombinewtscope/arch/archives.php
tar -czf archive.tgz index.html smiles

----------------------


Comment m'y prendre pour écrire ça ?


avec un clavier :)
si tu ne sais pas manipuler un script shell, ne te lance pas la dedans.

patpro


Avatar
loiseauthierry
patpro ~ patrick proniewski wrote:

Comment m'y prendre pour écrire ça ?


avec un clavier :)
si tu ne sais pas manipuler un script shell, ne te lance pas la dedans.


Ne puis-je pas apprendre ?

:-/
--
<http://astrophoto.free.fr> Calculatrice astronomique en
JavaScript, une carte du ciel avec la position des planètes,
animation du système solaire, et «ousqu'ilfait» jour & nuit ?


Avatar
patpro ~ patrick proniewski
In article <1gwy2dn.1pbc7sf1303hq4N%,
(Thierry Loiseau) wrote:

patpro ~ patrick proniewski wrote:

Comment m'y prendre pour écrire ça ?


avec un clavier :)
si tu ne sais pas manipuler un script shell, ne te lance pas la dedans.


Ne puis-je pas apprendre ?



<http://www.mosx.net/dossiers/LeShell.shtml>

patpro



Avatar
junk
Thierry Loiseau wrote:

si tu ne sais pas manipuler un script shell, ne te lance pas la dedans.


Ne puis-je pas apprendre ?


Peut-être est-ce une bonne occasion d'apprendre à utiliser Automator ?

--
Nicolas Seriot
www.seriot.ch


Avatar
loiseauthierry
Nicolas Seriot wrote:

Thierry Loiseau wrote:

si tu ne sais pas manipuler un script shell, ne te lance pas la dedans.


Ne puis-je pas apprendre ?


Peut-être est-ce une bonne occasion d'apprendre à utiliser Automator ?


Où le trouve-t-on ? Et qu'est-ce ?

Merci pour l'info,

TL
--
<http://astrophoto.free.fr> Calculatrice astronomique en
JavaScript, une carte du ciel avec la position des planètes,
animation du système solaire, et «ousqu'ilfait» jour & nuit ?



Avatar
junk
Thierry Loiseau wrote:

si tu ne sais pas manipuler un script shell, ne te lance pas la dedans.
Peut-être est-ce une bonne occasion d'apprendre à utiliser Automator ?


Où le trouve-t-on ? Et qu'est-ce ?



http://www.apple.com/fr/macosx/features/automator/

Un logiciel de Apple, fourni avec Tiger, pensé pour automatiser des
tâches répétitives de manière graphique, sans écrire de code.

Je n'ai pas encore eu le temps de me pencher dessus.

--
Nicolas Seriot
www.seriot.ch




Avatar
loiseauthierry
Nicolas Seriot wrote:

fourni avec Tiger,


Ca marche avec Panther ? Je n'ai pas Tiger

:-((
--
<http://astrophoto.free.fr> Calculatrice astronomique en
JavaScript, une carte du ciel avec la position des planètes,
animation du système solaire, et «ousqu'ilfait» jour & nuit ?

1 2