June 15 2010 • 7:41 PM

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.

9 Responses discussing this post. Add yours below.

  1. Praveen
    June 16th, 2010 • 12:30 am • Link

    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. Keith Gilbert
    June 16th, 2010 • 5:32 am • Link

    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. Praveen
    June 16th, 2010 • 6:57 am • Link

    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. James Wamser
    June 16th, 2010 • 9:02 am • Link

    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. Uwe Laubender
    June 17th, 2010 • 1:22 am • Link

    @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. Keith Gilbert
    June 18th, 2010 • 8:12 am • Link

    @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. SEO
    December 9th, 2010 • 9:35 am • Link

    This script is working fine .Thank.

  8. Cheryl Jackson
    January 30th, 2012 • 3:21 pm • Link

    do you have the slide show.jsx script for INDD cs5.5 in english? all I see is french.

    thanks.

  9. Keith Gilbert
    January 30th, 2012 • 3:25 pm • Link

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

Subscribe to the Discussion

Get the ongoing discussion surrounding "Self-running slide show script" delivered to you. Click here to subscribe via RSS.

Leave a Reply

You can use limited HTML tags, such as <em></em> for emphasis/italics and <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .

InDesignSecrets reserves the right to edit and/or remove posts and comments.