Automation of URLS in InDesign CS4 catalogue numbers
Hello
Anyone know if a script can be used to automate the creation of URLS based on catalog numbers in a document? For example, many of our data sheets, brochures, etc. have long lists of numbers of catalog on the last pages. We want to use them as links when you export as a PDF. the problem is, there is so much, he should always click on them all and create individual links.
I read here on the forums that someone asked a similar question about using character Style sheets to content 'tag' to convert the URL. We want to do the same thing, only to add the catalog number to a static URL. For example, www.mycompany.com/catalogue/XXXX where XXXX is a catalogue number of the text that is in a certain style of character. We would then create a link by using this URL on the catalogue number in the text.
Thank you
Sintares
Paul Hurd wrote:
Hello
Anyone know if a script can be used to automate the creation of URLS based on catalog numbers in a document? For example, many of our data sheets, brochures, etc. have long lists of numbers of catalog on the last pages. We want to use them as links when you export as a PDF. the problem is, there is so much, he should always click on them all and create individual links.
I read here on the forums that someone asked a similar question about using character Style sheets to content 'tag' to convert the URL. We want to do the same thing, only to add the catalog number to a static URL. For example, www.mycompany.com/catalogue/XXXX where XXXX is a catalogue number of the text that is in a certain style of character. We would then create a link by using this URL on the catalogue number in the text.
Thank you
Sintares
I find the hyperlink feature in InDesign to be very confusing, but I think this should do what you want:
var myDoc = app.activeDocument; var myLinkStyle = myDoc.characterStyles.itemByName("link"); // the Character style of the links var myURL = "http://www.mycompany.com/catalogue/"; // url of your company var i, myLinks, myLink, mySource, myDestination; for (i = myDoc.hyperlinkTextSources.length-1; i >= 0; i--){ mySource = myDoc.hyperlinkTextSources[i]; if (mySource.sourceText.appliedCharacterStyle == myLinkStyle){ mySource.remove(); // removes existing hyperlinks to avoid "double bookings" } } app.findGrepPreferences = null; app.findGrepPreferences.appliedCharacterStyle = myLinkStyle; myLinks = app.findGrep(); for (i = 0; i < myLinks.length; i++){ myLink = myLinks[i]; mySource = myDoc.hyperlinkTextSources.add(myLink); myDestination = myDoc.hyperlinkURLDestinations.add(myURL + myLink.contents); myDoc.hyperlinks.add(mySource, myDestination); }
Tags: InDesign
Similar Questions
-
InDesign CS4 page numbering not correctly displayed in the Pages panel
Hello
I searched the forums for a solution to my problem before posting. I'm sorry if I'm doubly question from someone, but I'm going:
I noticed this problem I have about 6 months ago. When I create a simple document with auto-numbering of all right. When I try and create a section (for example, I want my numbering to start at 1 on page 3) it actually works, however, in the Panel Pages, the pages appear with their base numbers. You agree that it is quite confusing. I tried different files, the same files on different computers and so forth. The problem has to do with my installation of InDesign CS4 and I guess it's a kind of a display option that I accidentally turned on.
Could someone please suggest a solution? Thank you!
-
Hello
My computer crashed and I lost Indesign CS4. I want to download to my new computer (PC), but it is so more appears in my order history (I bought in 2008). He appears only in my products, but with any download button.
How can I get that back?
Any help is greatly appreciated!
Hello
You can Download Adobe Creative Suite 4 products
Please check the help below document:
Quickly find your serial number
In the case of the volume license product, please visit: site Web of Adobe License | Serial numbers | Orders | Accounts
Kind regards
Sheena
-
(Sorry if this has found its way to the bad advice Forum: I can't seem to find a way to the appropriate InDesign CS4 'Community' to publish it in!)
My Mac of InDesign CS4 version 6.0.6 version started crashing when you try to print.
The Crash log shows that the individual has crashed the thread in order to always include the line:
com.macromedia.Flash Player.authplaylib 0x1c5ac2dd ExternalPlayer_Initialize + 1864739
.. which is repeated twice, with different similar numbers just before and after "ExternalPlayer_Initialize".
I guess that there is a problem with InDesign calling "macromedia. '" Flash Player"instead of Adobe Flash Player, but I don't know where or how to change the words 'macromedia '. Flash Player"to encourage the program runs correctly.
Note: The program has been installed on a Mac that had disappeared and was found and returned, but in the meantime we would have bought a Mac replacement. InDesign has been uninstalled and then some Mac initially lost, and a previous full backup of this Mac was then restored on the new Mac, so that was a complete copy of the original (.. so respect for restrictions on use..)
After that the program was restored on the new Mac, it prints more.
Any help or suggestions, please?
This solved my problem:
http://helpx.Adobe.com/x-productkb/multi/crash-printing-Illustrator-InDesign-CS3.html
-
InDesign CS4 ExtendScript cannot report fn.exists State?
Hi all -
I am running Windows XP and Indesign CS4 (6.06), and I can't get ExtendScript to tell me that a file exists. It seems to be because the XML of the placed files has a different URI to ExtendScript wants to see. Here's the XML to a file:
Here's a not very attractive code:
var fn = new File('file:///Documents%20and%20Settings/Admin/My%20Documents/SAP-2_2_1-ISSUED%20TO%20CHARLES/Links/Signs/A1104.pdf'); $.writeln('file:///Documents%20and%20Settings/Admin/My%20Documents/SAP-2_2_1-ISSUED%20TO%20CHARLES/Links/Signs/A1104.pdf'); $.writeln('exists: ' + fn.exists); var pictureElement = app.activeDocument.xmlElements[0].xmlElements[4].xmlElements[0].xmlElements[6].xmlElements[0].xmlElements[0]; fn = new File(pictureElement.xmlAttributes[0].value); $.writeln(pictureElement.xmlAttributes[0].value); $.writeln('exists: ' + fn.exists);
And here is the result of the execution of the code:
It seems that ExtendScript reports true for fn.exists if the URL begins with "file:///Documents...". «, but false reports if the file name begins with «file:///C:/Documents...» "that is (unfortunately) results that InDesign wants to be placed in the href XML photo.
As a side note, none of this seems a problem with CS5 OSX.
I know I couldn't have given people enough information here, but it rings a Bell with anyone? What is going on?
Best and thanks, Charles
Charles:
I am running Windows XP and Indesign CS4 (6.06), and I can't get ExtendScript to tell me that a file exists. It seems to be because the XML of the placed files has a different URI to ExtendScript wants to see.
As tomaxxi involved and I think that you said yourself, the file:// URL syntax on letters pilot BACK is not universally defined with ExtendScript and XML InDesign apparently are doing differently. I think you're much better to simply give the path of the platform to the File() constructor.
By the way: method of Marijan that feels familiar to me (ha ha ha!) ignores files that might actually have file:/// in their filenames somewhere I hope that's not possible.
-
problem with the color swatches in Indesign CS4
Color PMS InDesign CS4 samples: when I try to create a new grade of PMS, I get only Pantone process numbers
Yes
-
help by hyperlinks in applescript indesign cs4
Hi there I'm hoping someone can help:
I wrote an applescript script to search for a document, when files in an external folder list matches the search text string, a hyper link is created for this external file. See below:
the value of the_folder to choose a folder
Tell application "Finder".
files_list value all files in the the_folder folder with the extension "pdf".
tell the end
Tell application "Adobe InDesign CS4"
repeat with FileRef in files_list
value FileName name of FileRef
game find the preferences of text for nothing
-Look in the document.
game to find what to find preferences text file name
-Set search options.
case-sensitive to find game change the text false options
game includes notes from the change text true search options
game includes hidden layers, text search change false options
game includes locked layers to find text search change false options
game includes stories locked to find text search change false options
game includes master, text search change false options pages
set options of text of whole word search replace false
say active document
myFoundItems (find text) value as string
If FileName = myFoundItems then
FileNewName FileRef name value as string
value name of FileRef TxtName
value TheURL "files: files /" & FileNewName
try
set the destination URL of the hyperlink with properties {name: TxtName, destination URL: TheURL}
error
the target value hyperlink URL TxtName
end try
set TheHSName to 'HS' & TxtName
TheHS to hyperlink text source with properties the value {name: myFoundItems, text source: myFoundItems, hidden: false} < < error on this line
do the new hyperlink with properties {destination: the, source: TheHS, visible: false}
end if
end tell
end repeat
tell the end
However, I get an error: "Adobe InDesign CS4 has been an error: can not get the text of the hyperlink text source expected, but had \"applescript.pdf\ '.»»
I can't understand the source text is a string...
Thank you
Keith
In fact, even if this resolve your hyperlink stuff, you have problems earlier with your names and files of the URL - you cannot create URLS like that. Try something like this:
the value of the_folder to choose a folder
Tell application "Finder".
Set files_list name of each file in the folder the_folder with the extension "pdf".
the value url_list URL of all the files in the folder the_folder which the extension is "pdf".
tell the end
Tell application "Adobe InDesign CS4"
set preferences for text search for nothing
-Set the search options.
game of the text change false search options
game includes notes from the change text true search options
game includes hidden layers, text search change false options
game includes locked layers to find text search change false options
game includes stories locked to find text search change false options
game includes master, text search change false options pages
set options of text of whole word search replace false
Repeat with j from 1 to the number of files_list
the value of FileName point j of the files_list
the value of point j of the url_list TheURL
game find what to search file name text preferences
tell the active document
the value of myFoundItems to find text -search; returns a list of object references
If myFoundItems is not {}, then
-make this a unique destination
If not (exists URL of the hyperlink destination FileName) then
the value of the do destination URL of the hyperlink with the properties (name: FileName, destination URL: TheURL)
on the other
The value target of hyperlink URL FileName
end if
Repeat with i from 1 to the number of myFoundItems
Set TheHSName to "HS" & FileName & "-" & I -If you don't want the default name, you will need to make unique
do source text of hyperlink with properties worth TheHS {name: TheHSName, text source: (point i of myFoundItems), hidden: false}
do new hyperlink with properties {destination: the, source: TheHS, visible: false}
end repeat
end if
tell the end
end repeat
tell the end
-
InDesign cs4 - from a list, but not with the number one
Hello
I think remember me an option 'start at number' for lists in previous Indesigns. He can not see in my indesign cs4
Want the list at number 12 instead of number 1.
Bullets and numbers...
Choose: Numbers (rather than None or balls)
Under Mode, choose Start At:
-
InDesign CS4 6.0.4 (Mac) of serious editing problems
InDesign CS4 crashes intermittently when I change the text and tables. He particularly dislikes removal and cut and paste. Also, it does not replace and find. He works in a few stories, but not in others. Sometimes, it crashes in a minute or two. I had at least 20 error reports sent to Apple and Adobe. Yesterday, I missed the deadline for a large document because of this problem. (Thought it was an import Word or CS4 problem copy/past, but today crashed on a cut and paste a native table.)
Have you tried:
1. different documents
2. another mac (recently purchased and had copied all things more since my MacBookPro using the Migration Wizard - and whether he will because it does not work with my 2yo 30 inch display)
3. power FontAgent Pro off and moved fonts to the font of the user library
4. uninstalled and reinstalled InDesign CS4. The installation report said there were errors in the installation (just numbers so I don't know what are the mistakes.) Then following said there was a corrupt police, but not indicated in the original report).
5 had Finangler of fonts to remove all font caches.
I have another document to do today and I stepped back to CS3. So far no problem. Using the same fonts so there is no corruption of police...
Anyone know what could be the problem? Even better: the solution?
Thanks for any help.
Have you reset your http://indesignsecrets.com/rebuilding-indesign-preferences.php preferences
-
InDesign CS4 is not available by default programs dialog box
I am running w/Service Pack 2 for Windows Vista on a Dell computer. The computer had versions of Adobe InDesign CS3 and CS4 installed. I uninstalled CS3, but now, when I double click on any file *.indd Windows application which program use to open the file. InDesign CS4 (and many other installed programs) do not appear in the default programs dialog box. I find using the Browse button, but when I select, and then click 'Open' computer still does not appear in the dialog box window. How can I get Windows to see all programs, so that I can associate extensions with appropriate applications? I can open the files in InDesign CS4, but not by double-clicking on the file. Right now, all my obtained .indd files associated with DreamWeaver CS3.
Hello Heather M DaVinci.
Click the number of the KB article to bring up a Microsoft article on the configuration of the default associations. There is an automatic for FIXIT
Windows Vista.
Article KB 950505: when you run an .exe file on a Windows Vista or Windows 7-based computer, the file may start another programIf this does not help, I post in the Community Forums of Adobe for InDesign CS4.
Sincerely,
Marilyn
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think -
InDesign CS4 and Adobe Acrobat 9 Pro installation
We bought Adobe Indesign CS4 in 2010 and have used without a problem. But we now need download Acrobat 9 Pro. I can't locate where this file is located on the CD. There is a second DVD, but it is titled Learning Adobe Creative Suite 4. How can I download Acrobat Pro. We wouldn't use it much and cannot justify obtaining the latest version to $16 per month.
Thank you
Download Download Acrobat 8 and Acrobat 9
Install and enter your serial number for Acrobat 9. It is usually a different number for the serial number now.
-
No font Futura in InDesign CS4... help!
Why are there no Futura on my InDesign CS4 font options and how can I get that back on there? My company uses for everything, and they're not going to stop using it because there many changes in design of society. Is there anyway that I can come back this font in my InDesign software with out having to pay for it? If so, how?
Thank you! Any help is much appreciated!
Ask your senior command are to buy the license.
-
I'm new to Indesign. It's about Indesign CS4 version 6.0.6
I restarted my computer (Windows 7 Professional, version 6.1.7601 Service Pack 1 Build 7601). I started to Indesign. I created a new document using the predefined default settings.
In these circumstances, I find the following things: in the tools Panel, only the selection tool is available. There is no answer to a click on the icon for any other tool. In the pages Panel, there is no response to a click on the 'Create new page' icon at the bottom of the Panel, but I can add a new page by choosing "Insert Pages," which is the best choice for the menu for this Panel. However, once I have more than one page, I can't select a page by clicking the page icon in this Panel. If I open Windows Notepad, type some text and copy it, then I can ' Edition > paste "use in Indesign to create a block of text. I read a relevant text in the first 5 chapters of the indesign_cs4_help.pdf and can't find any preparatory action I should take in order to use the text on a new document tool. What I'm missing here? Is there a way that I could hire accidentally who survive a reboot?
See the signs and tools InDesign respond not to the clicks of the mouse (Windows 7/Vista)
-
InDesign CS4 purchase option - no. CLOUD!
I would like to know why Adobe decided that the cloud is the way forward?
I have CS4 Web Premium. It works very well for me and I need to upgrade. However, I want to buy InDesign CS4 to go with my now, BUT that is not feasible. Now, they want you to pay a monthly fee... which I have NO confidence Cloud products. I want tangible objects in my hand and not have to pay monthly service fees. What a bunch of crap!
If anyone knows where I can buy a new InDesign CS4 with SN program, let me know. Or, if there is an alternative program that won't lock you in monthly subscription fees, let me know.
Thank you!
CS4 is no longer sold, you can buy CS6
Link to buy the CS6 via phone http://www.adobe.com/products/cs6.html read all the way down
From what I read in a forum message, newer than 10.7 Mac must subscribe in the cloud instead of buy CS6... and someone with Win10 must also subscribe to the cloud for CS6 is not compatible (meaning that the seller will ask you your operating system and not sell you CS6 if she does not work on your computer... I don't know if this means that Win7 and you can't buy if you have Win8)
Please report back with your operating system if you are able to buy CS6
-
Normally I use CC but I need INDESIGN CS4 for the very special project with Cyrillic fonts and old files. Anyone know how I can download correct verseion of it for Mac?
You can download CS 4 products at the bottom of the link:
Maybe you are looking for
-
No map showing "Find my iPhone" (iPhone 6 s more iOS9.3.2)
Nice day! Help, please! No display card in only to find my iPhone I can see other phone & distance between phones, but not card. Only the empty boxes iPone 6 s Plus 128 GB iOS 9.3.2
-
Its problem - program uninstalled by mistake
Hello, I uninstalled a program by mistake. Once I did this, all the bass disappear from the music, I play... No all it sounds like a radio station in the House... it isn't funny!Unfortunately I don't remember the name of the program, but I think (not
-
14F L40 satellite with a graphic resolution problem
Hello! I have Toshiba Satellite L40 - 14F with XP Home SP2 and BIOS 5.10. I installed this OS with the old version of the BIOS (1.60 - if good I remember)- and everything worked well.About a month ago, I upgraded the BIOS to version 5.10 (by that I r
-
I tried to combine a bunch of files in my pictures, doesn't seem to work. I then tried to remove. the contents of the folders seems to have disappeared, but I can not detected empty folders
-
Q10 in gray blackBerry camera setting
Hello. I need to change my settings storage camera on my q10 running 10.2, but I have the camera app open, then I swipe down to bring up the taskbar settings, the settings button is dimmed and I can't select it. Any ideas?