Help with scripting or actions, is something available or is it possible.
Copy link to clipboard
Copied
Hey, just wondering if anyone can help me with a few action/scripts to solve some problems. Thank you very much in advance.
1. The Text-Block script (https://aiscripts.com/illustrator-text-block/) is extremely helpful but was wondering if it's possible to have a version with different parameters in? Control over the maximum height of each line? or is there a better way to solve the problem.
If I have a list of words in a text box is there a way to scale down the text pt size if it goes over a certain length to fit. The text doesn't need to be editable afterward if that helps.
2. Every day I'm saving two pdf versions of a file to a new folder within a set folder. One as standard and another with 'preserve illustrator capabilities turned off' with the naming format 'XXX_mockup.pdf' and 'XXX_send_mockup.pdf.
Is there any way to automate this with actions or scripts? Would it be possible to have an input for the XXX naming and the name of the new folder created?
Thanks so much!
Explore related tutorials & articles
Copy link to clipboard
Copied
Hi Russell, the whole point of the script is for all text frames to have the same width, height is adjusted accordingly.
can you post a sample showing what you need?
Copy link to clipboard
Copied
Thank you for replying Carlos.
I likely confused the situation by comparing the TextBlock script. It's just that it's very helpful for other needs of mine.
I've tried to give an idea of what I'm looking to achieve using a list of random names.
Either in a text box or single lines of text, I need the size to change when a line of text 'name' goes over a certain width. The second column shows the names that originally don't fit, then only those scaled-down in the second column then text expanded in the third.
Hope this helps explain it in more detail? Thanks again.
Copy link to clipboard
Copied
Just to update and say to ignore the second request as it's been answered elsewhere.
Copy link to clipboard
Copied
for resizing the overset text, check out the accepted answer on this post:
Copy link to clipboard
Copied
Thanks again Dilliam, not sure this achieves what I'm looking for as it resizes all the text to a preset amount when I tried it out.
Is there a way to resize individual objects if they are over a certain width and ignore any that are under that size?
for example. Selected objects - if width is over 350mm, resize to 350mm?
Thanks in advance
Copy link to clipboard
Copied
my apologies. i misread the issue. i thought you had overset text. i didn't see that the words were hyphenated and placed onto the next line. you might be able to get that script to work by turning off they hyphenation preference?
Can you share a sample file so i can see how your artwork is formatted? that'll give me the best shot at figuring out a solution.
Copy link to clipboard
Copied
Thank you, I've crudely put together some examples that hopefully explain the need and then how I actually set the artboard/text boxes currently.
The main issue is manually resizing the lines of text that don't fit the width of the box (315mm), whether this can be achieved still as editable text or needs to be outlined first doesn't matter too much. I guess editable text makes the setup for the print process simpler though.
Thanks again, you've been really helpful with everything
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Hi Dilliam,
Just wondering if there was any luck with this or is it a lost cause through illustrator?
Really appreciate you looking at it and your previous help.
Copy link to clipboard
Copied
Sorry Russel. I had completely forgotten about this.
Can you re-save your example file as an .ai file or as a pdf compatible with AI 2021, please? I can't open your file in illustrator without losing a bunch of info because of version compatibility issues.
Copy link to clipboard
Copied
Not to worry, thanks for taking the time to look at it.
I might be wrong but it didn't seem to like me uploading an .ai file so I've attached a link, hopefully this works.
https://www.dropbox.com/s/mom2ky5cu5st93k/Text%20resizing%20example.ai?dl=0
Thank you

