#Script For Organizing Hyperlinks?
13 messages · Page 1 of 1 (latest)
Send the Apple scripts your written let me have a look at them
The rtf files would need to be converted first to normal plain text so it can be easily parsed
I can probably write you another Python code that could work
(I’m not home though , I’d be home in like an hour )
ok thanks man, if this helps the RTF file is embedded in a way that the current script isn’t set up to extract.
But is there a standalone rtf file ??
If there are no personal information in the rtf file send it here as well
@trim narwhal Hey buddy see what i mean?
your rtf file doesnt have actual links, ive rewritten the program though, and it should work if there are actual links
so @trim narwhal after writing the program again and now it actually works so couple of things found in your code was:
- Bad file Reading mode
- Wrong Regular expression matching
- subprocess module import error
- Bad way of handling file operations
CHangelogs
- Prompt for directory of the file
- Script automatically saves the output file and also opens it.
- CONVERT THE RTF FILE TO PLAIN TEXT FOR IT TO WORK - I WOULD ATTACH THE TXT FILE AS WELL< AND YOU CAN ADD MORE LINKS TO IT AS YOU WISH TO
- Better file error handling
- Updated file Reading.
@trim narwhal this is the revised code which ive made and as you see it works just fine
And this is how to convert RTF files to plain text
(your rtf file doesnt have any links make sure it has links)
So here is the updated and correct RTF files along with how the txt file containing the links should be and then the main rtf.py file
(i added comments to the code so you can see what each stuff does )
You can download it here
HOPE THAT HELPS!
Thanks bro bro
@trim narwhal dont forget to tag post as resolved