Hi,

Le jeudi 19 mai 2005 à 18:34 +0200, DaffyDuke a écrit :

[...]

> However, i can access to my photos or sound on my phone with obexftp. An
> Obex Plugin is planned or I had to continue in command line ? It should
> be usefull :-) Or just add support for directories as addressbook,
> contacts, tasks. 

If anyone is able to create a pretty plugin for multisync, here is a
small shell to retrieve files (pictures, sounds, apps) from a Sony
Ericsson k500i locally :


[EMAIL PROTECTED]:~/datas/photos/phone$ cat sync_sony
#!/bin/bash
#
sudo /etc/init.d/irda-utils restart

# list folders
DIR=`pwd`
obexftp -i -l 1 > folders1.txt
cat folders1.txt|sed -e "s/></\>\n</g"|grep -v listing |grep folder|awk
-F'"' '{print $2}' > folders2.txt

# parse folders
for dir in `cat folders2.txt`
do

# list folders
        echo "Retreiving files list ..."
        obexftp -i -c $dir -l 1 > files1_$dir.txt
        cat files1_$dir.txt|grep file|awk -F'"' '{print $2}' > files2_
$dir.txt
        echo "Fetching $dir ..."
        IFS=,
        mkdir $dir
        cd $dir
        for files in `cat ../files2_$dir.txt|sed -e "s/$/\,/g"|tr -d
'\012'`
        do
                echo "==== $files ===="
                obexftp -i -c $dir -g "$files"
        done
        cd $DIR
        IFS=
done
cd $DIR
rm folders*.txt files*.txt





Quick and dirty but it works :-)

Any news for the vcard conversion in multisync to be compatible with old
phones and evo 2.2 ? Thanks .




PS : I add my LUG list in CC cause there were a thread about it,  some
times ago.

-- 

DaffyDuke/Home  [ jabber: [EMAIL PROTECTED] | iCQ: 7504537 ]
C.L.X. : http://clx.anet.fr/  |  L'Autre Net : http://lautre.net/
         La Passerelle : http://www.legrandmix.com/

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to