Illustrator Scripting :: Round Font Size If In Decimal With AppleScript?

Dec 4, 2013

Is it possible to automate the rounding of font sizes if they are in decimal form? I have a few thousand files I have to prepare for upload and they can't have font sizes such as 8.214 which several do. With AppleScript would it be possible to identify and then round up or down such font sizes?

View 2 Replies


ADVERTISEMENT

Illustrator Scripting :: Convert JavaScript To AppleScript?

Apr 3, 2012

I need to convert javascript to Apple script.
 
try {
app.activeDocument.layers.getByName( '.ARD' ).remove(); } catch (e) {};

View 1 Replies View Related

Illustrator Scripting :: Applescript Export Artboard As PSD

May 25, 2013

How can i export only the artboard as PSD? When i use this script a lot more is exported.

with timeout of (10 * 60) seconds
tell application "Adobe Illustrator"
activate
set dpi to 90 as text
set documentnaam to name of current document

[Code] ....

View 1 Replies View Related

Illustrator Scripting :: Change Overprint Of Color With Applescript

May 4, 2012

I want to overprint a PMS colors using Applescript. I though if I changed the property of the selected items fill color from (fill overprint:false) to (fill overprint:true) it would work. This doesn't seem to change a thing.
 
This is the script I am currently using:
 
script ChangeOverprint
tell application "Adobe Illustrator"
local docRef

[Code]....
 
This is the picture of a simple document I created. The elipse has fill overprint:true. The polygon has filr overprint:false. The original value for the property fill overprint was false. I changed it in the script to true. Which the log shows it changed.

View 1 Replies View Related

Illustrator Scripting :: AppleScript Placing Page From PDF Into Layer

Sep 20, 2012

I have a PDF file with 25 pages that I need to get into the form of an Illustrator file with 25 layers. I found the example of opening a particular page of a PDF file (using CS6), and that works. And I can create layers. But I can't figure out how to place a particular page of a PDF file into the new layer. Where/how do I provide the page info?
 
(I have a PostScript program that generates artwork for signs that are to be laser etched at the TechShop. The laser interface uses Illustrator and a special Print driver. I notice that opening a page from a PDF file positions the contents slightly differently than placing that page, when I do it manually, so I figured I'd create the multilayered Illustrator file by opening one page (which works) then placing all the pages in their own layers, then deleting the first page. Then the positioning will be consistent. But I'm stuck at placing a PDF page...)
  
tell application "Adobe Illustrator" to activate

-- This function opens the file passed as
-- a file reference parameter, at page myPage.
-- fileToOpen is a reference to a multi-page PDF file
-- and needs to be set up before calling this function.

on openMultipageFile(fileToOpen, myPage)
tell application "Adobe Illustrator"
set user interaction level to never interact

[Code].....

View 2 Replies View Related

Illustrator Scripting :: Using AppleScript To Place PDF As A Link At Crop Bounds Other Than Art Box?

Mar 20, 2012

trying to have an applescript place a PDF as an Illustrator Link at the PDF's Media Box using "make new placed item". The only result possible as far as I can tell is a link at the PDF's Art Box.
 
I've seached around and have seen others with the same issue, but no answers as to whether it is actually possible. As with most Applescript stuff, I am either way overthinking it or it is not possible directly.
 
Currently I have a workaround using an Applescript script controlling Acrobat to sidestep the problem by setting the Art and Crop box to Media box, then place as a link in Illustrator, but it is not a direct route into illustrator.
 
I have also noticed that in the "Adobe Illustrator CS5 Scripting Reference" that the "PDF options object properties" do not honor the PDF crop bounds (except for the default value of Media Box). Is this an inherent problem with Applescript/Illustrator and PDF crop boxes? Could it be that the options for Open PDF and Place PDF are crossed?

View 7 Replies View Related

Illustrator Scripting :: Getting Used Spot Colors In Color Legend On MAC JS Or Applescript

Mar 23, 2012

I've been looking around for a script that will take the used spot colors in a document and place them in a predetermined spot. I've came across several posts about this, such as the COLOR CHIPPER although I think it's focus was on swatches. What is confusing is the part of making New CMYKColor or RGB or if I even need to do that. I've looked at other posts and the Adobe docs, but none seem to work. Adding the text isn't difficult, it's getting these spot colors to reflect what's in the document that is. From what I'm seeing now:
 
I may have to use some other type of script such as Applescript to get rid of unused swatches first throught the actions panel, but I'm not sure.I could possibly use the getByName method to call out the specific rectangle and the and relative callout with the appropriate color instead of having to position everytime. 

View 9 Replies View Related

Illustrator Scripting :: Resizing Font Size Automatically?

Mar 24, 2011

how to auto fit overset text in a fixed text frame?
 
I import many languages into fixed text frames and it is a pain to keep resizing or scaling manually.
 
As of yet I've been unable to source any javascript or applescript that can do it. The closest has been "JET_AutoFitVertical.jsx" but this resizes the text frames.

View 4 Replies View Related

Illustrator Scripting :: Text Overflow By Adapting The Font Size

Jun 2, 2012

I saw scripts that adapt a box to the amount of text, but i'am looking for a script that does it the other way around. I have a amount of text that has to fit in a predefined box for example 50 x 30 mm.
 
The script has to solve the text overflow issue by adapting the fontsize. Is this possible?

View 3 Replies View Related

Illustrator Scripting :: Export Multiple ARTBOARDS To Multiple JPGs (AppleScript)

Apr 9, 2012

I´m aware that Illustrator doesn´t have multiple artboards options for JPG as it does with eps, or other formats, but is there any workaround for this? Looping current artboard and exporting them to JPG or something.  Or maybe there is someway to force the   "save multiple artboards:true" in JPG?
  
export document currentDoc to file exportFolder as JPEG with options ¬
{class:JPEG export options ¬
, quality:100 ¬
, artboard clipping:true ¬
, artboard range:1 - 2 ¬
, save multiple artboards:true}

View 3 Replies View Related

Illustrator Scripting :: Convert Decimal Values To Fractions For Use In Inch Measurements?

May 21, 2013

Any good way to convert decimal values to fractions for use in inch measurements? I have a script that works great but it returns values like 5.5638 and I'd rather it return the closest fraction answer like 5 9/16. 1/16ths would be great, but I'd settle for 1/8ths.
 
I started trying to come up with a large if with lots of > and < conditions, but it might be better not to reinvent the wheel.

View 13 Replies View Related

Illustrator Scripting :: Round Fractional CMYK Colours?

Oct 8, 2012

I work in a large printing company and we get artwork from all over that has dodgy CMYK colours (quick convertions from RGB obviously). We have noticed that these colours don't rip as well as rounded CMYK colours, so we spend a lot of time cleaning them up and rounding them down...
 
I'd like to be able to just run a script that does this to a whole document, including the colours inside gradients. So if for example the number is .5 or below we round down, or above we round up.

View 17 Replies View Related

Illustrator :: A Brush Size / Variation Not Be In Decimal In CS6

Jun 26, 2012

In Illustrator CS5 calligraphic brush could be decimal e.g. 0,5pt size as on the screenshot:

But new Illustrator CS6 always rounds the value to integer.

The appearance of the brush seems to stay the same but it becomes impossible to change it anyhow.

Is this a bug? How can I use my previous brush settings?

View 7 Replies View Related

AutoCAD Inventor :: Why Does Round() Require Object For Decimal Places

Sep 5, 2012

Why does the Round() function require that the number of decimal places be either a number or an object if you want to use a variable? It seems that a Single should work here, but iLogic won't accept it.

See sample code below which is rounding off dimension values. If I dim the variable "somenumber" as Single or Double, I get this error message from the Round() function: "Overload resolution failed because no accessible 'Round' can be called without a narrowing conversion."

When I dim "somenumber" as an object it works, but this seems unnecessary when all it is storing is a single digit number. Why wouldn't Single or Double work for this variable?

Here's the code snippet:

'Dim Current Sketch & Count Constraints
Dim oSketch As Sketch = ThisApplication.ActiveEditObject
Dim oDimCount As Single = oSketch.DimensionConstraints.Count

[Code]....

View 3 Replies View Related

AutoCAD Inventor :: Round Decimal Dimension Values To Nearest 1/16"?

Jun 14, 2006

Way to round decimal dimension values to the nearest 1/16"? For instance, 43.0599 would display as 43.0625 (On a drawing). Tried playing with tolerances, but thought it would be better addressed as customization.

View 2 Replies View Related

Illustrator Scripting :: User To Select A Font Family From A Drop Down List

Mar 25, 2013

I'm building a script that will open a dialog box allowing the user to select a font family from a drop down list (not a list of all of the fonts), and then compare that value against the fonts that are in use, highlighting everything that doesn't match. I have not yet built the dialog, but I've got  everything else working as I want except the list of font families.
 
The following code loops through the list of fonts (only 20 for testing purposes), compares the family name to the previous on the list (error trapped for the first loop), and pushes the family name (if it doesn't match the previous) into an array which will be used in the dialog box. With the two alerts at the bottom (for troubleshooting), I expect the alerts to show the same family name. For the first three fonts they do, but after that the array value is "undefined." 
 
var iCount = 20;
//var iCount = textFonts.length;
var nameHolder = "";
var nameArray = new Array();
 
[Code]...
 
Questions:

1) Any speculation on why this behavior is happening (it isn't truetype versus opentype)?
2) Is there a better way to get the list of font families without duplicates??
2) Is an array the best way to populate a dropdown list in a JS dialog box??? [this will be my first dialog with a dropdown, the others have user-typed values]
 
EDIT: Additional Info
When it reaches the ninth font in the list, the above script starts writing undefined, but when tested manually, as below, it works fine. Hmmm.
 
alert (textFonts[9].family);
var nameArray = new Array();
nameArray.push(textFonts[9].family);
alert (nameArray[0]);
 
EDIT: More info
tried replacing nameArray.push(familyName); with nameArray.splice(i,0,familyName); bad behavior remains

View 4 Replies View Related

Illustrator :: Placing Symbols By Name With Applescript

Feb 19, 2009

I need to place a series of symbols in a document in Illustrator CS3... some symbols have multiple instances, some have only one... i need to be able to refer to them by name... right now, i can only seem to place them using this syntax...

make new symbol item in document 1 with properties {symbol:symbol 1 of document 1}

i'd like to use something like this...

make new symbol item in document 1 with properties {symbol:{name:"Text Tag"}

i've tried different syntax after the "symbol" property, but i can't seem to find what works, if there's anything that actually works...

View 3 Replies View Related

Illustrator Scripting :: How To Determine The Size Of Selected Text

Sep 6, 2012

I'd like to draw a box around some selected text (a textRange), however I can't figure out how to detemine the size or position of the text.  The overall size of a textFrame is possible to find (not sure about position), but when you've got just a few characters selected I don't see any way to get the size or position. 

View 6 Replies View Related

Illustrator Scripting :: Making Object The Artboard Size?

Jan 24, 2012

trying to make an object the exact size of the artboard.  This is something I do on a daily basis for several different reasons and it would be very useful if this can happen automatically for whatever size the artboard may be.  As I understand it the only way is with a script but I have no experience with making illustrator scripts, im definately no programmer.  I have set up quickkeys in the past to copy from the artboard inputs when you are on the artboard tool but these round to the nearest .01 and this is not accurate enough for what I am working with.  Also if I do this with multiple pages open illustrator is very slow to respond to the artboard tool.
 
Below is a script that I saw on here that I believe may contain what I need but now knowing programming. Where to start on editing.  All I need is the part where an object is placed on the artboard that is the exact same size as the artboard. 
 
#target illustrator function main() {     if (app.documents.length == 0) {          alert('Open a document before running this script');          return; // Stop script here no doc open…     } else {          var docRef = app.activeDocument;          with (docRef) {               if (selection.length == 0)

[Code].....

View 23 Replies View Related

Illustrator Scripting :: Copy And Paste Position And Size Of Two Different Objects?

Sep 20, 2012

how can I copy and paste position and size of two objects?
 
Let's say I have a circle 2 x 2 cm and it's position is y 5cm x 5cm, I have a square of size 3 x 7 cm and it's position is y 0cm x 0cm.
 
How do I copy and paste in a single command/step the circles position and size to square, so I can get square of 2 x 2 cm and it's position 5cm x 5cm?
 
Something like copy + paste in place with a different logics. I hope You understand what I want.
 
I'm doing it now manually, I'm copying size and position of one object to another [ctrl + c > ctrl + v] but it takes quiet a while,

View 2 Replies View Related

Illustrator Scripting :: Rounding Text Size To Nearest Whole Number?

Jun 13, 2013

I've had to rescale some artwork, but now I'm left with type sizes that are 71.68px tall, 34.51px tall, etc.
 
Is there a script that'll snap all the text in a document to it's nearest whole number or 0.1 decimal?

View 7 Replies View Related

Illustrator Scripting :: How To Resize Artboard To Exact Mm Size Via Script

Aug 13, 2013

I'm trying to resize my artboard to an exact mm size via a script so then I can add this to a batch i'm trying to achieve.
 
I've been trying to use the following, but i cant work out how to add the size I want in mm?
  
#target illustrator

var doc = app.activeDocument;
var docVB = doc.visibleBounds;
    var myVisibleBounds = doc.visibleBounds; //Rect, which is an array;
    myVisibleBounds[0] -= 20; //left coordinate (use negative values to add artboard)
    myVisibleBounds[1] += 20; //ltop coordinate
    myVisibleBounds[2] += 20; //right coordinate
    myVisibleBounds[3] -= 20; //bottom coordinate (use negative values to add artboard)
    doc.artboards[0].artboardRect = myVisibleBounds;

View 4 Replies View Related

Illustrator :: Font Size Top Tab Won't Scroll Up Or Down

Jan 6, 2014

My font size top tab wont scroll up or down, it some times works in the side tool bar but not all the time.

View 2 Replies View Related

Illustrator :: Increase Font Size In CC UI?

Jul 11, 2013

With the demise of my beloved Fireworks, I am giving Illustrator CC a try. Right off the bat it is unusable due to the microscopic font sizes in the UI, panels in particular. Is there any way to make the UI more readable?

View 28 Replies View Related

Illustrator :: Key Commands For Increasing / Decreasing Font Size?

Nov 14, 2012

I find myself in the unfortunate position of having to resize a lot of text by one point size. So I wanted to find the key command for decreasing the text size by 1 point. I found several things online that worked... except they decrease it by TWO points. Not one. They are:
 
Command Shift <
 
and
 
Command Shift .
 
Both work... except they decrease the font by 2 point sizes. How can I make it go down only ONE point size?
 
PS I'm using CS4. And I can't select all the text because I need some of it to stay as is... while reducing the size of other text. Oh, and I'm on an iMac.

View 4 Replies View Related

Illustrator :: Any Way To Know Text Font And Size In Single Shot?

May 9, 2013

I have lot of various fonts and various size of font used in a particular illustration. Can i able to know all the fonts and its size used in a single shot. Instead of going and checking one by one.

View 13 Replies View Related

Illustrator :: CS6 - Change Font Size Of Labels In AI User Interface?

Oct 8, 2012

I find the default interface in CS6 difficult to read as the menu/tool labels seem very small to me. I can manipulate via Windows, but then the fonts in the windows of all my other apps are too big.
 
Is there a way to change the size of the fonts in labels in the user interface within Illustrator itself? I thought there used to be a way in preferences some where, but that was a long time ago - maybe even pre-CS?

View 1 Replies View Related

Illustrator :: Change Scale Of Drawing And Have Font Size Staying Same?

Feb 18, 2014

How do I change the scale of a drawing in illustrator and have the font size staying the same size.

View 5 Replies View Related

Photoshop :: Image Size Dialogue Box Keeps Adding Decimal Values To Whole Numbers CC / CS6

Nov 9, 2013

I am creating an image of 150mm x 100mm at 300dpi but photoshop keeps adding decimal points like 150.02 when i change the image from the original size, is it something I am doing wrong or a known bug?  You would expect that when you change an image to 150 x 100mm it would stay at that size and not be added to.

View 2 Replies View Related

Illustrator Scripting :: How To Resize Artboard To A4 Size And Images Placed In Center Of Artboard

May 23, 2013

i have around 500 eps formats images with different artboard size.
 
i need to resize the artboard to A4 size and the images to be placed in the centre of the artboard.

View 4 Replies View Related

Photoshop :: Font Is So Small And Its Font Size Is At 72pt

Feb 8, 2006

my font is so small and its font size is at 72pt how can i make it big again

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved