Hey everyone,
The following example is entirely hypothetical.
Let's say I keep a large list of historical events in a rich-text document with the following pattern:
*Historical event* | YouTube video 1 | YouTube video 2 | ...
Inside each of the "YouTube video" phrases is a hyperlink that redirects me to the equivalent YouTube video.
If, for whatever reason, I wished to mass edit those links[1] and at the same time, the links were not inside those phrases, but instead right next to them in simple text form[2], I could easily hit Find "www.youtube.com/watch?v=" and Replace All with "youtu.be/"
Or Find "www.youtube" and Replace All with "m.youtube", and it would be fine after that.
However since the links are inside the phrases, I cannot do a simple Find/Replace, and as I said the list is very large, so I cannot possibly go through each one of them to manually change it.
Is there an automated process that would do this for me? Maybe a script, or something with the app Automator?
Note that currently the document itself is an RTF file and I use TextEdit and Microsoft Word for Mac. I am of course willing to convert the document into another format, or use another app for this matter.
Again, it's obvious there's no reason to convert links to their shortened versions, but this was just an example, just in order to get an idea of the process that I need to put in use for several other purposes in the future.
Please suggest solutions or alternatives. Thank you in advance.
__________________________________________________
Footnotes
Please, ignore the space after "https://"
1. e.g., from https:// www.youtube.com/watch?v=A1B2C3D4E5F
to YouTube's shortened URL https:// youtu.be/A1B2C3D4E5F
or YouTube's mobile site https:// m.youtube.com/watch?v=A1B2C3D4E5F
2. e.g., YouTube video 1 → https:// www.youtube.com/watch?v=A1B2C3D4E5F
The following example is entirely hypothetical.
Let's say I keep a large list of historical events in a rich-text document with the following pattern:
*Historical event* | YouTube video 1 | YouTube video 2 | ...
Inside each of the "YouTube video" phrases is a hyperlink that redirects me to the equivalent YouTube video.
If, for whatever reason, I wished to mass edit those links[1] and at the same time, the links were not inside those phrases, but instead right next to them in simple text form[2], I could easily hit Find "www.youtube.com/watch?v=" and Replace All with "youtu.be/"
Or Find "www.youtube" and Replace All with "m.youtube", and it would be fine after that.
However since the links are inside the phrases, I cannot do a simple Find/Replace, and as I said the list is very large, so I cannot possibly go through each one of them to manually change it.
Is there an automated process that would do this for me? Maybe a script, or something with the app Automator?
Note that currently the document itself is an RTF file and I use TextEdit and Microsoft Word for Mac. I am of course willing to convert the document into another format, or use another app for this matter.
Again, it's obvious there's no reason to convert links to their shortened versions, but this was just an example, just in order to get an idea of the process that I need to put in use for several other purposes in the future.
Please suggest solutions or alternatives. Thank you in advance.
__________________________________________________
Footnotes
Please, ignore the space after "https://"
1. e.g., from https:// www.youtube.com/watch?v=A1B2C3D4E5F
to YouTube's shortened URL https:// youtu.be/A1B2C3D4E5F
or YouTube's mobile site https:// m.youtube.com/watch?v=A1B2C3D4E5F
2. e.g., YouTube video 1 → https:// www.youtube.com/watch?v=A1B2C3D4E5F