Automatically embed all links in indesign?
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Automatically embed all links in indesign?
- This topic has 7 replies, 2 voices, and was last updated 3 months, 3 weeks ago by David Blatner.
-
AuthorPosts
-
-
May 31, 2011 at 7:36 am #59718Lala LalaParticipant
Is there a script to do this? I'd love to have some setting that just automatically embeds everything… whether it's placed, copy/pasted, drag-n-dropped, whatever. I understand the risks as far as creating huge filesizes.
Ideally this would happen with zero interaction from me, the idea is I skip the process of opening the links panel and manually doing it… it just happens quietly in the background with every graphic I use.
-
June 3, 2011 at 2:27 am #59758Kasyan ServetskyMember
var doc = app.activeDocument;
var links = doc.links;for (var i = links.length-1; i >= 0; i–) {
links[i].unlink();
} -
June 3, 2011 at 7:25 am #59762Lala LalaParticipant
very nice, I'm looking forward to trying this. Thank you!
-
November 28, 2012 at 9:55 am #63648judybinfoMember
VERY USEFUL – thanks. Note: the “i-” is two negative signs (i–), not 1(i-). I copied and pasted so didn't notice until the script fails. I was able to also create an unembed script for storing on my computer after sending to printer. Great idea!
-
November 28, 2012 at 12:37 pm #63649Lala LalaParticipant
Thanks Judy, and thanks also to Kasyan.
If anyone else was confused, Judy's saying that the script won't work if you copy and paste it as-is, because a critical part of it got changed when Kasyan posted it. The forum software automatically changes two dashes to a long dash without asking you. After about twenty edits I think I've figured out how to properly work around this and give you copy – paste-able code.
var doc = app.activeDocument;
var links = doc.links;for (var i = links.length-1; i >= 0; i DASH DASH LOL) {
links[i].unlink();
}Actually, after twenty edits, I give up. A change would have to be made by the forum administrator to fix this “useful” “feature” of wordpress forums. Seemingly nothing I do can allow two dashes to be typed side-by-side, which breaks a ton of copy/pasted code I'm sure.
-
December 3, 2012 at 5:40 am #63662Uwe LaubenderMember
@CreeDo – a shorter version without the two dashes would be:
app.activeDocument.links.everyItem().unlink();Uwe
-
December 14, 2023 at 7:01 am #14398263Heidi RosendallParticipant
This looks very cool, however, I’ve never created my own script before, I’ve uploaded them but not made them. So, do I paste the final code into a text file and save it with the script extension? Any caveats?
-
December 14, 2023 at 8:33 am #14398296David BlatnerKeymaster
Here you go, Heidi:
How to Install a Script in InDesign That You Found in a Forum or Blog Post
-
-
-
AuthorPosts
- You must be logged in to reply to this topic.