maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [SOLVED] Need help: Export contacts to vcard (https://talk.maemo.org/showthread.php?t=75699)

isfr21 2011-08-12 12:12

[SOLVED] Need help: Export contacts to vcard
 
My phones touch screen doesn't work anymore, can't touch and can't see on it. What I have been doing is using video-out feature and using N900 through tv. Only thing that has functionality is X-terminal. Anyways, all I need backed up is my contacts in a Vcard format. Anyone know how to do that through X-terminal? If not, maybe someone can export their contacts through the regular export wizard in the addressbook gui and see the log output to figure out the command I would need to enter in x-terminal?

nicolai 2011-08-12 12:38

Re: Need help: Export contacts to vcard
 
1 Attachment(s)
Here is a simple Python script for exporting the contacts in vcard3 format.
Other than the backup program, this script does not create vcard files
for every single contact, and it will not include contact photos properly.
Copy the file somewhere on your phone and execute it with this command:
Code:

python export_vcard.txt > output.txt
now the file output.txt will include your vcard entries.

Hope this helps

Nicolai

Estel 2011-08-12 13:08

Re: Need help: Export contacts to vcard
 
H-E-N + external mouse?

isfr21 2011-08-12 13:10

Re: Need help: Export contacts to vcard
 
Thanks nicolai, but problem is I can't select the < symbol because my touch screen doesn't work. Any other options?

isfr21 2011-08-12 13:17

Re: Need help: Export contacts to vcard
 
Quote:

Originally Posted by Estel (Post 1068460)
H-E-N + external mouse?

Good idea, but I don't have the usb host cable, anyway you can help me or direct me towards the steps needed to connect a bluetooth
mouse only through x-terminal?

shallimus 2011-08-12 13:28

Re: Need help: Export contacts to vcard
 
Quote:

Originally Posted by isfr21 (Post 1068462)
Thanks nicolai, but problem is I can't select the < symbol because my touch screen doesn't work. Any other options?

Edit a text file which already has a > symbol, use the keyboard (shift + arrow keys) to select, ctrl-C to copy, then paste into terminal in the middle of the whole command.

isfr21 2011-08-12 17:23

Re: Need help: Export contacts to vcard
 
Quote:

Originally Posted by shallimus (Post 1068468)
Edit a text file which already has a > symbol, use the keyboard (shift + arrow keys) to select, ctrl-C to copy, then paste into terminal in the middle of the whole command.

Thanks, but the paste function doesn't work either because the only way to paste is to "tap" the drop down menu and tap paste which I'm unable to do since my touchscreen is completely unusable.

nicolai 2011-08-12 19:47

Re: Need help: Export contacts to vcard
 
1 Attachment(s)
I made a new python script. It icnludes the output file handling
just call
python export_vcard.txt
and it saves all contactdata to output.txt

isfr21 2011-08-12 20:54

Re: Need help: Export contacts to vcard
 
Quote:

Originally Posted by nicolai (Post 1068705)
I made a new python script. It icnludes the output file handling
just call
python export_vcard.txt
and it saves all contactdata to output.txt

Wow, thanks so much really do appreciate you helping me out.

isfr21 2011-08-12 21:16

Re: Need help: Export contacts to vcard
 
Quote:

Originally Posted by nicolai (Post 1068705)
I made a new python script. It icnludes the output file handling
just call
python export_vcard.txt
and it saves all contactdata to output.txt

I just tried it but received this error:

Traceback (most recent call last) :
File "export_vcard.txt" in abook.get_all_contacts () :
AttributeError: 'NoneType' object has no attribute 'get_all_contacts'


All times are GMT. The time now is 20:52.

vBulletin® Version 3.8.8