Hi, in addition to @pkahrel comment, you could use a GREP query to apply a character style to your tel numbers. (Or paragraph, depending on how your design is set). Then, as suggested by pkahrel, you'll need a script. I personally don't find that simple, especially to set up the hyperlink as "tel:" instead of "http://" but maybe a specialist can help you on this one. Here's the beginning of a script allowing you to find your numbers, assuming a character style is applied: var myDoc =app.activeDocument; var myLW = 100; var myStyleNames = myDoc.characterStyles.everyItem().name; var myDialog = app.dialogs.add({name:"Create tel: hyperlink", canCancel:true}); with(myDialog.dialogColumns.add()){ with(borderPanels.add()){ with(dialogColumns.add()){staticTexts.add({staticLabel:"Choose your tel number Character Style: ", minWidth:myLW});} with(dialogColumns.add()){var myChooseStyle = dropdowns.add({stringList:myStyleNames, selectedIndex:0});} } } var myResult = myDialog.show(); if(myResult == true){ var mySelStyle = myStyleNames[myChooseStyle.selectedIndex]; myDialog.destroy(); } else{ myDialog.destroy(); } app.findTextPreferences = NothingEnum.nothing; app.changeTextPreferences = NothingEnum.nothing; app.findTextPreferences.appliedCharacterStyle = mySelStyle.toString(); var mySearch = app.findText(false); alert ('you have '+mySearch.length + ' tel numbers to convert'); for(i=0 ; i<mySearch.length; i++){ var number = mySearch.contents; // here's the tricky part for me, specialists please advice // myDoc.hyperlinkURLDestinations.add(number, {name:number}); }
... View more