Is there a script/something to put every element of your Indesign doc onto a separate layer?

Help. The reason I need this is, our designers have created a huge Indesign document that i need to Psd to send to our web guys.
Ive found a scipt that converts indesign to psd layered perfectly but each element of the Indesign doc has to be on a layer!!.
Help!

@Vamitul – you still forgot a dot and a paranthesis…
And it will not only work with Group objects, but will fail on anchored objects, too.
A better approch will be to duplicate the objects to new layers. But also with that method there is a risk: the position of duplicated anchored objects will change and to single out objects out of groups means getting into trouble, too:
var doc=app.activeDocument;
var pi=doc.allPageItems, l=pi.length;
while (l--) {pi[l].duplicate(doc.layers.add())};
alert("Done!\nYou can go outside an play now!");
Before script (TextFrame with anchored object on the "blue" layer):
After script (TextFrame without anchored object on the green layer, the now duplicated un-anchored object on the "red" layer):
And another thing: if an anchored object has "Text Wrap: on" the text of the duplicated object will reflow.
So, you have to store the positions of anchored objects and set them back to its original.
Another thing about groups: in duplicating single objects out of a group, you will loose any effect that is applied to the group.
So you have to single out groups of your pageItems.
You see it's getting complicated here…
Maybe it's worth thinking about NOT using "allPageItems" but the simple "pageItems". Then "Groups" will stay "Groups" and anchored objects will remain anchored:
var doc=app.activeDocument;
var pi=doc.pageItems, l=pi.length;
while (l--) {pi[l].move(doc.layers.add())};
alert("Done!\nYou can go outside an play now!");
Uwe

Similar Messages

  • My MacBook was wiped of all my music and everything else, and now my iTouch is the only device with my entire music database. My iTouch is old. (Version 6.1.6, Model number: MC547LL/A) Is there any way I can put all the music on my iTouch onto my Mac

    My MacBook was wiped of all my music and everything else, and now my iTouch is the only device with my entire music database. My iTouch is old. (Version 6.1.6, Model number: MC547LL/A) Is there any way I can put all the music on my iTouch back onto my MacBook? I hate that I could lose my entire music library by dropping my iTouch in the toilet.
    I've tried to plug in my iTouch into my MacBook, but I can't seem to give the music-transfusion without subscribing to iTunes Match or just completely wiping my iTouch.
    PLEASE HELP MEEEEE

    Your i-device was not designed for unique storage of your media. It is not a backup device and media transfer was planned with you maintaining a master copy of your media on a computer which is itself independently backed up against loss.  To use a device with a different setup you transfer the old library from a computer or a backup directly to the new setup, not the device to the library. Media syncing is one way, computer to device, updating the device content to the content on the computer, not updating or restoring content on a computer. The exception is iTunes Store purchases which can be transferred to a computer.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only purchases from iTunes Store
    For transferring other items from an i-device to a computer you will have to use third party commercial software.  See this document by turingtest2: Recovering your iTunes library from your iPod or iOS device - https://discussions.apple.com/docs/DOC-3991

  • Is there a way to selectively put on and off your data-connection(3G)?

    Hi there!
    I'm currently working on an app that uses GPS to track a person's location, this location is than in turn send to an online database.
    Obviously sending that location to the database requires an internet connection, I could use WIFI for that which is no issue but what if there's no WIFI available, if that's the case I want to use the phone's 3G data connection.
    Since I only need that connection for a short period(just to send the location to the database) I think it's rather dumb to put it on when opening the app and keeping it on as long as the app is running.-->It would quickly drain the available data memory.
    So my question is, is there a way to put the 3G connection ON and OFF in code? So the app would have the rights to do that.
    To clarify: Suppose whenever I track a person's location(every 5 minutes for example --> that's sufficient for my app even though it doesn't seem so useful) I want to put on the 3G connection to send the location to the database.
    The following 5 minutes however I've no need of that internet connection since no communication with the Database is required so I would want to put the 3G connection off then.
    -->Is this possible?
    Thanks in advance!
    My best regards
    Jan

    There is no way to turn on and off the phones 3g connection via code.

  • Is there a script for CS5 to export a multi-page InDesign Document to single page InDesign documents

    Hello,
    I am having trouble finding a script or utility that would allow me to export each page of an InDesign CS5 document as multiple single page InDesign documents. I have found one script that does this for CS3, but nothing for CS5. Thank you for any help.

    Generally speaking, if a script doesn't run in a later version, you can put it in a subfolder withteh correct version number as the name and it will work. For CS3 that would be "Version 5.0 Scripts" without the quotes.
    That said, if you have Acrobat pro, it's probably easier to use the extract pages command...

  • Is there a way to get an imovie project from your macbook pro onto your ipod touch?

    I want to put a movie i made on my camera roll or get it onto my itouch. Is there a way to do that without spending alot of money.

    Thanks for a cognative answer TXMark.
    For what its worth to any readers that work in education and would like this play once and stop 'feature'
    I had great success in homeshareing a iTunes library of teaching material and creating topic specific playlist and used apple remote app to control an appletv connected to that homeshared library. As TXMark suggests, uncheck the songs in iTunes and the media will not automatically play the tracks in sequence.
    note: if you have video media that you would like to have in the playlist, be sure its listed as a music video in the options of get info of track. otherwise the apple tv will not see the media in the playlist and will put it in the movies section of the library.

  • Putting whatever is on your iPhone 4 onto a TV

    Hi there, I have been asked by my boss to somehow get an iPhone 4 connected to the TV. There is no aerial socket. She thinks you can somehow connect the two via the internet and a cable
    Please can someone help?
    Thanks so much,
    Aimee x

    You can buy cables at Apple Store.
    You could also use Apple TV with an HDMI cable and Airplay.

  • Is there a script or something to turn sound off on shutdown

    Unfortunately, more often than not, I forget to lower my sound level after listening to iTunes and I shut down. The next AM at startup the apple tone BLASTS me and probably every neighbor within a 6 block area with a wake up call from Satan's middle earth.
    Is there a script or something that I can use as a shutdown item that will turn the sound off and save all the eardrums in the neighborhood every morning?
    Thanks for any help, ear plugs or direction.

    Thanks Guys! StartupSound was exactly what I wanted. Perfect. It works just great. There is something reassuring about a Mac's startup sound that I couldn't just mute it, so to be able to keep it at a soothing level no matter what the volume is is perfect. Thanks again. P.S. My neighbors thank you, too!

  • I need help please!  Can pictures get on your icloud other ways?  Can something be put on there by someone other than yourself, liked public wifi or hacked?  Got a big problem h some **** on an iPod and I am to knowledgeble about the ipod...thanks

    .         Can pictures get on your icloud other ways?  Can something be put on there by someone other than yourself, liked public wifi or hacked?  Got a big problem with some **** on an iPod and I am to knowledgeble about the ipod...thanks

    You're not confusing this with a shared Photo Stream...?
    Because the short answer is no, photos don't appear unless they were put there by someone with your Apple ID credentials. To rule out that possibility, change your Apple ID password by carefully following all these instructions:
    iCloud: Change your iCloud account password
    If you decide to change your password, and you also want to change your Apple ID, I recommend you do not concurrently change your Apple ID until sufficient time has passed and you are confident the password change has been effected on all your iOS devices. 24 hours ought to be more than enough.
    It is not necessary to change your Apple ID unless it is an email address you no longer wish to use.

  • Hello,  Is there a script that I can change all the colors of a layer in to 1 PMS color, unite every object and than give it an offset of -0,2 mm ?

    Hello,
    Is there a script that I can change all the colors of a layer in to 1 PMS color, unite every object and than give it an offset of -0,2 mm ?

    the offset has to be semi-automatic, apply an Offset Path Effect (by hand), create a Graphic Style out of it (by hand), then the script can apply this graphic style to objects.

  • Is there a script to "Package" more that 1 file at a time?

    I am trying to find a way to Batch Processing groups of Illustrator files (version Mac CC 14) into Packages (separate folders with links). The new "packaged" folders in a new location then need to be compressed (zip) before uploading for client access. The biggest issue we have is some jobs can have up to 20+ different varieties - each needing its own package. Is there a script available to avoid opening each file and manually applying "Package" from the file menu?

    I main issue I have with the Illustrator Action I created is that the "save" feature holds the file name which means every time we run the action, the package is called the same thing (not the title in the header!) For some strange reason, Photoshop actions are a lot more flexible. It would be nice if Illustrator worked the same way. (or even through Adobe Bridge!) I am running a trial of the "Art Files" Plug in now to see if this meets out needs. Many thanks for your assistance.

  • Is there a script for applying a certain style to several thousands of words arranged in a list?

    Hello, I have tried using FindChangeByList, but I'd pretty much do all the work of pasting every word on the brackets, so i could as well apply the styles by hand.
    So my project involves applying the same style to around 11 thousand words that appear in a book. Those words are mostly names and brands, and they appear throughout the whole text, so applying that style manually would be quite time-consuming.
    I have those words set aside in a list.txt
    Does anyone know if I could use that in any script and apply the style automatically?
    Like I said, pasting every single word into FindChangeByList is out of the question, just like applying the style word by word, it would take forever...
    ...thanks!

    Okay, for anyone that might be interested in this as I was, I found a solution.
    If you want to have a particular text expression on your .txt list to be used as a search parameter by your script, here are a few tips:
    Let's say you want to add the following 2 expressions on your list, without the quotation marks:
    a) "test, test."
    b)"[test] {test}"
    1 - Like Jongware said, you MUST abide by GREP syntax.
    2 - If you want to put an expression on your .txt list that DOES NOT uses characters that represent GREP syntax (example a) with regular text, commas and simple punctuation), you may simply add them to your list between parentheses:
         a) (test, test.)
    3 - If you want the script to search for an expression that DOES CONTAIN characters that are also used by GREP syntax (example b) you can try stuff like:
         b) (\p{Ps}test\p{Pe})
         note the parentheses, because it's a specific text expression
         then note the \p{Ps} and \p{Pe} that mark opening or (s)tarting and closing or (e)nding punctuation such as brackets, braces, parentheses...
    Here is a file with the GREP expressions that helped me solve my problems:
    http://www.kahrel.plus.com/indesign/grep_mapper.pdf
    Although this is a very specific matter and probably easily solvable by all the professional scripters here, I thought I'd share it since it took 3 whole days of studying for me to conclude everything.
    Thanks again, specially to Jongware

  • Is there a script to...

    Is there a script that could take all the artists in my library beginning with A, assign them to a playlist, then those starting with B to another, and on and on throughout the alphabet?
    I'm trying to use Fetch Art to get art for everything in my library, but I have 21,000+ songs. Applying a script or a program to batch-process even 1000 songs usually makes something crash, so I'm looking for something organized I can do systematically. To find songs without artwork, I use a script from doug's applescript.
    Any advice? Let me know if I need to be more detailed...
    Thanks!
    Alec

    Or make 26 smart playlists with the condition "Artist begins with [a-z]" with live updating. That way, whenever you add tracks they will automatically go to the appropriate playlist. You would also need a catchall playlist for any artists that might start with a number or special character.

  • Is there a script (or plugin) that will take a photo and break it up into parts?

    Is there a script or plug-in out there that will take a picture and break it up into various parts (squares for example.)  The idea would be that you could automate and rapidly create a photo collage of a single image.  (See examples of what I mean in attached pics.)
    Thanks!
    This image has been resized to fit in the page. Click to enlarge.
    You get the idea.

    OK, I'm going to edit this post now that I'm at a computer with an actual step by step.
    Create a new comp the size of you our final delivered project.
    Add a photo to the timeline
    Note the size of the photo and the scale to position the photo at it's final resting place
    Calculate twice the height and width of the photo and create a new solid that is this size
    Place the solid above the photo
    Create a mask in the solid at the exact center that is the size shape you want for your photo frame
    Either invert the mask or set the mask property to Subtract to reveal a small portion of the photo
    Set the solid as a alpha inverted track matte for the photo (you should now see only a portion of the photo
    Add a rectangular shape layer with only a stroke to act as the photo frame over the mask. You may have to use two shapes or create a mask on a shape if you want to simulate polaroids
    Make the shape layer the parent of the solid you are using as a track matte so the matte will stay lined up with the frame
    Here comes the fun, select all layers and duplicate them using Ctrl/Cmnd + D
    Immediately hold down Shift + Ctrl/Cmnd + } to move all duplicates to the top
    Select the top shape layer and move the shape layer frame into a new position
    Pre-compose the top 3 layers
    Press the y key to select the Pan Benind or Anchor Point tool and move the pre-comp's anchor point to the center of the top frame
    Repeat step 11 through 15 until you have arranged your montage (it might be a good idea to have a template set up as a guide layer so you know where to put the frames
    Select all pre-comps and press Alt/Option + P to set a position keyframe for each pre-comp
    With all of the keyframe selected move them down the timeline about 3 seconds
    Now, with the CTI at the first frame drag each pre-comp into a starting position for that frame
    Preview and adjust the timing, then turn on motion blur
    Your images will now assemble themselves into the final montage.
    There is no script that I know of that will do all of this automatically, but it would not be too hard to write a script that would do the pre-composing if you have a ton of these to do. I'm guessing that with a little practice you could have a new picture frame created and moved into position in less than a minute. It takes me about 30 seconds. That means a 20 frame sequence should take you about a half hour. It might not be worth writing a script unless you have a ton of these to do. Select the bottom three layers and duplicate (Ctrl/Cmnt + D), group them at the top (Shift + Ctrl/Cmnd + } ), move the top frame layer into position, then Shift + Ctrl/Cmnd + C to pre-compose, then move the anchor point of the pre-comp, then do it again.... When you're done set a few keyframes.
    As I said, you could write a script, but you'd need a different script to move each frame into position and the script would only work for one layout. If you made a template to put on the bottom so you knew where do place the frames and which order you wanted them you could do this by hand very quickly. The sample project that I'm including which was just quickly thrown together took me less than 10 minutes. Replace my photo with one of yours and you'll get the idea.
    Dropbox - photoMontage1_CS6.aep (Note: Dropbox will probably add a .txt extension to the .aep file. Just delete it and you should be able to open the project.

  • Is there a script available to make an alternate size layout of a book?

    Hello:
    I was referred to this forum from this thread: How can I export a pdf of an InDesign alternate layout from a book?
    I have a book that is in a 6×9″ layout and I would like to make an alternate layout of the same content for 8.5×11 (and other formats).  I found out that I cannot create an alternate layout in a book and export just the layout, without including both sizes; I have to create a whole new set of book files.  Is there a script that can do this or at least do some of the heavy lifting?  It will need to take the current 6x9" format and make it 8.5x11" and also adjust the text frames for the larger size pages.
    Thanks for any help!
    Kevin

    Hi,
    I suggest looking here:
    http://gallery.technet.microsoft.com/scriptcenter
    It's highly unlikely that you'll find something pre-written that will meet all of your requirements, but there should be enough in the repository to give you a starting point.
    EDIT: If you're looking for someone to do all the work for you, you can try posting a request here:
    http://gallery.technet.microsoft.com/scriptcenter/site/requests
    I have no idea if anyone ever goes through these requests though (I know I don't).
    Don't retire TechNet! -
    (Don't give up yet - 12,700+ strong and growing)

  • Is there a script or API to automate upload of Videos to iTunes U?

    Is there a script or API similar to uploading to youtube where I can upload videos to my class on iTunes U?
    Thanks!

    Thanks Guys! StartupSound was exactly what I wanted. Perfect. It works just great. There is something reassuring about a Mac's startup sound that I couldn't just mute it, so to be able to keep it at a soothing level no matter what the volume is is perfect. Thanks again. P.S. My neighbors thank you, too!

Maybe you are looking for