Copy link to clipboard
Copied
Hi all, I have an issue that takes a lot of time manually to input and I couldn't figure the way to automate it.
Basically client wants to input the twitter handles of multiple users in the pdf and hyperlink the handles so that when you click on the twitter handle it leads to the twitter profile. My only solution was to select the each handle and then input the https: etc... in hyperlink window. Is there a way to do this automatically as it takes a sizeable chunk of my time? Thanks
The search pattern you used is for JavaScript (and some other programming languages). Try this one:
@\w+
P.
Copy link to clipboard
Copied
If these are shown as a url (e.g. https://twitter.com/dianeburns_sf), you can use "Convert URLs to Hyperlinks" on the Hyperlinks panel menu.
Copy link to clipboard
Copied
Unfortunately they are not. They are currently shown as @janedoe. I found a script called Gryperlink which can find and add hyperlink but I'm having trouble editing the script so it works. All it does now is find the characted @ and adds the hyperlink and I want it to add hyperlink/username
This is the script:
searchPattern: /[@]/g,
link: "https://twitter.com/$1",
charStyleName: "Hyperlink",
Copy link to clipboard
Copied
The search pattern you used is for JavaScript (and some other programming languages). Try this one:
@\w+
P.
Copy link to clipboard
Copied
Hi Peter,
thank you VERY MUCH for the tip, now it does add hyperlink to the whole word with @ and the link actually leads to the designated twitter profile.
You just saved me 4 hours of work every week. Thank you.
Just in case someone else needs to find it, here is the code:
searchPattern: /(@\w+)/g,
link: "https://twitter.com/$1",