Forum Replies Created

Viewing 15 posts - 406 through 420 (of 1,335 total)
  • Author
    Posts
  • in reply to: Script to label selection with height and width #61488

    Oof — saved by collywolly!

    (I really had no idea what to look for. It's weird that creating the paragraph style works but trying to use it results in an error …)

    in reply to: Script to label selection with height and width #61478

    Can you check if the script created any of the three items before crashing?

    in reply to: Step and Repeat #61476

    Kris, you'd have to take that one to Adobe: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

    (I'd say it is not so much a bug, but rather an annoying and unnecessary change.)

    in reply to: Script to label selection with height and width #61475

    Ouch.

    Can you check if this copy is complete? The very first thing the script does is checking if the layer, paragraph style, and swatch “ImageLabel” exist — and if any of them don't, it creates them! So theoretically, this error — what it says is basically 'I don't have access to this style called “ImageLabel”' — ought not have happened.

    Can you verify on a simple rectangle in a blank new document if the layer, paragraph style, and swatch are created correctly?

    in reply to: Step and Repeat #53459

    Kris, you'd have to take that one to Adobe: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

    (I'd say it is not so much a bug, but rather an annoying and unnecessary change.)

    in reply to: Script to label selection with height and width #61445

    … Actually, one line would be easier – I can just draw the rules to match and leave the text either above or below the graphic (wherever is easiest for the script to place it).

    Actually, all of the above is possible using regular scripting :) No extra plug-in needed, just a bit of know-how.

    Copy the Javascript below and paste it into a plain text file — see David's handy “How to Install a Script in InDesign That You Found in a Forum or Blog Post” article for the exact procedure. Rest assured, there is no malicious code hidden in here :D That I know of :(

    It has the following features:

    1. Run on a single, plain selection — one with the black arrow. It will add labels and lines for width and height. The current selected object will stay selected.

    2. It puts the labels and lines on a layer called “ImageLabel”, which is set to non-printing on creation. If the layer already exists, it doesn't change the existing settings. (If you always want to have it print: to remove the default non-printing setting, change 'printable: false' to 'printable: true' in line 17.) This layer is colored ghastly green by default.

    3. The lines and text use a custom swatch called “ImageLabel”. It's an RGB color (because presumably it's just for viewing), but of course I can make it a real CMYK color as well. As per above, you can also run the script once and then adjust the settings — the script won't change it if it already exists.

    4. The text has a paragraph style called “ImageLabel” by default. It's set to Helvetica at 12 pt, but you can change these values in the script (for new defaults) in line 30, or simply change the “ImageSize” paragraph style. Same as above.

    5. The labels appear centered in their text frames, so the left one has to be wide enough for three decimals. The text frames are set to ignore all text wrappings to prevent unexpected overset text.

    6. You didn't ask for this, but it groups the text frames and lines together for each image. Might come in handy; but if you find yourself ungrouping everything every time because stuff is just not In The Right Place (and that's always a different place (*)), delete the entire line near the bottom that says “app.activeDocument.groups.add …”

    (*) I mean, if you find that everything is always off by exactly 0.1″, it's easier to change the script. If the value is always different, remove that grouping line.

    7. It comes with an Undo! Undoing will, uh, undo everything the script did. If you ran it twice, a first Undo will remove the last labels it added. The second time it will also remove the layer, paragraph style, and swatch (but only if it created them in the first place).

    … That's about it. I tested with CS4 but I'm totally fairly reasonable sure it'll work on CS5 and later as well. If not, yell and I'll think about what needs tinkering with.

    removed from post — sorry, it was too complicated for the forum

    Alas … The script contained too much special codes for this forum to be copied & used as-is, so I put it up at my website: https://www.jongware.com/binaries/labelImageSize.zip

    Download, unpack (if your browser doesn't do so automatically), and put into your User Scripts folder. Then, enjoy!

    in reply to: Script to label selection with height and width #61439

    Can you make a mock-up image of what it should look like?

    The percentage thingy you found may well have been mine; it creates a text frame the size of the original image on a new layer and writes the size into this, so you can easily switch off all labels at once. It's a piece a cake to have it write out width and height, in any measurement unit you like and with as much precision decimals as you can care about.

    in reply to: Keeping text together … #61416

    Hah — I had an idea and it worked!

    1. Set all of your text to Keep With Next:1 line. InDesign won't change a thing, because it somehow detects it's nonsense to keep such a long list all together.

    2. Run this Javascript:

    app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat = “r(?=Name)”;
    foundList = app.activeDocument.findGrep (true);
    for (i=0; i<foundList.length; i++)
    foundList[i].keepWithNext = 0;

    3. And suddenly you have all of your “Name” items at the top of a column!

    (Edited 3 times, this one ought to be okay now)

    in reply to: Keeping text together … #61415

    GREP is of no use here, and it'd need a custom script — I haven't had this particular need in the past, so that's a no.

    in reply to: Keeping text together … #61412

    If you have CS5.5 you can use its new feature “Keep with Previous” — simply reverse all of my instructions above …

    For CS5 or earlier I don't have any (non-scripted) solution.

    in reply to: Keeping text together … #61404

    Use the Keep options. Set “Keep with Next” to 1 for all lines per set except the last one; set it to 0 for that one.

    in reply to: How to start making a booklet in InDesign 5.5 #61391

    Heh heh — sorry, 'twas the evil imp on my shoulder that prompted me.

    You can use “Open” to open a Book in InDesign but you won't see its pages until you open the document as well. (But “Book” wasn't what you were looking for anyway so I'll let it rest.)

    It's still a bit unclear what you managed to accomplish though. Are you using InDesign's (extremely basic) Print Booklet feature to 'impose' an existing InDesign document?

    in reply to: Footnotes through find/change dialogue #61388

    Well, you can get there halfway at least.

    Insert a single footnote in your text and cut it out. Then search for the footnote codes with GREP and replace with the contents of the clipboard (~c if you want to copy your text formatting as well, ~C without formatting).

    You'll get a bunch of empty footnotes in which you can move the notes at the end of your text one by one.

    in reply to: paragraph styles not behaving #61385

    Uh, it seems you missed the sub-question in my question. How would it be possible to apply two paragraph styles to just a single paragraph? A paragraph style, by definition and by purpose, applies formatting to an entire paragraph. Applying “a second” paragraph style removes all formatting of the previous one and replaces it with its own.

    You might want to take a look at character styles — now those are meant to be applied to parts of a paragraph.

    in reply to: How to start making a booklet in InDesign 5.5 #61384

    File > New > Book. Seems sensible.

    And then you tried the Place command to put it into a certain place? :D

Viewing 15 posts - 406 through 420 (of 1,335 total)