Highlighted

Setting the bleed in AI via Javascript

Community Beginner ,
Apr 05, 2017

Copy link to clipboard

Copied

Hi All,

I'm writing a function to change the artboard size and add bleed depending on certain conditions.

I can't actually believe this is causing me trouble but here it is, I'm trying to set the bleed dimensions in AI document with Javascript. All I've found so far is setting up PDF export options or print options, but not the actual artboard Document Setup. I just want to be able to set bleed to a newly created document like in this window:

So similar to Indesign:

with(myDocument.documentPreferences){

  documentBleedUniformSize = true;

  documentBleedTopOffset = 7;

  }

(CC2017)

Screenshot 2017-04-06 15.45.28.png

Summarizing best solution by far: we can change bleed size using preinstalled plugin.

Windows

https://goo.gl/YE1Vah by tomr11694738

Drop plugin in ProgramFiles\Adobe\Adobe Illustrator\Plug-ins\Extensions. Use following code to run it:

app.sendScriptMessage ("My_plugin_name", "mySelector", bleeds);

where bleeds is bleedoffset in points.

Mac

GitHub - ten-A/Bleed by Ten A

All hail to these two dudes.

Topics

Scripting

Views

5.5K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Setting the bleed in AI via Javascript

Community Beginner ,
Apr 05, 2017

Copy link to clipboard

Copied

Hi All,

I'm writing a function to change the artboard size and add bleed depending on certain conditions.

I can't actually believe this is causing me trouble but here it is, I'm trying to set the bleed dimensions in AI document with Javascript. All I've found so far is setting up PDF export options or print options, but not the actual artboard Document Setup. I just want to be able to set bleed to a newly created document like in this window:

So similar to Indesign:

with(myDocument.documentPreferences){

  documentBleedUniformSize = true;

  documentBleedTopOffset = 7;

  }

(CC2017)

Screenshot 2017-04-06 15.45.28.png

Summarizing best solution by far: we can change bleed size using preinstalled plugin.

Windows

https://goo.gl/YE1Vah by tomr11694738

Drop plugin in ProgramFiles\Adobe\Adobe Illustrator\Plug-ins\Extensions. Use following code to run it:

app.sendScriptMessage ("My_plugin_name", "mySelector", bleeds);

where bleeds is bleedoffset in points.

Mac

GitHub - ten-A/Bleed by Ten A

All hail to these two dudes.

Topics

Scripting

Views

5.5K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Apr 06, 2017

Copy link to clipboard

Copied

That's a good question, I can't find it!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Apr 07, 2017

Copy link to clipboard

Copied

Save as PDF with Bleed...then re Save as Ai

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Community Beginner ,
Apr 09, 2017

Copy link to clipboard

Copied

Yes, problem is even setting it up for pdf export does absolutely nothing.

var dest = "~/Desktop/testme1.pdf";

var doc = app.activeDocument;

var myFile = new File(dest);

var saveOpts;

setSaveOptions();

saveFileToPDF(myFile);

function saveFileToPDF(myFile){

    var originalInteractionLevel = userInteractionLevel;     

    userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;  

    doc.saveAs(myFile,saveOpts);    

    userInteractionLevel = originalInteractionLevel;    

}

function setSaveOptions(){

    saveOpts = new PDFSaveOptions();

    saveOpts.compatibility = PDFCompatibility.ACROBAT5;

    saveOpts.generateThumbnails = true;

    saveOpts.optimization = true;

    saveOpts.preserveEditability = true;

    saveOpts.bleedOffsetRect = [2,2,2,2];

    saveOpts.trimMarks = true;

}

After this media box is the size of trim marks but the art is cropped to the Artboard size, (not +2).

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Community Beginner ,
Apr 12, 2017

Copy link to clipboard

Copied

Bump,

Is there really no way to do this?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Apr 13, 2017

Copy link to clipboard

Copied

We must not give up the search

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Apr 15, 2017

Copy link to clipboard

Copied

Matts, do you have Windows system? I can try to make a Win plugin which can be used by your script.

Well, to be honest, I made the one for testing purpose.The plugin sets bleeds from txt file.

You write some number to txt file with  script, run action, bleeds change - voila.

But if you don't have win system, there's no point uploading this plugin.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Apr 16, 2017

Copy link to clipboard

Copied

What is a difference which would make your plugin Windows-only? To make it for Macs, would the entire code need to be re-written, or only certain parts?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Apr 16, 2017

Copy link to clipboard

Copied

The difference is I can compile for Windows only

But the C++ code for Mac should be the same.

The meaningful part of code is below.

int bleedOffset; //let the bleed be integer, why not

    ifstream infile ("C:\\Tom_Subscriber\\data.txt"); //read the number from txt file. It's presumed that JS script has already written  the number into it;

    infile >> bleedOffset;

  

    AIRealRect myRect;

//lets make bleeds symmetrical

    myRect.right = bleedOffset;

    myRect.left = bleedOffset;

    myRect.top = bleedOffset;

    myRect.bottom = bleedOffset;

    error = sAIDocument->SetDocumentBleeds (myRect); // command to set bleeds.

As you can see, there's no dialog, input from txt file.

The plugin adds a command to the Objects menu.

Screenshot_2.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Apr 16, 2017

Copy link to clipboard

Copied

Okay thank you for showing this. So, can you also say one more thing, which is: in order to make this in Mac, what would you need to do to be able to compile? You'd have to buy a mac computer?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Apr 16, 2017

Copy link to clipboard

Copied

The other option is to install Xcode in virtual machine or Hackintosh.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Enthusiast ,
Apr 17, 2017

Copy link to clipboard

Copied

Hi, instead of read data from file, is it possible to sendScriptMassage to your plugin in script, so the plugin can use received data to do the job automatically?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Apr 17, 2017

Copy link to clipboard

Copied

Never used sendScriptMessage, need to take a look.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Apr 18, 2017

Copy link to clipboard

Copied

"Make Javascript great again!"

That was hard, but once made, always can be made.

Screenshot_3.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Community Beginner ,
Apr 18, 2017

Copy link to clipboard

Copied

This is magic Tom, how do I use it?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Apr 19, 2017

Copy link to clipboard

Copied

Good news is that it's possible to implement for scripting any feature, offered by SDK(pixel calculation, dividing bezier curves, finding duplicates etc).

For example, you can write pixel calculation in plugin, make it available for scriptmessage. Then you just run, say, such a string:

colorTextString = app.sendScriptMessage ("PluginName", "Calculate_average", "");

and get average color for gradient object or rasterimage (in text string, but it's no problem to parse it).

Keep in mind, that sendscriptmessage can not only send information to plugin, but also receive.

Bad news: plugins are platform-dependent and currently I can compile for Win only.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Enthusiast ,
Apr 19, 2017

Copy link to clipboard

Copied

I like the good news . So is it possible to implement these missing features, that Adobe do not provide, all in one plugin(say, call it ScriptingHelper), for the rest of us?

If true, maybe it's time for us to vote which features should be added prior to others.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Apr 19, 2017

Copy link to clipboard

Copied

Keep in mind, that sendscriptmessage can not only send information to plugin, but also receive.

Cool, this means that a script can know whether a plugin action was successful and other data, in order to proceed with the script logic. Something that is not inherently available for use in app.executeMenuCommand() and Actions.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Apr 19, 2017

Copy link to clipboard

Copied

2moluaple:

Seems it's possible (with native limitations of SDK).

The code in C++ is simple:

if (strcmp(selector, "Selector1") == 0){

//do one function

}

else if (strcmp(selector, "Selector2") ==0)

{

//do 2nd

}

etc.

So one can just send different selectors to plugin to run different functions.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Apr 19, 2017

Copy link to clipboard

Copied

agree with others, this is fantastic and promising. Thanks for sharing tom.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Community Beginner ,
Mar 22, 2018

Copy link to clipboard

Copied

Tom, so could you send a link to compiled plugin version where I could send bleed size via app.sendScriptMessage?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Mar 23, 2018

Copy link to clipboard

Copied

Win64, CC-CC2015.

https://goo.gl/YE1Vah

Usage:

app.sendScriptMessage ("My_plugin_name", "mySelector",  15); // where 15  is bleedoffset in points.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Mar 23, 2018

Copy link to clipboard

Copied

Hi, Here is a full codes for Macintosh.

GitHub - ten-A/Bleed

Thank you you for your snipet.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Mar 23, 2018

Copy link to clipboard

Copied

HOw much would it cost for you guys to do all the hard work and make me a plugin for both Windows and Mac that we can send our requests for and you add those commands to the plugin?

We need bleeds, we need other impossible stuff like seeing in some art has an opacity mask on it or not (without undoing the mask via actions, etc etc).

I mean, I think I can maybe learn how to finally set up my xcode, and hopefully I soon will to try these babies out!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Mar 24, 2018

Copy link to clipboard

Copied

check_opacity_mask.gif

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Mar 24, 2018

Copy link to clipboard

Copied

The problem is sendscriptmessage cant directly pass arthandle to plugin. So the only workaround is to pass selection, then plugin catches selection and checks for needed conditions.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Community Beginner ,
Apr 05, 2018

Copy link to clipboard

Copied

Tom, is there a way to compile Win32 or even bit-independent version of your plug-in?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Apr 09, 2018

Copy link to clipboard

Copied

WIn32:

https://goo.gl/tFRNDu

app.sendScriptMessage ("My_plugin_name", "Bleed", 15);

//some test selectors

app.sendScriptMessage ("My_plugin_name", "ifMasked", 0); // checks selected object for opacity mask; returns string "is masked"    or "is NOT masked"

app.sendScriptMessage ("My_plugin_name", "countSelection", 0); // returns num of all selected objects

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Community Beginner ,
Apr 17, 2017

Copy link to clipboard

Copied

No Tom, unfortunately it's running on a Mac, and has to be cross-platform.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Enthusiast ,
Apr 17, 2017

Copy link to clipboard

Copied

Another possible way with script:

- Save document uncompressed so that we can parse the bleed data, and close it.

- Open and read the saved file, use this regex to replace the bleed value: ([\d.]*)(?= /Real \(Bleed(Left|Right|Top|Bottom)Value\))
, then save it. Note that the bleed value are in point unit.

- Now the bleed changed, open it in Illustrator again, and save it compressed if needed.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Oct 30, 2017

Copy link to clipboard

Copied

I changed your regexp to this because it was putting my bleed single-digit value in 2x:

/((\d{1,2}))(?= \/Real \(Bleed(Left|Right|Top|Bottom)Value\))/g

Here is the function:

function setBleed(doc, bleed, newName){

  /*

    Thanks to moluapple.

    bleed in points

  */

  var opts = new IllustratorSaveOptions();

  opts.compressed = false;

  opts.pdfCompatible = false;

  doc.saveAs(File(newName), opts);

  var f = app.activeDocument.fullName;

  var contents;

  f.open('r');

  contents = f.read();

  f.close();

  contents = contents.replace(/((\d{1,2}))(?= \/Real \(Bleed(Left|Right|Top|Bottom)Value\))/g, bleed);

  f.open('w');

  f.write(contents);

  f.close();

  app.activeDocument.close();

  app.open(f);

  var opts2 = new IllustratorSaveOptions();

  opts2.compressed = true;

  opts2.pdfCompatible = true;

  app.activeDocument.saveAs(app.activeDocument.fullName, opts2);

}

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Jun 20, 2018

Copy link to clipboard

Copied

I'm having trouble getting this function mentioned above to work (I marked where it fails) :

function setBleed(doc, bleed, newName){ 

  /*

    Thanks to moluapple.

    bleed in points

  */ 

  var opts = new IllustratorSaveOptions(); 

  opts.compressed = false; 

  opts.pdfCompatible = false; 

  doc.saveAs(File(newName), opts); 

  var f = app.activeDocument.fullName; 

  var contents; 

  f.open('r'); 

  contents = f.read(); 

  f.close(); 

  contents = contents.replace(/((\d{1,2}))(?= \/Real \(Bleed(Left|Right|Top|Bottom)Value\))/g, bleed); 

  f.open('w'); 

  f.write(contents); 

  f.close(); 

  app.activeDocument.close();

//THIS IS WHERE IT FAILS 

  app.open(f); 

  var opts2 = new IllustratorSaveOptions(); 

  opts2.compressed = true; 

  opts2.pdfCompatible = true; 

  app.activeDocument.saveAs(app.activeDocument.fullName, opts2); 

Did this work for you? I couldn't get this to work, and I can't use a plug-in for my script since the script will eventually be run on someone else's computer. If this solution ended up working for anyone then I might keep toying around with it to see if I can get it to work. When I run it Illustrator says that the new file is in an unknown format and so won't load. I get this problem essentially anytime I try to write to an illustrator file.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Jun 23, 2018

Copy link to clipboard

Copied

Let's see if the variable 'newName' that you are using contains some characters which cannot be used as a name of a file?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Jun 25, 2018

Copy link to clipboard

Copied

I don't think so. Here's how I call it:

setBleed(app.activeDocument,18,"~/Downloads/newdoc.ai");

This gives the error I was talking about before. My main question is whether it worked for you when you posted this function (this is just copied and pasted from your post). I just want to know if this is something I should keep trying to get to work, or if it's a lost cause.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Jun 25, 2018

Copy link to clipboard

Copied

It did work for me, but not quite so well because I'd get random file-read errors when trying to open the uncompressed file back up again. Possibly this was due to client's use of a plugin made by a company, which I did not have installed and which may not have made a difference if I had it installed either. Or, maybe it just happens with uncompressed files regularly when edited via my regexp.

However, try to use an absolute path to the file instead of a relative one and see if it works.

One quick way to get an absolute path from a relative one is to go File(File("~/Desktop/MyFile.ai).fsName);

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Jun 26, 2018

Copy link to clipboard

Copied

Thanks. Changing the file name to the absolute path did not fix the problem, but it was helpful to understand what errors you were getting. I think I'll look into the other options on this thread.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Jun 27, 2018

Copy link to clipboard

Copied

Well, I tried it just now, (Mac) and it appears to work just fine with either an absolute or relative path.

I'm curious about any other variables which would make my system differ from yours which may yield the cause of this error.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Jun 29, 2018

Copy link to clipboard

Copied

Me too. Maybe I'll try it on a mac to see if that makes a difference, since you said that you got it to work on a mac. Are there any other system differences that you think might make a difference?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Jul 01, 2018

Copy link to clipboard

Copied

So what's your Ai version, is it the latest (cc2018 as of this moment) ?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Jul 02, 2018

Copy link to clipboard

Copied

Yes. It's Illustrator CC 2018.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
New Here ,
May 02, 2019

Copy link to clipboard

Copied

I tried this script with Illustrator 2019 on Mac.

I was able to change the red bleeding box values to any single-digit value (0-9). Too bad that this value is in points - i.e. biggest red bleed I was able to create with this was 9 points = 3.175mm.

All my tried floating point values and 2 digit integers (e.g. 10) caused the file load to fail with error message

"The operation cannot complete because there isn't enough memory (RAM) available."

Note: When changing red bleed box values via Illustrator's UI, additionally the PDF Box values change. Changes on my tests were as follows:

Artbox stays the same
BleedBox -> 0.0, 0.0, original+2*bleed, original+2*bleed
CropBox -> 0.0, 0.0, original+2*bleed, original+2*bleed
MediaBox -> 0.0, 0.0, original+2*bleed, original+2*bleed
TrimBox -> bleed, bleed, original+bleed, original+bleed



Since Illustrator-originated changes work just fine, I am concluding that there is still some parameter in the .ai file which controls how the bleeding box variables are being treated.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Community Beginner ,
Mar 23, 2018

Copy link to clipboard

Copied

Summarizing best solution by far: we can change bleed size using preinstalled plugin.

Windows

https://goo.gl/YE1Vah by tomr11694738

Drop plugin in ProgramFiles\Adobe\Adobe Illustrator\Plug-ins\Extensions. Use following code to run it:

app.sendScriptMessage ("My_plugin_name", "mySelector", bleeds);

where bleeds is bleedoffset in points.

Mac

GitHub - ten-A/Bleed by Ten A

All hail to these two dudes.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Mar 23, 2018

Copy link to clipboard

Copied

Here is a sample build for AI(Macintosh) ver.21 and later. You can download from the アプリケーション自動化総合コミュニティフォーラム (Japan) .

Bleed.aip.zip

Commentary also available in [AI]Javascriptの機能を拡張する方法 (Sorry, its a Japanese article. However, you can translate via google...)

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
53986720 LATEST
New Here ,
May 02, 2019

Copy link to clipboard

Copied

Just writing a note about this one. This plugin worked on Illustrator CC 2019 on Mac OS X 10.14.4.

Instructions:

1. Download and unzip Bleed.aip.zip mentioned here (or clone from github and compile. fun.)

2. Place the resulting Bleed.aip plugin to folder /Applications/Adobe Illustrator CC 2019/Plug-ins.localized/Extensions

3. Write a driver Javascript as follows:

$ cat script.js
   alert (setBleed ( 51.0236 ));  // unit: pt; range: 0-72.0

function  setBleed (n) {
       var  result = app.sendScriptMessage ( 'Bleed', 'Bleed' , n);
       return  result;
}

4. Start Illustrator

5. Select menu File -> Scripts -> Other Script ...

6. Select the script you wrote on step #3

All this information has been available on this thread or linked threads. However, the exact needed steps seemed to be a bit scattered, so I thought writing this down will save my effort next time I'm having this problem.

Great thanks to the guys who took the effort to produce this plugin!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Resources
Add a group