IPB

Bienvenue invité ( Connexion | Inscription )

 
Reply to this topicStart new topic
> [Résolu] Applescript et upload sur ftp - Diagnostic erreur
Options
Oesten
posté 11 Dec 2011, 20:14
Message #1


Adepte de Macbidouille
*

Groupe : Membres
Messages : 180
Inscrit : 3 Feb 2004
Membre no 14 213



Il manquait un "/" après "mondossier". La bonne rédaction était donc :

Code
tell application "Finder"
    set fichier to choose file
    set chemin to (POSIX path of fichier)
    do shell script "usr/bin/curl -T " & chemin & " ftp://login:[email protected]/mondossier/"
end tell


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

Bonsoir,

Je cherche à créer un script Applescript qui me permette de téléverser un fichier dans un répertoire ftp.

Voici la rédaction que j'ai tentée :

Code
tell application "Finder"
    set fichier to choose file
    set chemin to (POSIX path of fichier)
    do shell script "usr/bin/curl -T " & chemin & " ftp://login:[email protected]/mondossier"
end tell


L'erreur qui m'est renvoyée par Appelscript est la suivante :

Citation
error "Erreur dans Finder : % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (25) Failed FTP upload: 553" number 25


Quelqu'un peut-il m'aider à décrypter ce que tente de m'expliquer Applescript ?

Merci !

Ce message a été modifié par Oesten - 12 Dec 2011, 14:39.


--------------------
- Hackintosh (i5 4460 3,2 Ghz - CM Gigabyte Z97P-D3 Rev. 1.1 - AMD Radeon RX 580 4Go - MacOS 10.14.6
- MacbookPro 13" (mi-2009 Core2Duo 2,53Ghz - 2x2Go RAM)
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 utilisateur(s) sur ce sujet (1 invité(s) et 0 utilisateur(s) anonyme(s))
0 membre(s) :

 



Nous sommes le : 18th July 2025 - 09:45