Results 1 to 1 of 1

Thread: Opening a file with photoshop automation [resolved]

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2004
    Posts
    1

    Opening a file with photoshop automation [resolved]

    Update: I am, in fact, a bonehead. Problem solved:

    VB Code:
    1. Public Sub OpenPhotoFile_Click()
    2.  
    3. Dim PhotoDoc As IAutoPSDoc
    4.  
    5.  
    6. 'Opens Photoshop
    7. Set photoshop = New PhotoshopApplication
    8. 'Opens the template
    9. 'Opens the first file
    10. Set PhotoDoc = photoshop.Open("C:\whatever\testme.psd")


    ------------------------------


    Hiya folks. I hope you can help me out.

    I've started working on a project that requires extensive automation of Photoshop. My company isn't a member of Adobe's little club and so I don't have access to the SDK, and so if this is a completely boneheaded question I apologize in advance.

    I run into an issue right off the bat:

    VB Code:
    1. Public Sub OpenPhotoFile_Click()
    2.  
    3. Set photoshop = New PhotoshopApplication
    4. PhotoshopApplication.Open ("c:\whatever\testme.psd")
    5.  
    6. End Sub

    Also, I have
    VB Code:
    1. Public photoshop As PhotoshopApplication
    in my declarations.

    The problem is that when I run this, while Photoshop starts up and testme.psd does open up, the file closes immediately afterwards -- almost instantaneously. I'm confused, as I certainly haven't told Photoshop to close testme.psd and (obviously) I really need that file to stay open. Can anyone tell me why this is happening, and more importantly how I can stop it?
    Last edited by Yagathai; Mar 11th, 2004 at 11:25 AM.
    - Yagathai

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width