Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to send notes to a Bluetooth phone' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to send notes to a Bluetooth phone
Authored by: momerath on Apr 16, '04 07:48:09PM
The script doesn't work as is; the spaces in the bluetooth app name need to be escaped (and of course the space after 'Utilities' needs to be removed): os.system("/usr/bin/open -a /Applications/Utilities/ Bluetooth\ File\ Exchange.app %s" % tmpf.name) is what it should read.

[ Reply to This | # ]
A script to send notes to a Bluetooth phone
Authored by: cschin on Apr 16, '04 08:42:21PM
The line

tmpf.write("BEGIN:VNOTEnVERSION:1.1nBODY:%snEND:VNOTE" % msg[:-3])
should be

tmpf.write("BEGIN:VNOTE\nVERSION:1.1\nBODY:%s\nEND:VNOTE" % msg[:-3])
The
\
gets stripped.

[ Reply to This | # ]