Professional Documents
Culture Documents
Search
Articles Magazine Events Resources Watch & Listen Shop Forums Membership
This has bugged novice InDesign users for years: You find a script on
a forum thread or a blog post, but it's just text... that is the scripter
has pasted the text of the script in, so you can actually see the code.
For experienced users (and scripters), that's no big deal. But if you
want to use that script, but you don't know what to do with the code,
read on.
then these instructions will not work. We'll try to do another blog post
about those some other time.
Okay, you see a bunch of code and you want to run it in InDesign.
1. Copy the Script. You need to copy the text. On some web pages,
there will be a "Select Code" button for your convenience (just click it
and it selects all the code). Otherwise, just drag over the code text
and copy it to the clipboard. Make sure you get it all -- dropping even
a single character can often mean the difference between success
and failure.
CURRENT PODCAST
2. Paste the Script. You need to save the script into a text-only file. InDesignSecrets
You could paste the code into the Adobe Extendscript Toolkit Podcast 226
application, but that's overkill unless you're planning on doing
September 30, 2015 3:50
scripting yourself. Instead, paste it into a text-editor, such as
pm
TextWrangler (my favorite free text editor for the Mac), or TextEdit,
News:
or NotePad on Windows. Just make sure that you're in text-only
InDesign Tips
mode, so there's no formatting (font, styles, and so on). atAdobe MAX2015
3. Save the Script. When you save the script to disk, it must have a
.jsx file name extension (not .txt). You can save it to disk anywhere
you want, such as the Desktop, My Documents, or some other Past Subscribe
Episodes
folder.
4. Move the Script into Position. In order for InDesign to see and
use the script, it has to be in one of two places.To find that "right Recent Recent
place," switch back to InDesign temporarily and open the Scripts comments Forum
panel (it'll be in the Window menu; in CS5 or later, it's tucked in the Posts
Utilities submenu). You'll see two folders listed in the Script panel:
Application and User. I almost always store my scripts in the User
folder because they're "my" scripts. So right-click (or Control-click
Recent
with a one-button mouse) on the User folder and choose Reveal in Comments
Finder from the Context menu (or Reveal in Explorer in Window).
Alastair Leith said about
That opens a folder on your desktop in which you'll find a folder
How to Find the Font That
called Scripts Panel. Move your script into the Scripts Panel folder.
Has the Glyph You Need:
Any script inside the Scripts Panel folder will appear in the Scripts
Hey Steve, OT but I've twice
panel.
filled the
Queenie said about Multi-
Level Automatic
Numbering in InDesign:
Hello, Thank you for your
helpful post. I
Wilhelm said about
Formatting Headings for
Inclusion in a Table of
Contents:
I've been fighting a character
5. Run the Script. That's it! Now you can switch back to InDesign
style on my
and you should see your newly-saved script inside the User folder.
(You may have to click the expanding triangle next to the folder
name to see it.) You can run it by double-clicking it.
If the script doesn't work for some reason, go back to the file and:
Bio
Latest Posts
David Blatner
David Blatner is the co-founder of the Creative
Publishing Network, InDesign Magazine, and the
author or co-author of 15 books, including Real World
InDesign. His InDesign videos at Lynda.com are
among the most watched InDesign training in the
world. You can find more about David at 63p.com.
TAGS
RELATED ARTICLES
COMMENTS
21 Comments on How to Install a Script in
InDesign That You Found in a Forum or Blog
Post
Stphane B.
January 11, In an other way, you also could use Script Bay to
2012 test and save the script.
at 11:14 am
http://in-tools.com/article/script-bay/script-bay-version-
0-1-5/
Marc Autret
January 11, Hi David ;-)
2012
We should replace
doc.facingPages
dpf.facingPages
&&
by &&
. . .
. . .
@+
Marc
Reply
David Blatner
Post author @Stphane: Excellent point! Thank you!
January 11,
2012 @Marc: No problem. It is fixed in that other blog post
at 11:43 am where you typed it.
Reply
John
Hawkinson Hey, guys. Thanks for the reprise of
January 11, indesignsecrets.com/how-to-install-scripts-in-
2012
indesign.php. This one is better done!
at 11:40 pm
Magne
Hjertaker Great article! Didnt know this was so easy. Thank
January 12, you!
2012
at 1:35 am
Reply
Marcel
January 13, Step 0 is to read other peoples comments and al least
Marcel
Jongware
January 13, Yeah Marcel, your advice of applying step 0 will
2012 only work for those who know both Javascript and
at 4:19 am
AppleScript, and who know what the shell does in
Mac OS X, and who know what the rm command
does. Everyone else that tries it just to see what
happens will encounter a Very Nasty Surprise of the
Serious Kind.
Jimmy
Hartington I would also mention Notepad++ as a good and free
January 13, text-editor for Windows.
2012
at 5:01 am
Reply
January 13,
doing any harm on anyones but my own system
2012 (missing library).
at 10:18 am
I wanted it to illustrate that you can spot suspicious
code even without scriping knowledge.
If the script promises to cook you breakfast and
theres nothing of the sort in it then its suspcious.
Anything like app.doScript or Socket in standalone
downloaded script can mean its a malicious script.
David Blatner But I just want to reiterate (for everyone else reading
Post author this) that in many years I have never run into an
January 13,
InDesign script offered by a reputable person that
2012
causes significant damage. Sometimes they dont
at 10:26 am
work and need debugging, but thats not terrible.
Heather
June 5, 2012 Upgraded InDesign CS6 from Adobe Cloud, and it
at 10:19 am appeared to pull scripts from previous versions. In my
Finder my script appear to be there, but does not
show up in my Script Window users folder.
When it runs in Script Toolkit, it errors on
/*void*/ LayoutWindow.prototype.permuteSelected =
function()
Denise
February 15, THANK YOU! This was exactly what I needed. So
2013 appreciated.
at 8:38 am
Reply
Dan
May 15, 2013 Woohoo! Thanks! I was really lost.
at 3:48 pm
Reply
VC
June 6, 2013 This is my first experience with InDesign and my first
at 11:45 am attempt at using a script. Can anyone tell me how
much of the JSX text to keep in the file? I found a
MOO Script for making MOO Cards in InDesign. I
havent figured out how to get it to run and MOO said
maybe Adobe can help. I see now that my
downloaded file was converted to moo.jsx.txt so I just
changed it to moo.jsx
Here is the link for the jsx file which MOO links to:
https://raw.github.com/moodev/moo-
indesign/master/moo.jsx
The script has a Header of sorts which begins with
a long line of dots (below). After that it starts with
#target indesign. Where does the actual script
begin??? and should the whole thing stay in the jsx
file after downloading? Sorry Im a newbie, but want
to get this working.
//*-
javascript -*-
//
// moo.jsx
//
// an InDesign script to assist in the creation of MOO
Business Cards
//
// (c) MOO Print Ltd 2012
//
//
//
// includes the following third-party libraries (see
below for licences):
//
// OAuth (c) Netflix, Inc. 2008
// SHA (c) Brian Turek 2008-2010
// JSON Douglas Crockford (Public Domain)
//
//
#target indesign
#targetengine session
(function() {
var API_HOST = uk.moo.com;
Reply
Joris
October 31, Sorry to bother you this late, but Ive a problem.
2014 Similarly to what Heather reports, the scripts arent
at 3:06 am
showing up in my Scripts panel.
They dont show up immediately like they should.
They dont show up after a reboot.
They dont show up after deleting the preferences.
Tried three different scripts. No errors when I open
them with the Extendscript Toolkit. They have the
right file extension as well. All scripts should work
with my version of InDesign.
The pre-installed scripts show up just fine, doesnt
appear to be a graphics problem.
Im using InDesign CS5.5 (7.5.3) on Windows 7
Pro. Its a shared computer with password-protected
accounts, but I dont see any restrictions in using or
configuring it.
Hi David,
Yes, I used the Reveal in Explorer from the
Joris
October 31,
Scripts panel way. But I completely overlooked
2014 the repeated instruction to put it into the
at 6:23 am SCRIPTS PANEL FOLDER. Apparently my
expectation to immediately get to the right folder
when right-clicking has made me lazy.
Jeremy
November 18, I absolutely love this script, I added pages above each
2014 calendar page to make a photo calendar, my ONLY
at 8:46 am
question, is now for next year, how do I just change
the dates, without having to go back and do all the
work of adding the pages, sizing the images, etc.
Thank you!
Reply
Leave a Reply
Your email address will not be published. Required fields are marked
*
Name *
Email *
Website
Comment
Notify me of followup comments via e-mail
Post Comment
Facebook:
InDesignSecrets
Follow Us!