Different results, running the same Javascript - CC vs CS6

I am having some problems affecting the font size of a text using Javascript. For some reason, I always get characters of 2.88 points as opposed to what I put it to (in this case, it's 12). Anyone know what is the problem that the PS is not recognizing the command to set the font size here and why?

#9740928-Pastie

Line 42 is where I'll put the size.

Line 27, that's where the variable is defined. I tried just punching in an integer with the same results.

Thanks for any help.


So I think that there could be a problem with Adobe CC or maybe some changes in its development with regard to the way he treats the Javascript. I ran several tests today and did some reading. At the end of the line, I decided to try the script on CS6 and I got the correct results. The script works on CS6, but not cc? I made an example of script I did my tests to take a pic to Adobe team. It's the end of this post.


I'm not the master script by any stretch of the imagination, but I find it odd that this script works correctly on Adobe CS6, but does not change the size of font correctly on Adobe CC. I expect that same results. If any of you come up with anything please let me know. Cheers.

BEGINNING OF THE SCRIPT

var defaultRulerUnits = preferences.rulerUnits;

preferences.rulerUnits = Units.PIXELS;

var AD = activeDocument;

Size = 53;

var TextLayer = AD.artLayers.add ();

TextLayer.kind = LayerKind.TEXT;

TextLayer.opacity = 90;

var txtRef = TextLayer.textItem;

txtRef.font = "Impact."

txtRef.contents = size;  The size of 53 is reflected in CS6, but when this script is run on CC, is not. Sometimes 12, sometimes it is 2.88.

txtRef.size = size;

END OF SCRIPT

^ I save it as a. JS


Post edited by: Clayton Krause

The ruin of font size of DOM somewhere in 2014 of the CC is a known problem.

Re: Do you have CC 2014.2 break textItem.size?

The alternative would use code AM.

Tags: Photoshop

Similar Questions

  • Why can I get two different results from the same coefficients?

    I get two different results of the evaluation of the polynomial function.

    For the first, I get the coefficients of a polynomial function to adapt.  I feed the coefficients of the function made the function Eval Poly and get the correct 12.8582 result when I evaluate 49940.

    For the second, I create constant array of values that have been returned by the polynomial Fit function (I typed in).  However, I get an incorrect result of - 120.7913 when I feed the constant table the function Eval Poly when I evauate 49940.

    How this can happen when I use the same values in table?

    A picture of what I explained is attached.

    Hi Altran,

    are you sure about using the 'same '?

    You compare them? Do you have (at least) set them to 17 digits display properties?

    Please attach a VI instead of an image...

  • Different results from the same calculations between SQL and PL/SQL

    This SQL statement:
    select 1074 * (4 / 48) from dual;
    Gives the 89.5 result.
    However this PL/SQL block
    declare
        tmp     NUMBER;
    begin
        SELECT 1074 * (4 / 48) into tmp from dual;
        dbms_output.put_line('Result '||tmp);
    end;
    Gives a different result:
    Result 89.49999999999999999999999999999999999996

    If I change and give my variable tmp, a precision and scale, (38.36) say the result is 89.5.

    Ed. I did about 10g (10.2.0.4.0) and 11g (11.1.0.7.0) with the same result in both.

    Published by: kendenny on July 9, 2010 10:19 for more information

    What is your current value of NUMLARGEUR in SQL * more (I assume that you use as your tool)?

    SQL> set numwidth 50
    SQL> select 1074 * (4 / 48) from dual;
    
                                           1074*(4/48)
    --------------------------------------------------
             89.49999999999999999999999999999999999996
    
  • different results for the same statement 9i / 10g why?

    Hi all

    I have problem in the SQL statement that it worked very well in oracle 9i, once I upgrade to 10g, this statement does not work

    I create a table:
    create table TEST_TAB (colA tank (6));

    insert into TEST_TAB values ('A');

    now when I run the following statement in oracle 9i

    Select count (*)
    of TEST_TAB
    where colA as "A";


    Count (*)
    ---------------
    1

    But in oracle 10g

    It gives
    Count (*)
    -----------
    0

    I know I can fix education by adding % at the end to bring data or triming CLC, but I can't because that statement use frequently in the application source

    My question, how can I solve this problem, what the related setting for this I check all the nls_... setting, it's the same in oracle 9i


    all boards

    Yes, it's Bug 2883715 possible bad results of AS against a column of type CHAR with no wildcard

    [Bug 2883715| https://metalink.oracle.com/metalink/plsql/showdoc?db=NOT&id=2883715.8]

    If you have everything you need to tell the developers what needs to be done.

  • Why do I get different results for the same resolution but different boxes of Windows, Windows 7 and XP

    I use an .exe on two different windows boxes, in Windows 7 and XP.  I put both for resolution 1024 x 768.

    Win 7 (old laptop and Dell desktop computer) I have a large application to watch.  On the WIn XP boxes all fonts to big.  It doesn't make sense for me as all PC's have the same resolution.

    Has anyone go through this before?

    System for XP and Vista/Win7 fonts are different.

    See

    http://forums.NI.com/T5/LabVIEW/elements-have-moved-when-opening-VI-with-F3-patch/m-p/1054817

    http://forums.NI.com/T5/LabVIEW/what-can-affect-the-size-of-a-front-panel-object-between/m-p/1058607...

    http://forums.NI.com/T5/LabVIEW/font-size-on-Windows-7-with-LabVIEW-2009/m-p/1055114/highlight/true#...

    and several other similar topics.

  • SimpleDateFormat giving different results for the same string in the form

    I use http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/i18n/SimpleDateFormat.html for formatting my date and time fields.

    I got a bug report that a device on English (UK) has a problem where the time turns off the screen, and I was able to reproduce this on device and Simulator.

    It's the pattern string that I use: hh:mma

    (hour 2 digits, colon, minute 2-digit and one letter for 'a' or 'p')

    English or r I get the result you want, for example 12: 12 p '

    "On English (UK), I get two letters for one / p marker, for example ' 12:12.

    (as if I had used 'hh:mmaa').

    What is the desired behavior? My client doesn't like it and wants a look and feel unique, with only one letter for 'a' or 'p', and I'm a little hesitatant to use aubstring...

    I usually do so, but our customer asked specifically localized to the date and time formatting.
    I have the model in my resource files, as the requested values are not easy to manage with the dateformat standard.

    Well, I have submitted comments on the entry of doc API, the doc is fake or the OS has a bug.
    I use substring if the string endsWith (am or pm) now...

  • My lightroom is having problems to import images, I tried a different card with the same results readers

    My lightroom/mac is having problems to import images, I tried a different card with the same results readers

    This means that ccouldn can't ccopy Lightroom photos in the destination directory. You must determine which directory is specified in the Lightroom Import dialog box, it is on the right in the Destination. Then, you will need to enter your operating system and change the permissions on this specific issue to the WRITE permission.

  • You can run several APEX headphones for different instances on the same server

    Please confirm that we can run several APEX headphones for different instances on the same server?  It is a configuration of xml configuration or do we need to do more?


    Thank you


    Tony Miller

    SmartDog Services

    Austin, TX

    Hello

    With last listener APEX, you can configure multiple databases

    Oracle Application Express listener configuration

    Is that what you mean?

    Kind regards
    Jari

  • Different results of the property 'configManager.snmpSystem' of HostSystem executing vCenter and when run directly from host

    We are seeing different results for the property of the HostSystem 'configManager. snmpSystem' from vCenter and when you access from host.

    I think that the result should be no different. Is this another known issue or am I missing something here?

    To confirm this behavior, we tried to show the property to the host through the Explorer managed objects (MOB) and also by the VMware Remote CLI scripts. Join the results of the CLI script that was running on our test systems.

    Best regards

    Damodar

    Greetings, I just wanted you guys to know this problem that you are experiencing is a known problem with VMware and our engineers groups are working on it.    Sorry for the inconvenience to you.

  • Using different filters on the same measure in single result table (view)

    I have a table of twelve columns, each column with different filters tailor-made same table actually. Say a filter column (several people existing on 01/01/2003) comes from people dimension (date_of_birth < = January 1, 2003 ""). Two filter in column b (number of people living in Bucharest between 1 January 2004 and 1 January 2006 "") is (between 2004 and 2006 date_of_birth) etc.
    How do I use column a & column b in the same table of results (view)? I need the different filters on the same table.

    Thank you!

    Published by: seiciu on March 27, 2010 08:51

    Hello
    This filter clause works.
    filter (using Date = current_date)
    filter (using Date = date'2010-01-01')
    filter (measures using the year between 2004 and 2006)
    Concerning

  • How to run 2 different applications of the same Application Server

    Hello

    I would like to know how to run two different applications of the same Application Server with different databases?

    We use
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Oracle Application Server 10g 10.1.2.0.2

    Kind regards

    Hassan

    You can have as much as you want, just your applications should have different names or URLs and point to a specific database (using data sources).

    Greetings.

  • Set a style different cases for the same placeholder (data fusion) used two times in the same text

    Hello.

    I have a document with some parties updated with the fusion of data (via placeholders). Is it possible to set a style of different cases for the same placeholder in the same text. See the example:

    Mike runs its < < vehicule_placeholder > > in the city. But its < < VEHICULE_PLACEHOLDER > > is meant to be shared.

    If the value of this placeholder in the file merger is 'bike', the sentence should be:

    Mike runs his bike in the city. But his BIKE is meant to be shared.

    Is this possible? How?

    Thank you.

    You can do it. A character style for this configuration placeholder text, set in all caps.

  • * Creating Cloud * [can I use two different applications of cloud on different computers at the same time for example Photoshop on one and on another InDesign?]

    So I know that you can have creative cloud up to two computer and its not of platform specific, so you can have it on a Mac and the Windows platform at the same time. BUUUT I know that you can not use them simutaniously, but which still apply to the when im I need to work on photoshop on only one computer and indesign on another who would always use them at the same time so he would evict me? or can be used on two different programs at the same time?

    Always there was confusion on this issue.

    Adobe said yes in 2012 and 2014.

    Running different applications - 2 computers, a single license

    Contradictory information on the simultaneous use of CC.

    Don't know the current position of Adobe.

  • Combine data sources with different granularity in the same fact table?

    I have two operating tables 'Incident (157 columns)' and 'unit (70 Colums) '. For all the "incidents" happening there could be one or more records in the table of the 'unit '.

    As part of my design of data mart, I have merged the tables in one "makes the incident (227 columns)" and insert records from two tables with a join condition between them [incident. IN_NUM = Unit.IN_NUM].

    Is this correct, is my question? or am I mix data sources with different granularity in the same fact table. Appreciate your help.

    Best regards
    Bees

    Bees,
    Are the measures of the 'Incident', repeated during an incident given, in more than one record in the table of the unit? If so, then the sum (indicent.measure) will give an incorrect result?

    What is there to merge physically tables set outside OBIEE? With OBIEE you might have a table of 'facts' logic to present the user with report, which from tables separated units and Incidents and would stop the occurrence of incorrect aggregations. A common piece of modeling in the same way would be arrested in OBIEE headers and lines of command, quite common to have a logical fact 'orders' which contained the two header orders and order line, this translates into the Incidents-> relationship of units.

    To do what I mentioned, is relatively simple, you need a "Dim - Incident" at two levels, unit, mapp and Incident unique identifiers as keys to level and then use these levels to define the content of the levels correctly in your 2 tables logic sources logic "done", IE the LTS Incidents at incident level LTS units as level of units.

    Hope this helps, let us know if you get stuck.
    See you soon
    Alastair

  • Cropping multiple pictures on different pages at the same time

    Can I culture several images on different pages at the same time. In my french version of software Photos 1.5, this option is called "the photo to the frame adapter". I'm able to select this image of an option at a time, but could not find a way to make the entire book in one click.

    No there is no functionality like this in Photos

    You can ask Apple to add the - http://www.apple.com/feedback/photos.html

    LN

Maybe you are looking for

  • Load automatically missing Images

    I can't configure the browser in a State where no images are loaded. As the same option in Microsoft Internet Explorer. There is _no_ option for me to (1) go into any site and (2) then set an option to not load the images and then (3) re - load this

  • My iphone more than 6 s off

    My Iphone more 6s off after accidentally clicking on one ad and he said I had a virus, is something I should be concerned?

  • After factory reset, I can not connect my iphone6 with itunes

    After factory reset, I can not connect my iphone6 with itunes

  • Opening writing BMP.vi DLL

    I'm trying to convert IMAQ images BMP images without the need to use the BMP.vi to write, because the process of writing BMP files in a directory then reading/loading them becomes slow with huge data files. I opened write it BMP.vi and found a DLL in

  • Could use only CD upgrade on a computer

    I recently bought a cd to upgrade to windows vista, I have 3 computers in my house, why she only let me use it once? now, the code does not work. It's not fair, I paid a lot of money for this cd! It is anyway I can call and maybe get them to fix cela