[Disappeared Post] Place multiple graphics in numerical order

(Am I going crazy, or is Jive having a nervous breakdown AGAIN? I'm pretty sure -- well, fairly sure -- I just answered to a thread with this title!!)
This Javascript will rename all files that start with one or more digits within a selected folder, adding the proper number of leading zeroes, and thus nicely circumvent InDesign's programmers' incapability to properly sort files on importing and placing.
(Copy, paste into the ESTK Editor, and save as "AddLeadingZeroes.jsx" in your User Scripts folder. Run by double-clicking and selecting a folder. A No Guarantees, Inc., guaranteed Jongware Script. Use With Care, No Undo!)
//DESCRIPTION:Add Leading Zeroes to File Names
A Jongware Script, 14-Feb-2011
var folderLoc = Folder.selectDialog("Select Folder to rename in");
if (folderLoc)
folderContents = folderLoc.getFiles("*.*");
maxNum = 0;
for (l=0; l<folderContents.length; l++)
  if (folderContents[l] instanceof Folder)
   continue;
  if (folderContents[l].name.match(/^\d/))
   n = folderContents[l].name.match(/^\d+/)[0].length;
   if (n > maxNum)
    maxNum = n;
if (maxNum)
  var failList = [];
  var successList = [];
  for (l=0; l<folderContents.length; l++)
   if (folderContents[l] instanceof Folder)
    continue;
   if (folderContents[l].name.match(/^\d/))
    n = folderContents[l].name.match(/^\d+/)[0].length;
    if (n < maxNum)
     if (folderContents[l].rename ("000000000000".substring(0,maxNum-n)+folderContents[l].name))
      successList.push (folderContents[l].name);
     else
      failList.push (folderContents[l].name);
  if (failList.length)
   alert ("Warning!\rRenaming failed on:\r"+failList.join("\r"));
  alert ("Renamed to:\r"+successList.join("\r"));
RIP Gary Moore 1952-2011

... That 2nd line is of vital importance ...
The Description line is to show a nice helpful pop-up when you hover the mouse above this script in the Scripts panel -- particularly useful if you have some (wait, I'm gonna count mine) 140 scripts with, erm, "helpful names" like 'alignwords2.js' or 'balance.js' or (indeed) 'test.jsx'.
The second line, however, is important when this script suddenly stops working! It contains the important information of who made it (me) and when (today). If I ever update or amend the script, you might want to know what version you are using!
Commenting out a line, by the way, is extremely easy. Just as in the first line, all you have to do is place two slashes // at the start of any line, and it will no longer be part of the action. Also, good for you! for finding out all you had to do was to remove that 2nd line to get it to work! I dunno what went wrong, it's correct over here in my local copy. Let's blaim Jive again, shall we.

Similar Messages

  • Place multiple graphics in numerical order

    Hi all,
    I am having a problem with the order in which indesign inserts placed multiple images (graphics).
    I have a folder of images labelled 1, 2, 3, 4, 5, 6.....and so on. Say I select the first 30 images in bridge (or in the finder) and drag them to indesign and pull out a grid for 10 images. All flows in fine, but the order becomes not quite numerical.
    For example the order I see the images now placed down in is:
    1, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 3, 30, 4, 5, 6, 7, 8, 9
    I can't imagine this is expected functionality really and am hopeful that there may be an easy solution without having to do something like number all the images 001, 002, 003, 004 etc. etc. as this would take longer than simply placing down each image into a grid one by one! (I realise i can batch rename in various programs including bridge, but this probably won't help me as my numbering sometimes skips a few numbers (ie 1,2,3,7,8,10,13,17...) and therefore auto (batch) renumbering sequentially would actually break my numbering which need to remain unchanged)
    I hope this explanation makes sense and please let me know if i've left any detail that may help define the problem further.
    I am using a Mac + CS5 InDesign (& CS5 Bridge).
    ps. just tested it on CS4 and found the same issue also.
    Thanks.

    It has been remarked (and commented upon) before.
    That's because the Adobe programmers didn't really expect someone to actually use numbers to organize their files ... If you look at your list of files, you will see that the order is alphabetical instead -- '1' comes before '10' comes before '11' comes before '2'.
    The Low-tech solution is to rename all files with a single digit to one with two digits -- add a '0' in front of '1' to '9', and you'll be allright.
    (The High-tech solution is for Adobe to re-write their file sorting. For chrissakes, nowadays even Windows sorts files correctly!)

  • InDesign Place Multiple Graphics in a grid

    I really like new feature of placing multiple graphics all at once into a grid, simply by holding the Command+Shift. This seems to be limited to only working when multiple files have been chosen in the Place dialog and loaded into the Place cursor. It would be really beneficial for this grid ability to be extended to instances when a single file that contains multiple pages is chosen (ex:multi-page InDesign document or PDF). Each page is loaded into the Place cursor as if they were separate graphics to be placed, just the grid keyboard command doesn't work since only a single file was chosen from the Place command.

    That's a great idea. Post it on the official form:  Adobe - Feature Request/Bug Report Form

  • Loading/Placing multiple graphics in the correct order

    Hi. This might be hard to understand but... On a Mac (OSX 10.5.5) when placing multiple graphics at once in InDesign CS3, is there a way to have the graphics loaded/placed in the same alpha-numeric order that they show up in an open folder window (sorted by name) in the Finder? They are in correct order in the finder window with the absolute value of the file number taken into account instead of the number of decimal places (for instance 8000 comes before 12000) but they seem to load up in the placement cursor by referencing the first digit instead. I know this has been how it's always worked, but Apple has fixed the dilemma. Is Adobe just behind in this idea? Is there a better way for me besides renaming all the files or placing them one by one? I just tried changing the links palette to "Sort by name" but they go into old school computer alpha-numeric order based on the first number unfortunately. Any ideas would be much appreciated!
    Thanks,
    Mike

    I don't have a real answer, but my "peanut gallery" comment is that alphabetizing has been eff'd up in OS X since 10.0 (Finder and other apps), and never works reliably in all instances. Though it has been fixed up "better" by now, 10.5.
    Makes me long for the good old days of OS 9 where everything worked right.

  • Canvas disappear on sending multiple requests specifically from IE 11

    I have a page which displays few javascript charts on it. I am using RGraph chart API to generate charts. The charts are been generated from a separate Ajax call.
    The page is working fine with IE 7, 8, 9 and 10. Then recently I have upgraded to IE 11. After upgrade the page is not working as intended. On performing refresh operation for about 3-4 times, section of some charts are been disappers. It displays
    blank section instead of chart. And random charts gets disapper. It is not fix that some specific charts will fade away.
    And when this issue occur, all the CSS on the page goes messy.
    I have checked for any javascript related error generated or not. But I didn't found any javascript error on the console.
    I have checked from development tool. The canvas tag is available, bit it does not display on the page. It shows a blank section instead.
    Any idea why this is happening?
    I have moved this question from IE 11 Community Support Forum. Here is the link of the forum. 
    http://answers.microsoft.com/en-us/ie/forum/ie11-iewindows8_1/canvas-disappear-on-sending-multiple-requests/c433cf9b-fb82-48f1-8554-ebb3354795fe

    I have a page which displays few javascript charts on it. I am using RGraph chart API to generate charts. The charts are been generated from a separate Ajax call.
    The page is working fine with IE 7, 8, 9 and 10. Then recently I have upgraded to IE 11. After upgrade the page is not working as intended. On performing refresh operation for about 3-4 times, section of some charts are been disappers. It displays blank
    section instead of chart. And random charts gets disapper. It is not fix that some specific charts will fade away.
    And when this issue occur, all the CSS on the page goes messy.
    I have checked for any javascript related error generated or not. But I didn't found any javascript error on the console.
    I have checked from development tool. The canvas tag is available, bit it does not display on the page. It shows a blank section instead.
    Any idea why this is happening?
    I have moved this question from IE 11 Community Support Forum. Here is the link of the forum. 
    http://answers.microsoft.com/en-us/ie/forum/ie11-iewindows8_1/canvas-disappear-on-sending-multiple-requests/c433cf9b-fb82-48f1-8554-ebb3354795fe
    Hi,
    In order to get your issue solved more efficiently, I would recommend you post another thread in
    https://forums.asp.net forum to get dedicated supports, since based on your description, you are having this issue with your web applications and that forum is for web development issues.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is it possible to replace  XSLT mapping in place of Graphical mapping

    Is it possible to do XSLT mapping in place of Graphical mapping, in any normal scenario?
    Means the fuctionality we do by using Graphical mapping(like the operations by using node functions etc...) could possible to do with XSLT Mapping?

    HI
    yes it is possible to replace the graphical mapping with the XSLT mapping.
    But using XSLTs degrade the performance of the interface and moreover they are not easily maintainable.
    Refer the below links for assistance on XSLT Mapping:
    XSLT MAPPING:
    Generic XSLT Mapping for SAP XI,Part I
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
    Generic XSLT Mapping for SAP XI,Part II
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a
    XSLT: Recursive Templates
    XSLT: Recursive Templates
    Easy RFC lookup from XSLT mappings using a Java helper class
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14
    Step u2013 By u2013 Step Simple Approach for XSLT Mapping
    Step – By – Step Simple Approach for XSLT Mapping
    http://www.devguru.com/Technologies/xslt/quickref/xslt_element_applytemplates.html
    XSLT Mapping
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/006aa890-0201-0010-1eb1-afc5cbae3f15
    xpath functions in xslt mapping
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=xslt+mapping&adv=false&sortby=cm_rnd_rankvalue#
    Using XSLT mapping in a ccBPM scenario
    File to Multiple IDocs (XSLT Mapping)
    Comparsion of Different mappings:
    Comparing Performance of Mapping Programs
    Complete mapping guide url:
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
    cheers

  • FCP 7 Multiple Graphics Cards & 3 Displays

    With FCP 7 (Studio 3) has Apple fixed the issue that you can't have multiple graphics cards and more than 2 displays as was the problem with prior versions?

    I did the typical; post a question then play around with the problem routine here.
    I've found a solution where i put the "playout monitor" on the same card as screen 1. move screen 2 to another card and make the relevant adjustments to the displays arrangement panel so everything is the same layout as before. FCP now plays out to the correct monitor it seems it can't handle sending to other cards.
    i'm running 10.5.8 and FCP 6.0.6

  • I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics

    I am using a code based typesetting program (not WYSISYG) that outputs PDFs. I am producing 100 plus pages that have multiple graphics on each page. I need to know how to format a PDF command that I can incllude in my programming that will tag my graphics with "Alternative Text".
    I know that with a Microsoft product graphics can be tagged before a PDF is made. I need to know how to do this with my programming.

    The Acrobat SDK might be a starting point.
    From there, perhaps a plug-in (built with C+).
    Perhaps with a licensed release of a PDF Library (this could be $$).
    The viable and cost effective alternative is use the tried and true.
    Authoring in an appropriate authoring application with appropriate tag management.
    Example:  Adobe InDesign; Adobe FrameMaker or MS Word with PDFMaker (comes with install of Acrobat).
    This way you place "Alternative Text" when mastering content in the authoring file.
    Going the route and with some look-see (research) you may find programmatic approaches to placing the alt txt in the authoring file.
    Note: as discussed in the Matterhorn Protocols there is no programmatic method that provides a fully accessible PDF (specifically, that is an ISO 14289-1, PDF/UA-1 compliant PDF).
    Regardless, here you have a sub-forum for discussions on Acrobat usage.
    Consequently discussions on/of 3rd party software is rather out of scope eh.
    Be well...

  • Adobe Premiere Pro: place image sequence in reverse order on timeline

    Hi all,
    I have a jpg image sequence numbered from frame000 to frame100. It imports in numerical order...obviously. I am trying to find a way of dragging the files onto the timeline so they begin at frame and descend in order. Shift clicking in the direction you want doesn't work as it does in aftereffects.
    I know I can nest and reverse the speed but I would prefer to avoiding nesting at this stage. I also have no option to renumber the files as this is how they are generated and I have a tonne of them to import.
    Hope someone can help.

    Lowflyingweasel wrote:
    Trent
    I'm sorry. I know this is not the way it's done. Within an hour you replied to this customer? I've posted mine days ago and haven't received any replies??!! How is that possible? Sorry Gingergingers for highjacking your thread.
    Trent. Please. Either you and your adobe friends shove me properly or tell me where to find the answer if it has already been discussed somewhere else.
    https://forums.adobe.com/thread/1685295
    I must be doing something seriously wrong if even the tread is ignored! Never mind the App.
    I hope it's not presumptuous of me to speak for Trent, but I know him well and we're in the same situation. We are not official tech support representatives for Adobe. We do our forum (and other support) work largely on our own time as a way to assist our customers. We just do this as time allows, so there is no way of knowing who's been waiting for days or just an hour. It's usually just a matter of what we see on the main page (or in our inboxes) when we happen to log on. Also, some issues are a lot easier to address than others. For example, this one was just a basic workflow problem that just needed to be sorted out and had a correct answer. The thread that you posted above was a lot more specific, not easily repro-able by all of us, and doesn't seem to have any easy answers (at least not yet). It's a lot harder for people to address when it's like that, which is probably why you received very few comments at first. I see that both Trent and Kevin have commented to try to help you now, so the best thing is to just try to work with them and other users to see if you can alleviate your frustrations a bit. I can empathize with your situation, but you have to understand that most of us are really just fellow users on here. Thanks for your support.
    I've marked Trent's answer to this thread correct BTW... Nice one, Trent! I'm glad it worked for you, Ginger.

  • Preserving numerical order of imported photos

    I am working on a project consisting of still photographs imported into FCP. the photos are in .psd format, and are named/numbered sequentially, such as this:
    DSCN0001, DSCN0002...etc.
    sometimes the numbers might not begin at 0001, but they are always in ascending numerical order.
    I have discovered that sometimes their order, after placed into the time line is out of numerical sequence, which is a problem bcs thousands of photos will be involved in this beast. tweezing thousands of images into correct order would be...not good..
    Is there a non-manual way for me to correct the photos' order after they've been place and/or ensure they they remain in correct numerical order even before I do the importing?
    thank you!
    r

    If you sort them by name in the Browser, they should go in the order that they appear there. but numbers are tricky sometimes. If they absolutely ascend I think it should work OK.
    You can also view by icons, and place them in order. left to right, then next row down - left to right etc.
    Jerry

  • Running multiple awaited Tasks in order

    I am creating an app that requires to execute multiple awaited tasks in order or else the out come is disastrous.
    This current method executes all awaited task almost at the same time. Sometimes the Speech synthesizer runs before the stream is finished being generated or even before the rss feeder data is finished loading.
    here is my code
    private async void RSSreader()
    SyndicationClient client = new SyndicationClient();
    Uri feedUri = new Uri("http://api.breakingnews.com/api/v1/item/?format=rss");
    feed = await client.RetrieveFeedAsync(feedUri);
    foreach (SyndicationItem item in feed.Items)
    RSSFEEDBOX.Text = RSSFEEDBOX.Text + "\n" + item.Title.Text + ".";
    // Read Text From Text Box RSSFEEDBOX
    stream = await Sn.SynthesizeTextToStreamAsync(RSSFEEDBOX.Text);
    TextPlayer.SetSource(stream, stream.ContentType);
    TextPlayer.MediaEnded += TextPlayer_MediaEnded;
    TextPlayer.Play();
    Rogelio Rios

    The problem is that you have used 'async void'. You should not use 'async void' for methods/functions.
    Change your method's signature to:
    private async Task RSSReader()
    And of course this method should be called asynchronously.
    I'm a self-taught noob amateur. Please take this into account when responding to my posts or when taking advice from me.

  • Latest iphone sofware update fails to synch photos in numerical order!

    I've been informed that the reason why my photos on my 3g Iphone will no longer synch to it in numerical 'name' order is because the latest software update places them in 'date taken' order by default, consequently moving them out of my preferred option.
    I've been told I will need to use a third party software in order to place my photos back in numerical order. Does anyone know of a way round this, and if not, can anyone recommend suitable, preferably free software to acheive this?
    Many thanks.

    I've been informed that the reason why my photos on my 3g Iphone will no longer synch to it in numerical 'name' order is because the latest software update places them in 'date taken' order by default, consequently moving them out of my preferred option.
    I've been told I will need to use a third party software in order to place my photos back in numerical order. Does anyone know of a way round this, and if not, can anyone recommend suitable, preferably free software to acheive this?
    Many thanks.

  • TableSorter in Numerical Order instead of Alphabatical Order

    I am using the TableSorter from java tutorial. I have a table that contains columns of Integer, Float and String. The TableSorter from Tutorial sorts all columns alphbatically.
    Could someone tell me how do I sort columns that contains Integer or Float? I like to have the numerical order not alphabatical order.
    Thank you very much!!

    You've got three threads going on this topic. Everyone is telling you that the TableSorter class from the Swing table tutorial will do what you want. So, do you get the impression that you are doing something wrong? You've given us no idea what you code looks like so how are we supposed to guess what you are doing?
    The more information you provide with the question, the better the chance for a successfull answer. So post your code and maybe people will take the time to look at it.
    This [url http://forum.java.sun.com/thread.jsp?forum=57&thread=419688]thread shows how easy it is to create a simple test program to demonstrate a problem/solution. Chances are while you creating this demo, you will find your mistake.

  • Creating slideshow - importing images in numerical order

    I am creating my first slideshow in iDVD '06. I want the images to appear in numerical order as they do in their original folder. When I drag multiple images over from a folder, they appear in random order. Is it possible to maintain the numerical order?
    iMac G4   Mac OS X (10.4.6)  

    Mandy - if you want a quick slideshow, why not do it in iPhoto where you can quickly arrange the photos how you want? You can then Share/Export to Quicktime and bring it in to iDVD (my preference) or use the iDVD option within iPhoto to transfer the slideshow.
    John

  • Numerical order of photos in Elements 6

    I want to transfer photos from My Pictures folder to named folders in Photoshop Elements 6 Organizer.
    When I Get Photos, the Getting Photos dialog shows the photos in numerical order as they are transferred.
    But when they are displayed in Organizer and moved to their named folder, they are no longer in numerical order and seem to be in order of when taken/modified etc.
    I am not interested in this or Timelines. I just want the photos in their original order.
    Is there any way of doing this?
    Tim

    >n answer to your concern, Barb, about the sequence after editing a photo from a digital camera, once the photo is edited/modified, it loses its original taken date.
    I am still concerned about the loss of the original taken date. That does not happen for my digital camera photo files that are in the Organizer.
    >now I just get a message saying that the files are not visible in Organizer. Why?
    Maybe previously you were previously working with a folder for which you had imported the photo files to the Organizer and this time you chose a folder where the photo files had NOT been imported to the Organizer.
    The folder structure shown on the left hand side of a Folder Location screen looks very similar to Windows Explorer - but it does not function the same. You can NOT use all of the folder structure that you see. When you look at the folder tree on the left side, any folder which contains at least one photo file that has been imported to the PSE Organizer has an icon superimposed on the folder image. (I am not sure how to describe this icon, so I suggest that you look at a folder where you did import photos to identify the appearance of the icon.)
    The Organizer only displays photos that have been imported to it.
    >The other thing I once saw but cannot repeat, is when I Show All in Thumbnails view, the photos were separated into folders as in the Albums. Now they are all muddled together. What did I inadvertently press?
    First, a concept. Folders are a structure of the Windows Operating System. Albums in Photoshop Elements are not the same as folder: an Album is like a list of photo files where each photo is assigned a specific position in the sequence of photos.
    The photo files that are in any specific album may or may be contained within the same Windows folders. If some photos in a Windows folder are in a specific PSE Album, other photos files in that folder may not be in that specific Album. Also, photo file abc.jpg which resides in Folder1 may be included in multiple PSE albums: yet there is still only one copy of that photo file abc.jpg.
    There is also (in recent PSE versions) a concept of a Smart Album: in this case the customer identifies some characteristics of their photos and the program automatically creates an album of the photo files that have these characteristics. Note: smart albums will not be mentioned at the photofanatic web site because they were introduced after that web site was written.
    So I can not immediately identify when the photos would be separated in to folders except when you are in the Folder Location layout of the screen.

Maybe you are looking for