Thanks for coming to InDesignSecrets.com, the world's #1 resource for all things InDesign!

Self-running slide show script

I’ve been traveling a lot lately. Strangely, I’ve found that I do some of my best scripting at 30,000 feet. Must be the in-flight peanuts. Just for fun, I decided to knock a script together to create self-running slide shows in InDesign CS5.

InDesign CS5 has a new Presentation Mode that displays the active InDesign file full-screen, hiding the InDesign interface. But when you’re in presentation mode, you need to use the arrow keys to advance from slide to slide. I thought it might be handy to have the slides advance automatically, and the SlideShow script is the result.

The script is rough and unpolished, but it does the trick. It will likely only work in the US English version of InDesign. If someone really needs it to work in another language, let me know, and I could tell you how to modify it for your language.

Tags
Related Articles
Comments

15 Comments on “Self-running slide show script

  1. Hi Gilbert,

    This script is working fine, but checked the option ‘Loop at end’ script is continuously running. Pl. confirm how we can stop this script while running.

    Thanks,

    Praveen

  2. Praveen, to quit the self-running slide show, hit the Esc key twice. (There’s a note about this at the bottom of the dialog box to remind you.) Hope you find the script useful!

  3. Yes Gilbert, I missed to see that instruction. Anyway, it’s fine now and I feel that this script is very useful for me.

    Thanks,

    Praveen

  4. Keith,

    Since you’re at 30,000 ft again today, I wonder what you’re come up with next.

    The SlideShow script is very cool!

    J

  5. @Keith:
    To utilize the script in all international versions of InDesign I suggest to use app.menuActions.itemByID instead of item(“Next Spread”) like:

    var myMenuAction1 = app.menuActions.itemByID(118818);

    I tested that with my German version of InDesign CS5 (7.0.1) and it ran well.

    Stephan of the InDesign Scripting forum was so kind to send me the available ID numbers of all menuActions. Thank’s again, Stephan?

    Uwe

  6. @Uwe: Thank you for the ID number. I hadn’t had the time to dig up the code. I’ve made the change to the script, and posted the new version on my Web site.

    What this means to everyone is that the script should now function in all localized versions of InDesign CS5, regardless of your language. The interface has not been localized, so that will always be in English.

    Pierre Labbe has translated the interface into French, and that version is available on the Web site also.

  7. @ Cheryl, the English version is on the same Web page. Just click on the “SlideShow” heading to download the English version.

  8. Hello, I’m following you in lynda.com (InDesign CS5: Interactive Documents and Presentations) and I’m searching the slideshow jsx in italian to do the exercise.

    Thanks

  9. @Cinzia, I’m sorry, the script is only available in English and French. There isn’t an Italian version.

  10. Hey Keith,

    Ok, I got the slideshow.jsx script to intall and work properly. I work in a corporate office and want to be able to loop indd presentations in another more common application besides INDD. Not everyone in the office has that program. Can I use this slideshow.jsx script to run a looped interactive indd presentation in say, Acrobat as a pdf? If not, how can I make this happen?

    Thanks,
    Cheryl

  11. @Cheryl, The script will only run inside InDesign. If you create a PDF of the InDesign file, then open the PDF in Acrobat, you can run it in full screen mode in Acrobat (command/ctrl-L) and dig around in the Acrobat Preferences to control the speed at which the slides advance as well as set the presentation to loop.

  12. Is there a script or a procedure for a self-running photo slideshow for within an Indesign document? I’ma novice at Indesign and can’t figure it out. Thanks for any help.

    Bradley

  13. Hello Keith,

    thank you in advance for your time.

    1. could you please give me a link to comprehend the steps in opening & installing: .jsx files
    2. and will this script work for CS6 too?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>