Reply
Thread Tools
Posts: 201 | Thanked: 57 times | Joined on May 2010
#1
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?

Last edited by isfr21; 2011-08-14 at 04:11.
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#2
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
Attached Files
File Type: txt export_vcard.txt (154 Bytes, 155 views)

Last edited by nicolai; 2011-08-12 at 12:49.
 

The Following User Says Thank You to nicolai For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#3
H-E-N + external mouse?
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following User Says Thank You to Estel For This Useful Post:
Posts: 201 | Thanked: 57 times | Joined on May 2010
#4
Thanks nicolai, but problem is I can't select the < symbol because my touch screen doesn't work. Any other options?
 
Posts: 201 | Thanked: 57 times | Joined on May 2010
#5
Originally Posted by Estel View Post
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's Avatar
Posts: 568 | Thanked: 969 times | Joined on Dec 2009 @ Toronto
#6
Originally Posted by isfr21 View Post
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.
__________________
tinfoilhat.dll: Trojan horse detected
Sailfish want list: calendar bugfixes, glanceable agenda, Swype or similar
Evolution continues (but we're still pre-Cambrian)

 

The Following User Says Thank You to shallimus For This Useful Post:
Posts: 201 | Thanked: 57 times | Joined on May 2010
#7
Originally Posted by shallimus View Post
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's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#8
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
Attached Files
File Type: txt export_vcard.txt (293 Bytes, 111 views)
 

The Following 2 Users Say Thank You to nicolai For This Useful Post:
Posts: 201 | Thanked: 57 times | Joined on May 2010
#9
Originally Posted by nicolai View Post
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.
 
Posts: 201 | Thanked: 57 times | Joined on May 2010
#10
Originally Posted by nicolai View Post
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'
 
Reply


 
Forum Jump


All times are GMT. The time now is 13:46.