Script to embed multiple mp3 in pdf

A client of mine has given me thousands of audio files to be linked with corresponding text. While I can do this by hand it will take months. Have failed to find anything solid in my search for answers. Now I need your help any ideas?

I played around with the ExtendScript Toolkit and cutted and pasted the previous script from here until I managed to get a script that actually works like I was thinking. I then added a code from the CS4 Reference Manual to move Layer1 to the top (just to see if it worked).
I have no idea yet if the the code includes something that does not belong, but at least I get no errors. The current code is like this now:
//Apply to myDoc the active document
var layerName = LayerOrderType;
var myDoc = app.activeDocument;
//define first character and how many layers do you need
var layerName
var numberOfLayers=0;
//Create the layers
for(var i=0; i<=numberOfLayers; i++)
{ var layerName = "Background";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
{ var layerName = "Picture";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
{ var layerName = "Text";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
{ var layerName = "Guides";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
// Moves the bottom layer to become the topmost layer
if (documents.length > 0) {
countOfLayers = activeDocument.layers.length;
if (countOfLayers > 1) {
bottomLayer = activeDocument.layers[countOfLayers-1];
bottomLayer.zOrder(ZOrderMethod.BRINGTOFRONT);
else {
alert("The active document only has only 1 layer")

Similar Messages

  • Need script to place multiple single page pdfs in ID pages

    Does anyone know of a script that would place a whole folder full of single page pdf files into an indesign document one per page, alphabetically by pdf file name, and ideally add new pages as needed. The last part is optional, as the ID document could already have the required number of pages, all using the same master page with the the picture frame already in place.
    In my current project, the pdfs are all the same size as the ID document page size.
    This would be along the lines of the scripts that place multipage pdfs, but for single page ones. I have tried first creating a multipage pdf by inserting a folder full of single page pdfs at the end of an initial pdf. Acrobat 8 pro does this very well indeed, but selects the pages from the source folder in random order. I need them in alphabetical order.
    Thanks for any insight,
    Al

    For this project I could equally well use a script that would place or re link to a new pdf in a single page ID document, print device independent postscript with some sort of unique or sequential filename, and repeat the process for a whole folder of source pdf files. No new pages need to be added, and the new pdf could replace the prior one.
    What I am after is a device independent ps file for these pdf files. The ones produced by batch processing from Acrobat 8 Pro do not offer enough control, as in that method I would need *only* the black separation.
    Thanks,
    Al

  • SCRIPT TO IMPORT MULTIPLE PLACED IMAGES..AND OUTPUT MULTIPLE IMAGES TO SINGLE PDF.

    Anyone got a script to import multiple placed images into CS4? or is this possible in CS5?
    and can we output multiple layers into a single PDF in illustrator?  Or multiple layers into single JPEGS from illustrator with one command instead of individually saving out each page... would be a huge time saver for me.
    Currently I output each completed layer individually and then right click those outputted jpegs in their output folder and choose "combine supported files into acrobat..." to make a single acrobat file..
    I`d also like to be able to CTRL click multiple layers and go save as... only those layers get saved out...
    And so adding something in the Save for PDF output dialogue box to save layers to multiple pages would be a helpful time saver..

    In CS 4 and CS 5 you can drag and drop fro m the finder or the Bridge, and I guess any other similar type viewer, multiple number of image files to a document. You can configure the bridge in such a way as to allow you to see the Bridge and your document at the same time for this very purpose.
    If you just drag and drop the files are linked if you drag while holding the shift key then the files will be embedded.
    ID and PS CS 5 have a minibridge which works the sam way but is an actually panel and will stay in the front.
    I separate the images but they import one on top of another.

  • Embed .mp3 in .pdf without controller?

    Whenever I embed an .mp3 in an interactive .pdf, a gray "controller" box appears as soon as the sound is triggered. And once the sound is triggered, the box cannot be made to go away without closing and reopening the pdf. I have no use at all for these things. I feel like I should be able to include interactive audio in a document without being forced to have these unhelpful controllers cluttering up my carefully-designed documents. (I mean, it's interactive audio; should there really be an obligatory visual component?)
    Am I missing something? There doesn't seem to be any way to "turn these things off." Any help would be appreciated!

    It could be some type of font incompatability between your PC and your Mac.  Most OTF's ( Open Type Fonts ) are compatable with both the PC and the Mac, but it may be a good idea to find out which font is suspect and replace it with a new, Mac version ( license ).  And, yes, for some reason, a font or two may not have been activated when you copied it over to your Mac.  I would think Distiller would be blind to font issues and RIP your file anyway, but again, if the font was never copied over or activated because of a license issue, then Distiller may just substitute the font(s).  It may be a good idea to match all of your previous PC fonts with new Mac versions.  And no, Distiller is not involved when you save-to-PDF in Ai.  The last time I checked, Distiller is / was a stand-alone application for creating PDF's.  Why not try using Distiller to see what happens?  You also have the option to Print > Save as PDF in Illustrator.  That's three ways to create a PDF: 1.) Use Acrobat's Distiller, 2.) Illustrator > Save As > Adobe PDF, 3. ) Illustrator > Print > Save as PDF.  Also, PC TTF's are not compatable on a Mac ( at least, that's the way I see it ).  Have you tried to print a desktop version of the Ai file to see if the font loads in your print driver?  If the printer skews the text that carries your font, then you know the font is definitely the problem.

  • Best audio format to embed for export to pdf?

    Hello, I was wondering what format for audio file would be best to embed for exporting to pdf. I want to embed the audio file in a button, for playback on mouseover in the exported pdf. Previously, when I had CS3, I actually had to convert my mp3s to avi files, as (believe it or not) that turned out to be the only format that would play back properly with a toolbar in the pdf, and only after I changed the media player (from quicktime to flash) for EACH audio file in the pdf. It was a headache trying to embed hundreds of audio files and I'm just wondering if CS5 has improved.

    Steve, that's (if I remember right) why I had to convert my mp3s to avi when I used CS3; because when I played them back in the exported pdf there was no controller-- but there was for avi. The problem I then had was with Acrobat/reader, which had quicktime set as the default player, so when I clicked the button to play the audio (avi) file, the pdf froze. This I solved by changing the default player FOR EACH audio file in the document (there were over 400) to adobe flash player; and because the audio was avi, as you say, a nice controller appeared, which disappeared once the audio finished. This was an OK workaround, if it wasn't for the fact that because I was using the flash player, the interactive pdf couldn't be used by mac users-- which many of the ebook's readers are. D'oh! So now I'm thinking to just stick with the mp3 format, now that Indesign can handle mp3s, and as you say, create buttons for stop and playback; this also solves the problem of having to post-export adjust the player settings for each file, which is not very fun, because when you edit the indesign document for future versions, it's kind of an annoyance to import pages to replace pages in the pdf without replacing the audio files. Anyway. Steve thank you for thinking out the finer details of my issue; I appreciate it and will have a go at making buttons, and let you know how that goes for such an interactive pdf. Thanks also Bob for the reply.

  • How do I embed a multi page pdf on one page in indesign?

    I'm building an interactive portfolio to put on an ipad to take to an interview. I've got 6 title pages and i'm trying to create sub-pages and embed multiple page pdfs into them so the user can turn the pdf pages within the portfolio page...if that makes any sense.
    I'm getting nowhere with it and its driving me mental
    Should add im using the cs6 digital publishing update with things like digital overlay etc.

    You're butting your head against a wall. You can't do that in an interactive PDF.

  • Embed interactive SWF in PDF - losing interactivity

    I have a simple swf file that has multiple squares that change color when clicked. I need to embed it into a PDF so when viewed, you can still click the squares to change the colors. However, when I embed it, the squares no longer change colors when clicked. The PDF is built in Indesign CS6 and I have tried embedding the SWF file both in Acrobat Pro and in Indesign, both with no luck.
    The SWF file actually ahs multiple instances of the same swf file loaded into it and it works fine when tested in a browser and in Flash and also when I open it from Windows Explorer.

    Have you attached those child SWFs to the resources collection for the Rich Media Annotation so the parent SWF can load them?
    kelsey.peterson wrote:
    The SWF file actually ahs multiple instances of the same swf file loaded into it .

  • How to embed multiple images

    Hello!
    I have been tying to figure out how I could easily embed multiple linked images easily. I have some 1000 .svg  images which have about 1-7 .tif images linked in to them. I now need to get those links embedded and becouse of the amount of images I'm hoping to make an action out of it. I have a script to embed single image in .svg but haven't have luck with multiple embeddings.
    Any ideas?

    Great got it working now. Thanks for Your help.
    BUT (there always seems to be a but) now I'm facing new troubles. Kind of the same that Dovidgold seems to be facing http://forums.adobe.com/message/4733717#4733717
    After running the script on a image with two linked items. One of the items jumps on a different layer and scales it self to original size.
    So, once again, any ideas?

  • Joining multiple mp3 files into one

    Hi all,
    I am very puzzled as to how to merge multiple mp3 files into one, to upload to Mixcloud. Now, I do have the "Join Together" script and it worked like a charm a few times but now it just freezes and there's nothing I can do.
    Any ideas? Is there any DJ software, other than Nicecast, that could merge the files?
    Any help will be much appreciated.
    Thanks!

    Fronzenfields,
    A lot of folks preparing mixes for Mixcloud use Audacity.  It is a free audio editor, and has both Mac and Windows versions. 
    Besides joining tracks, it will also let you do crossfades, volume adjustments and other typical audo editing functions necesary to create a good quality mix.
    Editing in Audacity does not modify the original tracks.  You import the tracks into Audacity, do the edits, and  then export a single MP3.

  • Report Title Displaying in Multiple Lines on PDF Format when i Print in PDF

    Report Title Displaying in Multiple Lines on PDF Format when i tried to print in PDF Format, is there any limit for Report Title Characters
    Displaying Like -
    LRDP
    Open
    Label
    Paradigm
    Forecast
    Report
    Any Info Appreciated
    ~Srix

    Got It .. Just need to chnage the Width Parameter.......!

  • How can I attach multiple filled-form PDFs to the same outgoing email on iPhone/iPad?

    How can I attach multiple filled-form PDFs to the same outgoing email on iPhone/ iPad?

    This isn't supported in the current version of Adobe Reader on iPhone/iPad.
    Shradha

  • How do I join multiple mp3 files into one mp3 file?

    Hello,
    I have multiple mp3 files that I would like to join into one mp3 file and to use it as an audio book. This explains how to do it, but in iTunes 12, I do not see an option called "Part of a Compilation" option.
    Is there a way to do it in iTunes without installing a new app?
    Thank you.

    Eugene,
    Those instructions, if I read them correctly, are about how to collect several MP3s into a single audiobook.  They will not create a single continuous MP3.
    iTunes does not have the ability to combine multiple MP3s into a single MP3.  The best it can do is if you burn them to audio CD and then rip back with "Join Tracks" enabled.  The better way is to use an audio editor such as Audacity, or a special purpose combing tool such as MP3 Joiner.

  • How do I embed multiple font outlines in dynamic text field

    Can anyone tell me how I can embed multiple font outlines in
    Flash MX so I can get smooth text in a dynamic
    text frame? I want to use Regular, bold and italic in various
    parts of the text.
    I was using the Character button in the properties manager
    and tried to include all Characters. That does not work.
    In the Properties manager I can choose Bold and/or Italic.
    But it becomes a universal setting that overrides my HTML tags in
    my external txt file that I am importing. I dont want all my text
    to be bold.
    If I dont select them in the properties, however, Flash will
    not embed the font that it needs.
    Is there a different way to embed fonts other than under the
    Character Tab?
    I tried to import fonts to the library, but can not select
    them.
    Your help would really be appreciated.
    Sincerely,
    ggaarde

    ggaarde wrote:
    > Thanks Urami
    > Tried your method and it does not work for me.
    > I put 3 dynamic text fields in the first frame of the
    movie. Set them up to
    > where one is regular, one is bold and one is italic
    Helvetica.
    Weird, it works for me on first go, always had in fact :)
    Show you an example, try to compare to your file see if you
    missed anything accidentally.
    http://flashfugitive.com/stuff/font/text.swf
    text file
    http://flashfugitive.com/stuff/font/text.txt
    fla
    http://flashfugitive.com/stuff/font/text.fla
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Bridge CS6 Script to Find Multiple Images in Multiple folders.

    Is it possible to have a script to find multiple images within multiple folders that is on a external hard drive?
    For instances I have a external hard drive assuming it's for a library of pictures.
    Inside this hard drive has folders named as below
    1-1000
    1001-2000
    2001-3000
    3001-4000
    If I had a perfect csv file for example that calls out for specific pictures for example 2, 10,1500 and 2000 (remember think big, it may be a larger list than this it could be hundreds or thousands of pictures); is there a script that would allow me to find these images and save a copy of them on to my desktop so that way I don't have to hunt for them in the old fashion way? I can read scripts but writing them is a different story.

    If you want to go with Batch I would recommend creating an Action of more or less these steps:
    • set the resolution to the same as the background image’s
    • change the image from Background Layer to regular Layer if necessary
    • convert it to a Smart Object
    • add a Drop Shadow Layer Style to the image (do not use Global Angle)
    • place the background image (File > Place …)
    • move it behind the image layer
    • Image > Reveal All
    • make Selection from that layer’s transparency (cmd-click its icon in the Layers Panel) and use Image > Crop
    • select and transform the image layer to fit the intended position
    This would naturally work out best if the images had the same size and proportions.
    For the reflection on the floor duplicate the image, flip it vertically, move it in position and reduce its opacity to maybe 10%.
    Realistically you may have to hide it partially behind the pillows, a Vector Mask would be an option.

  • Batch script to open multiple excel and doc files

    Hi Everyone,
    Could anybody please provide a batch script to open multiple excel and doc files at a time.
    Appreciate ur quick response.
    Regards,

    You have several scripting choices within Windows. At a basic level you've got "batch files" - which run a series of command interpreter commands, and have a file extension of .BAT or .CMD. If you just wanted to open a list of Word documents, then assuming that the path to Word is correct (something like this below) you could list these in a file with a .BAT extension and run this (e.g. double click on it):
    "C:\Program Files\Microsoft Office\Office\Winword.exe" "C:\Documents and Settings\All Users\Desktop\File1.DOC"
    "C:\Program Files\Microsoft Office\Office\Winword.exe" "C:\Documents and Settings\All Users\Desktop\File2.DOC"
    "C:\Program Files\Microsoft Office\Office\Winword.exe" "C:\Documents and Settings\All Users\Desktop\File3.DOC"
    "C:\Program Files\Microsoft Office\Office\Excel.exe" "C:\Documents and Settings\All Users\Desktop\File1.XLS"
    "C:\Program Files\Microsoft Office\Office\Excel.exe" "C:\Documents and Settings\All Users\Desktop\File2.XLS"
    Another script language is VBScript, which was the example I gave. VBScript is available on most Windows platforms and can be run from a command prompt or within Windows. If you save the text I gave you above to a file with a .VBS extension you can double-click to run it (Windows) or open a command prompt and type CSCRIPT MyVBScript.VBS (assuming that's the name of the your .VBS file).
    Other script languages are available to achieve the same thing, including Powershell, however you'd need to have Powershell available on your PC.

Maybe you are looking for

  • Column Name in BI Reports

    Hi, I have about 80 reports that are running in various dashboards. Each of those reports is an Answers request. Is there a way to find out if a particular column is being used in which report without going through each report manually? Thanks, rking

  • "The application PubSubAgent quit unexpectedly"

    Can't open Safari. I get this message every time I try to open it. The application pubsubagent quit unexpectedly. I already tried clearing and deleting pubsubagent and that didn't do anything. I don't have a mobile me .mac account. When I try to open

  • Table for PO-Maintenance Order Relation

    Hello Experts,                       I would like to have an idea about all the Maintenance Order which have got PO as the Subsequent Document. in which Table can I find the same. Thanks in advance. Regards, Yawar Khan

  • Logging in with multiple CC accounts, personal and enterprise

    I need to be logged in to two CC accounts with two different email addresses at once, one is my preexisting personal and the other is a new enterprise. One is used for Typekit only (personal) and one is used for programs (enterprise). Despite me usin

  • Yosemite TextEdit 31 character filename limit ?

    I recently upgraded a McBook Pro to Yosemite, and am encountering errors saving files. The error occurs when trying to save a newly-created TextEdit file to my internal drive (Unicode UTF-8, applying the txt extension by default). The error message s