Place a Photoshop document into another...

Hello All.
I'm working with Applescript with Photoshop CS3. I have the need to place a .psd file into a new document. So far I can make the new document, but haven't been able to find how to write the place code in AppleScript. Is this possible?
Thanks.
-Andrew

Carl, I think you are duplicating a layer from source to target. Where as X's code will "Place" a file as smart object? I don't have CS3 so I may well be wrong.
set The_File to POSIX path of (choose file without invisibles)
tell application "Adobe Photoshop CS2"
activate
set Doc_Ref to the current document
tell Doc_Ref
my Place_File(Doc_Ref, The_File)
end tell
end tell
on Place_File(Doc_Ref, The_File)
tell application "Adobe Photoshop CS2"
tell Doc_Ref
do javascript "placeFile(); function placeFile() {function cTID(s) { return app.charIDToTypeID(s); }; var desc = new ActionDescriptor(); desc.putPath( cTID('null'), new File( '" & The_File & "' )); desc.putEnumerated( cTID('FTcs'), cTID('QCSt'), cTID('Qcsa') ); var ldesc = new ActionDescriptor(); ldesc.putUnitDouble( cTID('Hrzn'), cTID('#Pxl'), 0.000000 ); ldesc.putUnitDouble( cTID('Vrtc'), cTID('#Pxl'), 0.000000 ); desc.putObject( cTID('Ofst'), cTID('Ofst'), ldesc ); executeAction( cTID('Plc '), desc, DialogModes.NO );}" show debugger on runtime error
end tell
end tell
end Place_File

Similar Messages

  • I dragged a cut out image from one photoshop document into another and now it is blurry. What to do?

    I dragged a cut out image from one photoshop document into another and now it is blurry. What can I do to prevent this?

    What is the resolution of the image that you "dragged"? The resolution is the number in pixels per inch (ppi). If you dragged a significantly lower resolution file into a higher resolution file, it could result in a blurry image.
    see below:
    For further reading of Key Concepts:
    http://www.adobe.com/designcenter-archive/keyconcepts/articles/concept_resolution.html
    You can determine the image size by choosing Image > Image Size
    below you can see the pixel dimensions of my example image.
    Resolution Basics:
    Adobe TV- http://tv.adobe.com/watch/creative-sweet-tv/photoshop-resolution-basics/
    http://tv.adobe.com/watch/visual-design/getting-started-09-resizing-an-image/
    Adobe Help:
    http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7945a.h tml
    -janelle

  • How can I [cmd]+A including text boxes? Or how to import one Pages document into another Pages document?

    Hi there,
    I am working on my thesis with several Pages documents (for the first time). And I really have searched all over the Internet to find an answer to exactly my question but I cannot find it.
    First my question was: How can I import one Pages document into another one? I found the answer on that (I think) and there is nothing else than just make a new section and copy/paste it in.
    But then another issue pops up: I cannot [cmd]+A my whole document including the texboxes to paste it in the other Pages document. Then the document will be paste without the textboxes (and I have quite a lot of them in that document) and the text will not be at the right place.
    So please explain to me: How I can combine two Pages documents and keep them exactly the way they are? Is that even possible?
    I thank you so much in advance!

    Hi Fruhulda,
    I have already tried to mark the textboxes in line but that did not work, and besides then the text and the boxes won't be at the rigt places either. Thank you for your reply .

  • JTextPane: Insert one (part of) a Document into another

    Hi,
    I am writing a small programm which user a JTextPane and a
    StyledDocument with
    an RTFEditorKit.
    Now I have the problem that I want to get one Document, transport it
    over
    a network and insert it into another Document.
    The only method in Document to insert sth needs a string but I have a
    Document.
    So my question is: How can I insert one Document into another or at
    least append
    one Document to another?
    Thanks
    Frank

    Hi, it is much more simpler than i thaught.
    use the getLength method of the Document-Interface.
    e.g.:
                    InputStream in1; // Streams of your Files
         InputStream in2; // Streams of your Files
         RTFEditorKit rtf = new RTFEditorKit();
         Document doc = rtf.createDefaultDocument();
         try{
             rtf.read(in1, doc,0);
             int x = doc.getLength();
             rtf.read(in2,doc,x);
         }catch(BadLocationException ble){
         }catch(IOException ioe){
         }use this value in the read-method as pos and your second doc is concated to the first.
    Or any other pos you like.
    Hope this is what you are lokking for.
    Greetings Michael
    read
    public void read(InputStream in,
                     Document doc,
                     int pos)
              throws IOException,
                     BadLocationException
        Insert content from the given stream which is expected to be in a format appropriate for this
        kind of content handler.
        Overrides:
           read in class DefaultEditorKit
        Parameters:
           in - The stream to read from
           doc - The destination for the insertion.
           pos - The location in the document to place the content.
        Throws:
           IOException - on any I/O error
           BadLocationException - if pos represents an invalid location within the document.

  • How can I import an XML DOM document into another?

    Dear all,
    I'm using the following bit of code:
         public static Node replaceNode(Document replacedDocument,
                        Document replacingDocument,
                        Node replacedNode)
         //Create a documentFragment of the replacingDocument
         DocumentFragment docFrag = replacingDocument.createDocumentFragment();
         Element rootElement = replacingDocument.getDocumentElement();
         docFrag.appendChild(rootElement);     
         //Import docFrag under the ownership of replacedDocument
         Node replacingNode =
         ((replacedDocument).importNode(docFrag, true));
              //In order to replace the node need to retrieve replacedNode's parent
         Node replaceNodeParent = replacedNode.getParentNode();
         replaceNodeParent.replaceChild(replacingNode, replacedNode);
         return replacedDocument;
    to import a DOM document into another DOM document, so that it converts something like this:
    <?xml= .... etc>
    <Data></Data
    to:
    <?xml= .... etc>
    <Data>
    <Yellow>Butter</Yellow>
    <White>Marzipan</White>
    </Data>
    Instead, what it is doing is:
    <?xml= .... etc>
    <Yellow>Butter</Yellow>
    <White>Marzipan</White>
    I know that it is stripping out the <Data> elements because of the call to the replaceChild
    function, after getting the element's parent, but if I change
    Node replaceNodeParent = replacedNode.getParentNode();
    to
    Node replaceNodeParent = replacedNode;
    I get an error about node node being accessible.
    Please help!
    Paul

    http://forum.java.sun.com/thread.jsp?forum=34&thread=208596

  • Insert One Word Document into another using OLE ABAP

    Hi,
    I want to insert one word document into another Word Document called by OLE ABAP.
    ie.first word document having 6 pages have been displayed and I want first page of
    second document as a 7th page.I want to dispaly the entire data in  one document.
    Hope to get the reply soon.
    Thanks & Regards,
    Divya.

    T.code :- DWDM
    u can check OLE and OFFICE INTEGRATION tree  have so many demo report
    Report :- RSOLETT1
    Edited by: Krupaji on Feb 18, 2010 2:00 PM

  • How to insert one document into another in microsoft word?

    I would like to set up a word document such that the document has embedded in it another document shrunk down a bit to make room for additional comments and information which I will add on the side. I've been looking to see if word 2007 has this feature
    but have had difficulty finding it. Is it possible to take an entire document and insert it as a resizeable object into another?
    Some of my research suggests that I might be able to accomplish something of this nature with publisher, and while several people in my office do not have publisher and we'd prefer if it were doable in word, instructions for publisher would be appreciated
    as well if Word 2007 cannot do this.

    Hi,
    Thank you for using 
    Word IT Pro Discussions
    forum. 
    From your description, I understand that 
    you would like to know to how to add a Word document into another Word document in Word 2007, and you can make some comments besides the embedded Word documents.
    If there is any misunderstanding, please feel free to let me know.
     Thank you for your inquiring.
    To insert a Word document to another Word document in Word 2007, follow the steps below:
    =========
    1.      
    In the Word document, click the
    Insert tab.
    2.      
    Click the
    Object in the Text group.
    3.      
    Click
    object. Then click the Create from file tab.
    4.      
    Click the
    Browse button to select the Word document. Also, check the checkboxes before:
    Link to file and Display as icon.
    5.      
    Click
    OK to save the settings.
    Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything I can do for
    you, please feel free to let me know.
    Best Regards,
    Sally Tang

  • Is it possible to insert a document into another?

    I would like to insert a document into another document without cutting and pasting. That is, to "insert" it into the present document. I have been unable to find that option. Is it possible?

    It would seem a logical function, though Pages is in essence a $30.00 program so it's not going to have all the features one might wish. You can submit feedback to Apple on the issue here, though:
    http://www.apple.com/feedback/pages.html
    Regards.

  • Errors have occured while transferring the document into another system.

    Hi GURUs,
    Please help me to come out from this problem........
    An error has occured in the system YDQCLNT100 while copying the document
    Message no. CRM_ORDER_MISC 020
    Diagnosis
    Errors have occured while transferring the document into another system. Refer to the attached log for error messages.
    Transmission log
    Product  cannot be recoded for R/3 System YDQCLNT100 (Notification E CRM_ORDER_MISC 015)
    Product  cannot be recoded for R/3 System YDQCLNT100 (Notification E CRM_ORDER_MISC 015)
    Please suggest  something ASAP....
    i'll be highly Grateful to you.....
    Regards,
    Ankur

    Hi Gangadhar,
    Can you plz explain me elaborately, where should i check for partner function of the equipment and how this partner function is related to this issue.
    I think partner function will be there only for BP. Can you plz clarify me.
    Thanks in advance
    Ankur

  • How to insert a pages document into another pages document?

    How can I insert a pages document into another one?
    How can I insert 1 page of a document into another document?

    Open your files & show thumbnails. Sections have a yellow border around all of the pages in that section. Now click on the page in the thumbnail pane & copy. If the file is more than one page & you only want one, you'll need to insert a section break to separate the pages. Then go to your other file, click in the thumbnail pane & paste. The whole copied page will be pasted in. Repeat with another section. Styles will copy over with the sections but headers & footers will not.

  • Importing one Pdf document into another.

    I am trying to import one Pdf-document into another using a Reference XObject. I am looking at thePDF- specification, and I thought I was doing things the right way, but its not working. The PDF-specification doesen't have an example of how to do this, only an explanation.
    Below is the PDF-file I am testing with (if anyone can be bothered looking at it   ). The file embeds another pdf-file, and is supposed to show a part of the embedded file at a certain position.
    Again, if anyone can be bothered looking at my PDF and see if they can see what I am doing wrong here I would appreciate it.
    (There is nothing wrong with the embedded file itself...)
    PDF-file embedding another PDF-file and using a Reference XObject to display the embedded file:
    %PDF-1.5
    1 0 obj
    <<
    /Type /XObject
    /Subtype /Form
    /BBox [0 0 100 100]
    /Ref <<
    /F (4fa27162e72547a00771606.pdf)
    /Page 1
    >>
    >>
    endobj
    2 0 obj
    <<
    /Type /Filespec
    /F (4fa27162e72547a00771606.pdf)
    /EF <</F 3 0 R>>
    >>
    endobj
    3 0 obj
    <<
    /Type /EmbeddedFile
    /Length 854
    >>
    stream
    %PDF-1.5
    1 0 obj
    <<
    /Length 334
    >>
    stream
    q
    1 0 0 1 128.10769621539 70.591821183642 cm
    1 0 0 1 0 0 cm
    1 0 0 1 0 0 cm
    1 0 0 1 0 0 cm
    1 0 0 1 -128.10769621539 -70.591821183642 cm
    /DeviceCMYK CS
    1 1 1 1 SCN
    /DeviceCMYK cs
    0 0.89 0.89 0.05 scn
    0.2743205486411 w
    2.743205486411 M
    0 J
    0 j
    -1.9202438404877 -2.6517653035306 260.05588011176 146.48717297435 re
    h
    B
    Q
    endstream
    endobj
    2 0 obj
    <<
    /Type /Page
    /Parent 3 0 R
    /Resources <<
    /Font <<>>
    /XObject <<>>
    >>
    /MediaBox [0 0 255.11811023622 141.73228346457]
    /Contents [1 0 R]
    >>
    endobj
    3 0 obj
    <<
    /Type /Pages
    /Kids [2 0 R]
    /Count 1
    >>
    4 0 obj
    <<
    /Type /Catalog
    /Pages 3 0 R
    >>
    endobj
    xref
    0 5
    0000000000 65535 f
    0000000010 00000 n
    0000000401 00000 n
    0000000568 00000 n
    0000000624 00000 n
    trailer
    <<
    /Size 5
    /Root 4 0 R
    >>
    startxref
    679
    %%EOF
    endstream
    endobj
    4 0 obj
    <<
    /Length 322
    >>
    stream
    q
    1 0 0 1 93.268986537973 71.826263652527 cm
    1 0 0 1 0 0 cm
    1 0 0 1 0 0 cm
    1 0 0 1 0 0 cm
    1 0 0 1 -93.268986537973 -71.826263652527 cm
    55.961391922784 45.628651257302 74.615189230378 52.39522479045 re
    W n
    1 0 0 1 55.961391922784 42.062484124968 cm
    74.615189230378 0 0 55.961391922784 0 0 cm
    /XobjectPDF1 Do
    Q
    endstream
    endobj
    5 0 obj
    <<
    /Type /Page
    /Parent 6 0 R
    /Resources <<
    /Font <<>>
    /XObject << /XobjectPDF1 1 0 R >>
    >>
    /MediaBox [0 0 255.11811023622 141.73228346457]
    /Contents [4 0 R]
    >>
    endobj
    6 0 obj
    <<
    /Type /Pages
    /Kids [5 0 R]
    /Count 1
    >>
    7 0 obj
    <<
    /Type /Catalog
    /Pages 6 0 R
    >>
    endobj
    xref
    0 8
    0000000000 65535 f
    0000000010 00000 n
    0000000144 00000 n
    0000000238 00000 n
    0000001172 00000 n
    0000001551 00000 n
    0000001738 00000 n
    0000001794 00000 n
    trailer
    <<
    /Size 8
    /Root 7 0 R
    >>
    startxref
    1849
    %%EOF

    PDF is a binary format. The most important piece in a PDF file is the cross
    reference table. It contains byte offsets to the different objects in a
    file. If you insert just one space (which in a true ASCII file will not
    change much), you are making all byte offsets after the insertion point
    invalid. They now all point to something different than the start of an
    object.
    Because there is no standard about how line endings are encoded in text
    files, every time may add (or subtract) a byte - depending on what computer
    system and what editor you use to convert your PDF to fake-ASCII, and then
    again what I use to try to convert it back to PDF. If you are using a
    Windows system and I'm using a Mac, the cross reference table gets
    corrupted. And that's even before the web server does it's magic and
    potentially adds data.
    If you want somebody to look at your file.
    Have you looked at the post I linked to? The settings in Acrobat are
    important. You need to enable Reference XObjects, AND you have to declare
    the directory where your target file is stored as trusted.
    From what I can see in your PDF code, you are doing a whole bunch of cm
    operations. You may want to consolidate all those into one operation. I
    have not done a detailed analysis, but you could potentially shift your
    data off the page. Keep it simple and see if that makes a difference.
    Karl Heinz Kremer
    PDF Acrobatics Without a Net
    [email protected]
    http://www.khkonsulting.com

  • Link one solution manager word document into another solution manager HTML

    Hi,
    I have requirement in solution manager that there are two documents uploaded into solution manager.
    1. One word document in one of the project folder
    2. HTML page in another folder of same project
    I have to set up a hyper link of word document in the HTML web page.
    If anyone has gone through this type of requirement, please let me know the details of how did you set up the link between word and HTML document.
    Appreciate the early response.
    Thanks,
    Siva

    Go to the properties of the file you want to link your word document to. (attributes icon)
    There you will find a button "Generate Document URL (F9)". Clicking this button will buffer the URL into clipboard.
    Then you open your Word document in edit mode and paste the URL there.
    source: Inserting a document into another in Solution Manager

  • Insert a page from the current document into another

    I am trying to insert the current page of the current document into a new document I am building in variable doc. So I can do something like
    doc.insertPages({nPage: i, ... ,nStart: 0});
    How do I make the source be the current document? Should I use cPath: with the path to the current document? Or is there some other way to refer to the current document?

    Try this.path

  • How can I copy/paste a page from one pages document into another pages document?

    I have read the directions in the manual, but when I go to the document where I want to put the page the paste function is greyed out.  I assume this has something to do with styles, but can't find what to do. 

    You got it.
    Paste is greyed when we try to paste a page from a WP document into the thumbnails area of a Layout one.
    It's active if we try to paste in the pages area.
    In the document's tool bar, there is an icon with a + symbol at top left.
    In WP documents it's named Sections, In Layout ones its named Pages.
    Yvan KOENIG (VALLAURIS, France) mercredi 26 octobre 2011 17:50:55
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Can I append an XML Document into another?

    I have a large xml document which I open into coldfusion (mx
    7), and then a smaller group of files that are opened into thier
    own xml objects. After some customization of xml text values, I
    want to append the smaller xml documents into the larger document
    at specific positions within the document tree.
    I have the code that I thought would do this, using an
    arrayappend function, but what happens is that only the root
    element of the smaller (inserted) xml document is placed into the
    main document.
    Is this possible, or do I need to modify the code so that the
    entire tree of xml data that I am appending is created on the
    fly?

    Personally I do this with XSLT.
    <cfxml variable="doc1">
    <root>
    <member id="10">
    <name>Ian</name>
    <sex>male</sex>
    </member>
    </root>
    </cfxml>
    <cfxml variable="doc2">
    <root>
    <member id="1">
    <name>Joe</name>
    <sex>male</sex>
    </member>
    <member id="2">
    <name>John</name>
    <sex>male</sex>
    </member>
    <member id="3">
    <name>Sue</name>
    <sex>female</sex>
    </member>
    </root>
    </cfxml>
    <cffile action="write" file="#expandPath("/")#\doc2.xml"
    output="#ToString(doc2)#" nameconflict="overwrite">
    <!--- METHOD ONE using a depreciated and undocumented
    method --->
    <cfset newNode = doc1.root.member.cloneNode(true)>
    <cfset doc2.changeNodeOwner(newNode)>
    <cfset doc2.root.appendChild(newNode)>
    <cfdump var="#doc2#" label="Merged by hidden functions"
    expand="no">
    <!--- METHOD TWO using XSLT --->
    <!--- create an xsl docutment--->
    <cfoutput>
    <cfsavecontent variable="transformer">
    <xsl:stylesheet xmlns:xsl="
    http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:output method="xml"/>
    <!--load the merge file -->
    <xsl:variable name="emps"
    select="document('#expandPath("/")#\doc2.xml')"/>
    <!--- this line references and XML file to be combined
    with the main file,
    I wonder if there is a way to use an XML document in memory
    here? --->
    <!-- combine the files -->
    <xsl:template match="/">
    <root>
    <!-- select all the child nodes of the root tag in the
    main file -->
    <xsl:for-each select="root/child::*">
    <!-- copy the member tag -->
    <xsl:copy-of select="."/>
    </xsl:for-each>
    <!-- and all the child nodes of the root tag in the merge
    file -->
    <xsl:for-each select="$emps/root/child::*">
    <!-- copy the member tag -->
    <xsl:copy-of select="."/>
    </xsl:for-each>
    </root>
    </xsl:template>
    </xsl:stylesheet>
    </cfsavecontent>
    </cfoutput>
    <!--- create a combined xml document --->
    <cfset doc2 = XMLparse(XMLtransform(doc1,transformer))>
    <cfdump var="#doc2#" label="Merged by XSLT"
    expand="no">

Maybe you are looking for

  • Why won't my FireWire Solo work with the Mavericks OS?

    I have recently upgraded to the Mavericks OS (10.9.2) and now my FireWire Solo is not even recognized when I plug it in. Are the M-Audio products no longer compatible with the Mavericks OS? Somebody please help me out! Thanks!

  • TS3518 Dolby digital from Apple TV

    This used to work fine before the last update.  What did apple do for this not to work. I have HDMI out of my Apple TV into my surround sound receiver which decodes dolby digital.  I have to turn off dolby digital to get audio.  the whole point of us

  • Own partition for osx - difference in performance?

    hi folks. just finished to import my files from a powermac G5 (10.5.11) to my new macbookpro i5 2,3 GHz 4 MB RAM via migration assistant. on my G5 i had only one main partition where i had my osx, my pictures, mp3 and so on.  total amount about 230 G

  • Key code     +      Control Key

    Hi friends, Please tell me what is a Key Code in "Payment Methods" and Control Key in "House Banks Set Up Window". Rgrds Jimmy

  • RoboHelp 7 - multiple projects

    I am using the new Tech Comm suite - RH7. I was asked to do a little research on meging multiple projects. Since I have not done it before, I was hoping I could get the basics here. We have quite a few applications that will be available from a porta