What kind of details/units do use command of the crib for Action 'Place '?

I used the Listener script to make this Applescript function to place images. I placed a bunch of different images very precisely on the canvas. "I get the dimensions of the image in pixels and then I need to do some calculations based on the dimensions and use it to feed the correct" "xCoordinate" and "yCoordinate" variables in the.


The thing is, I can not understand what on Earth these numbers refer to the. Pixels? Cannot be, if I change the numbers, the inserted graphic does not jump the same number of pixels that change my value. The title of the document in inches, but he is not jumping the correct distance of thumb. Is that picas or points or something? Is it possible for me set the Info window to show me the same coordinates that will be used to determine location of the code of the Action of eating in the same way the interpreter?


In addition, it seems that if I change the size of the placed image, it is just in some unpredictable place. "If I place a 4"x 4"300 DPI image square with this, use exactly the same " ""xCoordinate "and" 'yCoordinate ' values and place an image from 300 dpi 2 "x 2", they do not come with everything that I can perfectly recognize in common - both images are not perfectly aligned at the top, down, left, right or Center. And different, I place the same image with the same coordinates, I swear to you that sometimes in different places if I went and did other things in between. So what's happening?


Any help?


Thank you


Tom.



on place_image(filePath, xCoordinate, yCoordinate, imageScale)

tell application"Adobe Photoshop CS6.

say the active document

                      do JavaScript "

var idPlc= charIDToTypeID("------" "Plc------');

var desc4 = new ActionDescriptor();

var idnull = charIDToTypeID(\"null\');

desc4.putPath( idnull, new file (\ "" & "\" & path"));

var idFTcs = charIDToTypeID("------" "FTCS------");

var idQCSt = charIDToTypeID("------" "QCSt------");

var idQcsa = charIDToTypeID("------" "Qcsa------");

desc4.putEnumerated( idFTcs, idQCSt, idQcsa );

var idOfst = charIDToTypeID("------" "Ofst------");

var desc5 = new ActionDescriptor();

var idHrzn= charIDToTypeID("------" "Hrzn------");

var idRlt= charIDToTypeID(-"#Rlt------");

desc5.putUnitDouble( idHrzn, idRlt, "& xCoordinate &");

var idVrtc= charIDToTypeID("------" "Vrtc------");

var idRlt= charIDToTypeID(-"#Rlt------");

desc5.putUnitDouble( idVrtc, idRlt, "& yCoordinate &");

var idOfst = charIDToTypeID("------" "Ofst------");

desc4.putObject( idOfst, idOfst, desc5);

var idWdth = charIDToTypeID("------" "Wdth------");

var idPrc = charIDToTypeID(-"#-Prc');

desc4.putUnitDouble( idWdth, idPrc, "& (imageScale) &");

var idHght = charIDToTypeID("------" "Hght------");

var idPrc = charIDToTypeID(-"#-Prc');

desc4.putUnitDouble( idHght, idPrc, "& (imageScale) &");

executeAction ( idPlc, desc4, DialogModes.NO); »

               end tell

       end tell

end place_image

OK, there is still much to do.

But right now, you can add these pure javascript in your originalscript (before the end of the first say)

var aLayer = activeDocument.activeLayer;
var Pos = aLayer.bounds;
Pos[0] = 10 - Pos[0];  // 10 or your own value for " & xCoordinate & "
Pos[1] = 10 - Pos[1];  // 10 or your own value for " & yCoordinate & "
aLayer.translate(-Pos[0],-Pos[1]);

Have fun

Tags: Photoshop

Similar Questions

  • No matter what kind of program that I use or what printer I print on, my PC has produced a preview before print screen every time I click on print. Anyone know how to disable this option?

    No matter what kind of program that I use or what printer I print on, my PC has produced a preview before print screen every time I click on print. Anyone know how to disable this option?

    It doesn't seem to be anything the given that this happens no matter what printer print on the printer. Any program, I use the same thing also happens.

    Hello

    Apart from the valubable solutions provided, I suggest that you post your question on the TechNet Forums as it appears, it comes to your work computer.

    Windows XP IT Pro

    Thank you.

  • What kind of filter/effect is used in this vid?

    what kind of filter/effect is used in this vid by Björk about 0.26 s https://www.YouTube.com/watch?v=M1Wwbw2gCcA

    Find edges and CC Vector Blur with settings excessively overcranked will give such a look. Additional blur before the operation to find the edges may be involved, and of course to get multiple lines of 'height' you will work in 8 bit in support of quantification.

    Mylenium

  • I used up to the allocation for the region 1 & 2 DVD for help. stuck on region 1 now. I need to use the two regions for my DVD. Help, please. Beryl

    I used up to the allocation for the region 1 & 2 DVD for help. Stuck on region 1 now.  I need to use the two regions for my DVD. Help, please. Beryl.

    It isn't a MS solution, there are solutions to third parties not supported by MS

  • Can I use pictures from the reserve for commercial use for my members to do with.  We would not sell the photos but the use for commercial use.

    Can I use pictures from the reserve for commercial use for my members to do with.  We would not sell the photos but the use for commercial use. (the 29.99 price months?)

    Thank you.

    Barbara

    In your case you will very likely get extended licenses for images from Fotolia.com otherwise you would have to buy a new license for each Member who has access to use the weather picture they actually use it or not...

  • We try to use Adelle unless the police for our website - link provided goes to the blank page

    We try to use Adelle without the police for our Web site.  I have provided developers with the following instructions of Typekit:

    ____________________

    Install JavaScript

    Copy the code below and paste it into the pages on dev.certifiedalarms.com/ where fonts and settings of your Certified Development Site kit will be used. Make sure it's in the < head > tag.

    "< script src ="https://use.typekit.net/dze4kfy.js"> < / script >.

    < script > try {Typekit.load ({async: true}) ;} catch (e) {} < /script >}

    In your CSS with font family names

    In addition to using the selectors to tell Typekit where to apply this font, you can use the font directly in your CSS rules following font family values:

    "adelle - without.

    Here is an example:

    H1 {}

    do-family: "adelle - without";

    }

    You can also include a policy of aid for older browsers by listing after the Typekit font family values. Here is an example of this:

    H1 {}

    do-family: "adelle - without", without serif.

    }

    ____________________

    Developers do not have to operate this policy.  Specifically, the web link ttps://use.typekit.net/dze4kfy.js's not going anywhere but a blank page.  We want to use this font and would appreciate any help to make it work on our site.

    Hi Tomm,

    I responded to an email on the subject but thought I'd post here for others.

    This kit has not yet been published. You can publish the kit the Kit Editor and that should solve the problem.

    Let me know if you have any other questions.

    See you soon,.

    Benjamin

  • Satellite 1400-503: what kind of RAM should I use?

    It is pre-installed with 256 MB of RAM (I think) and I would like to enhance it with additional 256 MB in the free location. What kind of RAM I need? the preinstalled is a samsung with the inscriptions on it: Korea 0228 pc133s-333-542-81 L7A M46453254CT

    Hello

    I want to clarify that you can upgrade the memory to 1024 MB.
    As far as I know Toshiba recommend using these memory modules:
    PC133 512 MB (PA3108U - 1 M 51)
    PC133 256 MB (PA3086U - 1 M 25)
    PC133 128 MB (PA3085U - 1 M 12)

    But as you mentioned the laptop supports modules SODIMM 144 pin PC133 .
    In this case, you use modules with these properties.
    But I prefer the modules Kingston or Toshiba. You know that no names module performance is not very good.

  • What kind of code do you use to switch to a new/next screen?

    Greetings,

    I worked with CC animate and a bit of ActionScript 3.0 for about a month as part of my study IT. As part of my final project for this course animate CC, I chose to create a Visual Novel game. Basically, the idea is that you can see a screen, you click an option to 'talk' (like "move to your home" or "the city") and clicking on an option translates in the transition to a new screen (with a House/town as a background image).

    Unfortunately, I don't have to do all assignments in the past involving "screen switching", so I have no idea as to what kind of code I need to make this work. Google for it, without success. So now my question is, what kind of ActionScript 3.0 code/functions/etc. to apply to just "switch to the next screen" host in a selfmade in CC game?

    Thanks in advance,

    Sander

    I assume you are using the calendar to develop each of these individual screens. You probably use the stop(); order to keep the playhead on the frame where the first decision point, the screen of your option. You will need for each of the options create a badge and join some Actionscript to the keyframe where the point of this decision.

    Here's a good tutorial for this kind of thing: creating a site Flash (AS3 Version)

  • equivalent command in the OPS for what what post record forms

    Hello

    What is the equivalent command in the OPS when when validate check in forms

    --
    Kumar

    Use a method named validateEntity() in the object of the entity.

    Reference http://oracle.anilpassi.com/oa-framework-interview-questions-2.html

    -Anand

  • How do I get this off my departure to the top of the page, what kind of Web do you want? Join the Firefox users around the world, shape its future.

    I googled and upon my departure to the top of page, under Google search space, that question is beneath him.
    What kind of Web you want? Join the Firefox users around the world, shape its future. I don't like it and want to remove it. I did it ask me, but that it contains to appear?
    Thank you

    Hi Demberg, regarding your problem of message on the home page of firefox, I think that not fair to say that you can't remove it. Indeed, it is a message to get involved.

    I hope I've been helpful.

    romsdu81

  • What is the size of the image used to render the list (for list image rendering)?

    Hello!

    Can u please tell me, what is the size of the image used to represent the listItem. I used the size 40 x 40 for listitems, but the listitem be merged with another. Image will not be rendered with the size (actual size).

    PLS, suggest me-

    ListIField generally uses a height up to the police on the storm no devices. The storm, it has a fixed size greater than the height of the font.

    If you want to draw a picture of 40 x 40, you need minimum height of 40px. Call setRowHeight (40) in the constructor of the listfield.

  • What views of $ v can I use to monitor the parallel process?

    Hi all

    The version of DB is 11.1.

    I ran a sql in parallel. And I got the SessionID for the session.

    But when I referred to v$ px_session, v$ px_process or sql_monitor $ v even with this session id, I have nothing from these points of view.

    The exectuion plan showed that it used parallel exectuion.

    Could someone tell me what is the problem with my approach? Or it means that my sql has not used the parallel at all?

    Best regards
    Leon

    PARALLEL_MAX_SERVERS to 0 for the database instance. Confirm that there are no PX processes running on the instance of database (these would be process "ora_p0xx_SID", where xx is 00 to 99 (or 128)) on the server.

    Then set PARALLEL_MAX_SERVERS to 8 or 16 or more.

    Run your query/dml.

    Now, see if the ora_p0xx_SID process has created.

    Hemant K Collette

  • If I use Thunderbird, is the Mall located some place other than my desktop on a server? Or is it automatically downloaded on my PC? ?

    I am limited on my data monthly allowance and do not want to use up my data on mail I don't want to see.

    Thanks in advance, baud rate

    Thunderbird is an email client installed on your computer. The only affected servers are those that you already use. I say this because some users seem to expect Thunderbird to offer its own server.

    The only way to see e-mail is downloading it, then ultimately, I do not know how you would address messages, you think you want to see. How can you know what came in that you don't want to see?

    In your case, you can configure Thunderbird to download headers only, reducing the amount of traffic. You can then delete what you don't need to see in its entirety and choose to download the full text only valuable messages. But I see this (Fetch headers 'only') option in the settings for accounts POP-connected, so you should take care to replace the default Thunderbird IMAP selection when it is offered. (Note: IMAP really wants and works best with a permanent connection, so is inherently unsuited to a situation where you try to minimize the consumption of bandwidth.)

    Another approach is to check whether the filters provided by your email provider and running on the server, can be used to throw, or at least filing out of sight, "spam", so they don't even get offered to your e-mail client. But anyone who has ever tried to filter the spam won't know how it is important to identify spam. If you have a small 'white list' favored shippers and all the rest can treat as unwanted, then filters should be feasible. But you have to be able to control the rejected documents regularly because we all at some point receive useful question from an unknown address, which might not be in your whitelist. The issue here is perhaps the ability to filter on the sender field, i.e. the part after the "@" in an email address.

  • This product key cannot be used to extend the trial for Microsoft Visual Basic

    I need a product key to extend my evaluation period for visual basic. I went through the motions and picked up a new microsoft product key but when I go in I'm hit with a message box "this key allows to extend the use of this product."

    I don't know even where to start again looking for help with this. Is there a number to call? This happened to other people? And especially how to fix this?

    Other information: the last time he asked me to renew my product key all left with a problem. I can only re new product keys so many times before I have to buy the product?

    I can only re new product keys so many times before I have to buy the product?


    It is often the case for the evaluation version. at the end of the trial you will need to buy or stop using it.
  • Using synonyms in the search for name

    Hello

    I try to use synonyms in an oracle namesearch. Set up a seqarch name as in the second example described in the developer's guide to the oracle text to http://download.oracle.com/docs/cd/E18283_01/text.112/e16594/search.htm application

    Now the name, for I am looking can hold one '&', for example 'B & V '.

    I would like to find this text when I enter "B & V", B & V' or 'B and V.

    I found a thread on how to set up a thesaurus with synonyms for '&' and 'and' to 'and' and ampersand or special characters

    Now I'm wondering how to combine this.

    Thanks for the help in advance,
    Dirk

    Your change was correct and it works. For reserved words in the braces enclosing aims to tell Oracle Text as text rather than apply the special meaning they have as reserved words. Since "und" is not a reserved word, it didn't need to be escaped by placing braces. When you set "&", then "und" synonymously as you did the search for 'B und V' correctly found "B and V, as in the modified below demo. In this particular case, the search might work without applying the format_string, but you need to keep it in the query so that it is applied to these values in need, for example, if you searched for "B & V' or 'B & V".

    SCOTT@orcl_11gR2> create table emp (
      2        first_name    varchar2(30),
      3        middle_name   varchar2(30),
      4        last_name     varchar2(30),
      5        email            varchar2(30),
      6        phone            varchar2(30));
    
    Table created.
    
    SCOTT@orcl_11gR2> -- added row of data:
    SCOTT@orcl_11gR2> set define off
    SCOTT@orcl_11gR2> insert into emp values
      2  ('Jane', 'Doe', 'B & V', '[email protected]', '321-654-0987');
    
    1 row created.
    
    SCOTT@orcl_11gR2>
    SCOTT@orcl_11gR2> create or replace procedure empuds_proc
      2       (rid in rowid, tlob in out nocopy clob) is
      3         tag varchar2(30);
      4         phone varchar2(30);
      5  begin
      6    for c1 in (select FIRST_NAME, MIDDLE_NAME, LAST_NAME, EMAIL, PHONE
      7              from emp
      8              where rowid = rid)
      9    loop
     10         tag :='';
     11         dbms_lob.writeappend(tlob, length(tag), tag);
     12         if (c1.EMAIL is not null) then
     13             dbms_lob.writeappend(tlob, length(c1.EMAIL), c1.EMAIL);
     14         end if;
     15         tag :='';
     16         dbms_lob.writeappend(tlob, length(tag), tag);
     17         tag :='';
     18         dbms_lob.writeappend(tlob, length(tag), tag);
     19         if (c1.PHONE is not null) then
     20           phone := nvl(REGEXP_SUBSTR(c1.PHONE, '\d\d\d\d($|\s)'), ' ');
     21           dbms_lob.writeappend(tlob, length(phone), phone);
     22         end if;
     23         tag :='';
     24         dbms_lob.writeappend(tlob, length(tag), tag);
     25         tag :='';
     26         dbms_lob.writeappend(tlob, length(tag), tag);
     27         if (c1.FIRST_NAME is not null) then
     28           dbms_lob.writeappend(tlob, length(c1.FIRST_NAME), c1.FIRST_NAME);
     29           dbms_lob.writeappend(tlob, length(' '), ' ');
     30         end if;
     31         if (c1.MIDDLE_NAME is not null) then
     32           dbms_lob.writeappend(tlob, length(c1.MIDDLE_NAME), c1.MIDDLE_NAME);
     33           dbms_lob.writeappend(tlob, length(' '), ' ');
     34         end if;
     35         if (c1.LAST_NAME is not null) then
     36           dbms_lob.writeappend(tlob, length(c1.LAST_NAME), c1.LAST_NAME);
     37         end if;
     38         tag :='';
     39         dbms_lob.writeappend(tlob, length(tag), tag);
     40       end loop;
     41    end;
     42  /
    
    Procedure created.
    
    SCOTT@orcl_11gR2> show errors
    No errors.
    SCOTT@orcl_11gR2> begin
      2    ctx_ddl.create_preference('empuds', 'user_datastore');
      3    ctx_ddl.set_attribute('empuds', 'procedure', 'empuds_proc');
      4    ctx_ddl.set_attribute('empuds', 'output_type', 'CLOB');
      5  end;
      6  /
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> begin
      2    ctx_ddl.create_section_group('namegroup', 'BASIC_SECTION_GROUP');
      3    ctx_ddl.add_ndata_section('namegroup', 'fullname', 'fullname');
      4    ctx_ddl.add_ndata_section('namegroup', 'phone', 'phone');
      5    ctx_ddl.add_ndata_section('namegroup', 'email', 'email');
      6  end;
      7  /
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> begin
      2    ctx_thes.create_thesaurus ('nicknames');
      3    ctx_thes.create_relation ('nicknames', 'John', 'syn', 'Jon');
      4  end;
      5  /
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2>
    SCOTT@orcl_11gR2> -- added synonyms to thesaurus:
    SCOTT@orcl_11gR2> begin
      2    ctx_thes.create_relation ('nicknames', '&', 'syn', 'and');
      3    ctx_thes.create_relation ('nicknames', '&', 'syn', 'und');
      4  end;
      5  /
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2>
    SCOTT@orcl_11gR2> begin
      2       ctx_ddl.create_preference('NDATA_WL', 'BASIC_WORDLIST');
      3       ctx_ddl.set_attribute('NDATA_WL', 'NDATA_ALTERNATE_SPELLING', 'FALSE');
      4       ctx_ddl.set_attribute('NDATA_WL', 'NDATA_BASE_LETTER', 'TRUE');
      5       ctx_ddl.set_attribute('NDATA_WL', 'NDATA_THESAURUS', 'NICKNAMES');
      6       ctx_ddl.set_attribute('NDATA_WL', 'NDATA_JOIN_PARTICLES',
      7        'de:di:la:da:el:del:qi:abd:los:la:dos:do:an:li:yi:yu:van:jon:un:sai:ben:al');
      8  end;
      9  /
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> create index name_idx on emp (first_name)
      2  indextype is ctxsys.context
      3  parameters
      4    ('datastore  empuds
      5        section    group namegroup
      6        wordlist   ndata_wl');
    
    Index created.
    
    SCOTT@orcl_11gR2>
    SCOTT@orcl_11gR2> -- added function to format search string:
    SCOTT@orcl_11gR2> create or replace function format_string
      2    (p_string in varchar2)
      3    return varchar2
      4  as
      5    v_string     varchar2 (32767) := ' ' || p_string || ' ';
      6  begin
      7    -- add extra spaces around ampersand:
      8    v_string := replace (v_string, '&', ' & ');
      9    -- remove duplciate spaces:
     10    while instr (v_string, '  ') > 0
     11    loop
     12        v_string := replace (v_string, '  ', ' ');
     13    end loop;
     14    -- add { and } around each reserved word:
     15    for r in
     16        (select keyword,
     17             ' ' || keyword || ' ' keyword2
     18         from      v$reserved_words)
     19    loop
     20        v_string := replace (upper (v_string), r.keyword2, ' {' || r.keyword || '} ');
     21    end loop;
     22    return ltrim (rtrim (v_string));
     23  end format_string;
     24  /
    
    Function created.
    
    SCOTT@orcl_11gR2> show errors
    No errors.
    SCOTT@orcl_11gR2> -- example of usage of function:
    SCOTT@orcl_11gR2> select format_string ('B und V') from dual;
    
    FORMAT_STRING('BUNDV')
    --------------------------------------------------------------------------------
    B UND V
    
    1 row selected.
    
    SCOTT@orcl_11gR2>
    SCOTT@orcl_11gR2> -- query modified to apply foramt_string function to :name variable:
    SCOTT@orcl_11gR2> var name varchar2(80);
    SCOTT@orcl_11gR2> exec :name := 'B und V'
    
    PL/SQL procedure successfully completed.
    
    SCOTT@orcl_11gR2> column first_name  format a10
    SCOTT@orcl_11gR2> column middle_name format a11
    SCOTT@orcl_11gR2> column last_name   format a9
    SCOTT@orcl_11gR2> column phone          format a12
    SCOTT@orcl_11gR2> column email          format a22
    SCOTT@orcl_11gR2> select first_name, middle_name, last_name, phone, email, scr
      2  from   (select /*+ FIRST_ROWS */
      3                first_name, middle_name, last_name, phone, email, score(1) scr
      4            from   emp
      5            where  contains
      6                  (first_name,
      7                   'ndata (phone,'       || format_string (:name) || ') OR
      8                 ndata (email,'       || format_string (:name) || ') OR
      9                 ndata (fullname,' || format_string (:name) || ')',
     10                   1) > 0
     11            order  by score (1) desc)
     12  where  rownum <= 10;
    
    FIRST_NAME MIDDLE_NAME LAST_NAME PHONE        EMAIL                         SCR
    ---------- ----------- --------- ------------ ---------------------- ----------
    Jane       Doe         B & V     321-654-0987 [email protected]           97
    
    1 row selected.
    
    SCOTT@orcl_11gR2>
    

Maybe you are looking for

  • XboX 360 and Qosmio E10 - question on the Pal settings

    HelloI have problems of xbox 360 game games that require settings to Pal 60 on my Qosimo E10 with Geoforce FX go 5200. I use my nvidia screen set up that tells me that the screen is set to Pal 60, but my xbox says it is set to Pal 50 and will not pla

  • HP Officejet e4630: new printer prints images in Microsoft Publisher wrong.

    Hello.  I had to get a new printer and choose the HP Officejet e4630.  It's a simple printer, as I work as well, now. I create my documents to distribute lessons in Microsoft Publisher (2003) and includes images in tutorials.  I usually do the parts

  • SMS client

    Hello! I'm setting up a bigbrother server and need to send pages by sms I wanted to download the source code for SMS_Client, but www.smsclient.org seems to be down. Anyone have this practice or may not post somewhere I can download it? Thank you Mike

  • File history player is broken, how historic cleaning

    I used to have an external HARD drive to save a copy of my files, my hard drive broke down and I worked in jeopardy for weeks without backup. Is it possible that my entire history file has been saved on my C:\ drive since he was not able to find the

  • Adobe Photoshop CS5

    My setup: my name is Floyd CS5 Extended, W8, 64-bit, 8 GB of memory, Dell XPS 8500 computer with processor Intel 3770.  24 inch Dell 2410 monitor. I bought this desktop & monitor specifically to running Adobe CS5 Extended and other photography relate