Photoshop COM Object Scripting via PhP

Has anyone had any joy creating a photoshop COM Object using PhP?
Normally you would do something like this :
$ps = new COM("Photoshop.Application.8") or die ("Failed to initialize.");
var_dump($ps);
I can see photoshop launched in the task manager, but when run in my browser appears to be stuck in a loading cycle, no output of the Object.
Doing this :
$ps = new COM("Microsoft.XMLDOM") or die ("Failed to initialize.");
var_dump($ps);
Correctly outputs 'object(com)#1 (0) { }'
ie. an initialized XMLDOM COM object.
If i can initialize Photoshop as a COM object i should be able to script it directly in PhP, rather than using the command line to execute a droplet that calls an action to execute a VB/JSX Script.

I would like some information on this as well...

Similar Messages

  • Data Mining shared mail box using powershell via com object Performance is really bad.

    I was trying to pull a report from multiple shared mail boxes by configuring them in outlook. Everything works fine for me here but the problem is that the below script would need a minimum of 10-14 hours on weekly basis. Can you please comment me on how
    can I get more performance? My average mailbox details and my observations are as below:
    It would have about 35 sub folders recursively up to 3 levels in Inbox.
    It would have ~ 300,000 to 400,000 emails.
    I donot know if this can be easily accomplished via EMC Shell but I dont have it either.
    And these are configured in Outlook 2013.
    The biggest folder has about 60000 emails.
    Even plain export without any filter or calculated values in the output is taking the similar time.
    I have even tried to use pick folder and manually executed multiple instances (~10) for each folder but the performance was really worst.
    -------------------------Script Starts here--------------------------------------
    Filter WeeklyReport {If((($_.SentOn -ge ("12/14/2014" -as [datetime])) -and ($_.SentOn -le ("12/20/2014" -as [datetime])))){$_}}
    $ReportFileName="~\Desktop\EMail_Export_$(get-date -f yyyy-MM-dd-HH-mm).csv"
    function GetSubfolders($Parent) { 
        $folders = $Parent.Folders 
        foreach ($folder in $folders) { 
            $Subfolder = $Parent.Folders.Item($folder.Name) 
            Write-Host ("Started processing"+$folder.Name +" at "+$(Get-Date)+" which has "+$folder.items.Count + " items ") -NoNewLine
            $folder.Items | WeeklyReport | Select-Object -Property SenderEmailType,ConversationTopic,CreationTime,ReceivedTime,Importance,LastModificationTime,Size,Subject,CC,ReceivedByName,ReceivedOnBehalfOfName,SenderName,SentOn,SentOnBehalfOfName,To,SenderEmailAddress,Categories,@{N='FolderName';E={$($folder.Name)}}
    | epcsv -Path $ReportFileName -NoTypeInformation -Append
            Write-Host ($(Get-Date))
            GetSubfolders($Subfolder) 
    Add-Type -AssemblyName "Microsoft.Office.Interop.Outlook"
    $olFolders = "Microsoft.Office.Interop.Outlook.olDefaultFolders" -as [type]
    $outlook = New-Object -ComObject outlook.application
    $namespace = $outlook.GetNamespace("MAPI")
    $MailBox=$namespace.Folders | ?{$_.Name -eq "[email protected]"}
    $MailBoxInbox=$MailBox.Folders | ?{$_.Name -eq "Inbox"}
    Write-Host ("Started processing Inbox at "+$(Get-Date)+" which has "+$MailBoxInbox.items.Count + " items") -NoNewLine
    $MailBoxInbox.Items | WeeklyReport | Select-Object -Property SenderEmailType,ConversationTopic,CreationTime,ReceivedTime,Importance,LastModificationTime,Size,Subject,CC,ReceivedByName,ReceivedOnBehalfOfName,SenderName,SentOn,SentOnBehalfOfName,To,SenderEmailAddress,Categories,@{N='FolderName';E={'Inbox'}}
    | epcsv -Path $ReportFileName -NoTypeInformation -Force
    Write-Host ($(Get-Date))
    GetSubfolders($MailBoxInbox)
    $outlook.quit()
    -------------------------Script Ends here--------------------------------------
    --VenuGopal

    Aah, Sorry COM object....
    I have observed that for the execution of the below line hardly it is taking 1-2 seconds for processing 50,000 items and it is similar even if we dont apply the filter.
    $items=$Folder.Items.Restrict($sFilter)
    Just got a doubt and found that the performance issue is not while processing the data but export is taking so much of time. For Example: Execution of the below line starts giving out put on the fly.
    $items|Select-Property$props|ft-a
    Even Out-File is taking so much of time. So, I think I need to start looking out for string builder or Stream Writer rather using epcsv?
    --VenuGopal

  • Controlling Matlab via TestStand COM Objects

    I am attempting to control MATLAB via teststand activex com objects.  I set up my module to use the matlab 7 automation server, and when I try to run the sequence, I get this error:
    "Create New Object" in automation call failed.
    No such interface supported
    One reason this can occur is if the interface of your COM server cannot be marshaled. This can happen if your server is not using the default OLE marshaling implementation and does not implement its own proxy and stub code. If you write your server using Visual C++ you can add the oleautomation attribute to your interface in order to use the default OLE marshaling implementation. Alternatively, COM does not require marshaling if the server's threading model is the same as the client thread's apartment. You can try changing your server's threading model or the client thread's apartment to avoid the need to marshal the interface."
    Anyone know how to fix this?
    -Joey

    It turns out this issue was a bug within Matlab itself.  The correct registry keys were not being added for the Matlab ActiveX server with version 7.2.  The bug report is located here.  Once the correct registry keys were added there was no problem calling the Matlab ActiveX interface.
    Pat P.
    Software Engineer
    National Instruments

  • Call MS com object via SOAP from WLS 6.1

    I generated a WSDL file for a Microsoft com object and can easily write a WL
    web service that calls it using Workshop 7.0. But I need to deploy it on a
    WLS 6.1 server. (I was hoping that Workshop would simply generate the source
    code required for accessing the com object via soap, which I could then cut
    and paste into my own source, but it doesn't do that.)
    Does anyone have an example of how to do this?

    Hi Mel,
    You said that you want to "deploy it on WLS 6.1", but I think what you really
    meant is that you want a J2EE component (i.e. JSP, Servlet, EJB, etc.) running
    in WLS 6.1 to consume the WSDL you created from the COM object, right?
    If so, the web services package in WLS 6.1 can be used to do this :-) If you tell
    me what type of J2EE component (i.e. JSP, Servlet, EJB, etc.) you want to be the
    client, I'll provide you with some sample code. Also, be sure you attach the WSDL
    that was generated, because WLS 6.1's WSDL processor isn't as complete as the
    one in WLS 7.0 and Workshop :-)
    Regards,
    Mike Wooten
    "Mel Werbow" <[email protected]> wrote:
    I generated a WSDL file for a Microsoft com object and can easily write
    a WL
    web service that calls it using Workshop 7.0. But I need to deploy it
    on a
    WLS 6.1 server. (I was hoping that Workshop would simply generate the
    source
    code required for accessing the com object via soap, which I could then
    cut
    and paste into my own source, but it doesn't do that.)
    Does anyone have an example of how to do this?

  • Execute photoshop script via illustrator cs5

    Hi
    Is it possible to execute Photoshop script via illustrator
    I have 2 different script
    script 1 work in illustrator with eps file and export as jpeg
    script 2 where i want to trim the exported jpeg for illustrator in photoshop and save it back
    I have 2 differnt script with me
    can anyone help me to club both and run at same time..
    Thank you
    Appu

    use BridgeTalk to have Illustrator talk to Photoshop, here's a sample by Mark
    Illustrator script to open file in Photoshop
    or use inter app communication
    open PS, open a document
    // start your illustrator script
    var Aidoc = app.activeDocument;
    continue with your script
    // when ready, call your photoshop script
    // this sample alerts the active document name and closes it
    photoshop.executeScript("alert('document name: ' + app.activeDocument.name); app.activeDocument.close()");

  • Using the COM Object

    Hi ,
    Is it possible to use the COM object in Labwindows/CVI? If yes, please share the procedure?
    Thanks,
    Sumathi

    [Jongware],
    Thank you for the prompt reply!  Your information has been helpful.
    I'm not quite sure why what I'm wanting to do is against the EULA, unless it's because I'm doing it at a server level.
    Yes, COM is a Microsoft concept.  I do understand that InDesign uses the DOM, but I have seen code snippets where people have utilized the .tlb file from within .NET (C#, too).
    1. That sucks, but it is something I suppose I could live with.
    2. No comment.
    3. If my only objective is to create a thumbnail (whether it be INDD --> PDF --> JPG or INDD --> JPG), and if placing will achieve this, then that's ok.
    4. If InDesign server allows me to run a script that will do what I want, that'll work.
    5. No comment.
    6. I assume there's no way to try-before-you-buy InDesign Server?  I sure wish I could tinker with it before determining if it's the right solution.
    I know what I want is WAY overkill, but since we're a shop that uses Adobe products to print large graphics, our customers use Adobe, too.  I'm absolutely FLABBERGASTED that Adobe doesn't offer a way to easily convert their products.  And since what I want to do requires the use of Adobe in some way or fashion, I don't see any other alternative than to use a cannon to kill a fly.
    I spoke with "Travis" via chat after reading your post.  He states that Adobe does not offer a product that does what I want, nor does it offer a custom made graphic conversion program.
    What an absolute bummer.  I never thought converting an Adobe file to a thumbnail would be so difficult, especially after I noticed how Adobe Bridge flawlessly creates a visible thumbnail for all Adobe types, right in it's own window.
    Again, thanks for the information.  If you think of anything else, please let me know.
    Kyle

  • Using as a COM-object

    Hello gurus,
    Is it possible to use Adobe Indesign as a COM-object? Can I do it remotely?
    Will it be okay or should i buy Adobe Indesign Server for these purposes?
    Thank you.
    p.s. I'm developing a small webapp and i want to use Indesign.

    (I've moved this thread to the InDesign Scripting forum).
    Technically, yes, you can access InDesign as COM object.
    The documentation Adobe provides is for VBscript, though you can use other COM languages.
    I don't know about remotely.
    Is it OK? Well, probably not. Read the EULA carefully, but controlling InDesign via a web application would appear to violate the terms of use. Check with your counsel.

  • Error in VBA reference for Adobe Photoshop CS4 Object Library

    Hello,
    I'm using Windows 7 Pro, MS Office 2010 Pro and Creative Suite CS4 (with all updates).
    I will automate Photoshop via Visual Basic for Applications in MS Access.
    Befor using there the Adobe Photoshop CS4 Object Library I must reference it in VBA.
    But when I will du this, I get the message "Error loading DLL".
    When I will manually reference to the WIASupport.8LI File, I get the error: "Cannot reference this file"
    Can you give a tip, how I can solve this problem?
    Regards

    I have the same problem!  I have photoshop cc2014 (which we own) and the object library shows, but not for cs 5.1 (30 day trial).
    Does registering unlock something?
    Help please!!

  • How can I call a COM object from a PL/SQL CODE

    Hi everyone,
    Does anyone know how to call a COM object from a stored procedure in oracle.
    a sample of code
    please help,
    Hilaire

    Are you familiar with external procedures? Basically, you can expose functions exported by a shared library (i.e. a DLL on Windows) to the Oracle database. My assumption is that you'd probably need to write a wrapper DLL around the COM object, since I believe you can only pass fundamental data types back and forth (i.e. no object references). You'd expose the method(s) of that wrapper DLL to the database via external procedures.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • Connection to oracle via php

    hi,
    I am making a site with a connection to oracle Xe but I am not able to connect me;
    here script:
    <?php $user = @$_post['login'];
    $passwd = @$_post['pass'];
    $bd = "(DESCRIPTION =(ADDRESS =(PROTOCOL = TCP)
    (HOST = titanium)(PORT = 1521))
    (CONNECT_DATA=(SERVER = DEDICATED)
    (SERVICE_NAME = XE)))";
    $conn = ocilogon($user, $passwd, $bd);
    $query = "select * from cabine";
    $stid = OCIParse($conn, $query);
    ociexecute($stid);
    while (ocifetch($stid)) {
    echo "\n";
    $ncols = ocinumcols($stid);
    for ($i = 1; $i <= $ncols; $i++) {
    $column_name = ocicolumnname($stid, $i);
    $column_value = ociresult($stid, $i);
    echo $column_name . ': ' . $column_value . "\n";
    echo "\n";
    ocifreestatement($stmt);
    ?>
    I use easyphp 1.0, and oracle express edition;
    here error message:
    Warning: ocilogon(): OCISessionBegin: ORA-01017: nom utilisateur/mot de passe non valide ; connexion refusée in c:\program files\easyphp1-8\www\facture.php
    what must I modify to make function the connection. Thank

    Try echo'ing the username & password to check they are set correctly.
    Is the user account created and unlocked?
    This free book has some useful information on PHP and Oracle: http://tinyurl.com/f8jad
    -- cj

  • How to change maintenance powershell script via GPO?

    Per suggestion reposted from here: http://social.technet.microsoft.com/Forums/windowsserver/en-US/6eece9d6-a524-48aa-8e64-7554f0ec9b31/how-to-change-maintenance-powershell-script-via-gpo?forum=winserverGP
    Posted at http://answers.microsoft.com/en-us/windows/forum/windows_7-desktop/desktop-shortcuts-to-items-on-network-drives/94eddb27-342b-40fc-9ad4-677ff4ee8ebe?page=9&tm=1403700614489 originally.
    There is a very annoying "feature" in Windows 7 called BrokenShortcuts.ps1 which is being called out weekly via maintenance task and if it finds more than 4 "broken" network shortcuts it removes them all. So it means if a user at this
    moment is disconnected from the network he will lose all links to shares, network applications sitting on his desktop. Funny that there was no such script on Vista and i don't see this on Win8. On the post i have attached one user suggested to edit this script
    and change 4 to 500 or whatever high number. That's fine for one time fix. But i need to do this for 200+ users. This file cannot be simply replaced by a script, so i'm wondering is there any way to do it via GPO?
    I have already tried various startup scripts, but i'm not sure which user to put into commands.
    I need to run this on startup:
    takeown /F C:\Windows\diagnostics\scheduled\Maintenance\TS_BrokenShortcuts.ps1
    icacls c:\windows\diagnostics\scheduled\maintenance\TS_BrokenShortcuts.ps1 /grant "some user":F
    copy \\share\folder$\TS_BrokenShortcuts.ps1 C:\Windows\diagnostics\scheduled\Maintenance\ /Y

    You need to take time to study how Windows does these things.  You can control them with GP which is what you asked.  The article shows you how to disable elements of the tasks.  Each task controls a script.  If you disable the task the
    script that deletes shortcuts will be stopped. Other maintenance tasks will continue to run.
    Most of your problem is that you seem to want someone to provide a magical solution.  In technology it is necessary to fully research your issues until you understand all aspects.  After fully studying the issue you should understand the possible
    solutions if they exist.
    You claim to have deployed the patch that Microsoft released to fix the issue.  You claim it didn't work.  If that is the case then you need to call MS and \p[en a support incident.  If  Microsoft determines that you are right about the
    patch not working you will not be charged for the call.
    I know that learning how to support technology is hard and frustrating for newcomers.  In time, by using these incidents to learn, you will become a seasoned technician and all of this will seem trivial.  Until then we can only suggest that you
    do things that most of us are familiar with.  We cannot fix your network for you.
    I think you haven't really posted in the GP forum but posted a question about GP in the server forum.  Try posting in the GP forum.
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverGP
    Here is one answer from the GP forum:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverGP
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/600ca14f-8b1b-400c-b27f-a7f5733407ac/windows-scheduled-maintenance-task?forum=winserverGP
    ¯\_(ツ)_/¯

  • Help with web form script. PHP, CGI, Perl???

    anyone willing to help with a web form script? I have a form built, but cant seem to figure out the scripting! Should I be using Perl, CGI, PHP... What do I need to enable? I am a complete novice when it comes to scripts. Looking for a little friendly help.

    Here is a simple bit of PHP to stick in the page your form posts to. You would need to edit the first three variables to your liking, and add the html you want to serve afterwards:
    <pre>
    <?php
    $emailFrom = '[email protected]';
    $emailTo = '[email protected]';
    $emailSubject = 'Subject';
    $date = date('l, \t\h\e dS \o\f F, Y \a\t g:i A');
    $browser = $HTTPSERVER_VARS['HTTP_USERAGENT'];
    $hostname = $HTTPSERVER_VARS['REMOTEADDR'];
    $message = "$date\n\nAddress: $hostname\nBrowser: $browser\n\n";
    foreach ($_POST as $key => $value) {
    $message .= $key . ": " . $value . "\n";
    $mailResult = mail($emailTo,$emailSubject,$message,"From: $emailFrom");
    ?>
    </pre>
    This script will grab the server's date and the submitter's address and browser type. It will then list the name and value of each form field you have put on your form.
    Also, this script expects your form method="post".
    Lastly, you can offer alternate text later on in your html page based on the success of the above script with a snippet like this:
    <pre><?php
    if ($mailResult) {
    echo "Your comments have been received thank you.";
    } else {
    echo "There was an error. Please try again or contact us using an alternate method.";
    ?></pre>

  • Edit Cluster Start-stop- and Monitor-Scripts via Bash?

    Hi,
    is there a way to edit (and sync!) the Cluster-Scripts via CLI?
    Regards
    Bernd

    The short answer is no. The scripts are stored in eDir, and NCS keeps revisions of them internally. The best place to edit them is iManager. Alternatively, you can directly change the eDir attributes for those scripts while cluster is down.
    That said, everything that iManager does comes in through a file interface. If you goal is to script resource modification, you can always access the file interface directly.
    Regards,
    Changju
    Originally Posted by toblerone
    Hi,
    is there a way to edit (and sync!) the Cluster-Scripts via CLI?
    Regards
    Bernd

  • Images in supporting object script

    I have noticed in Dene's application* that he has images in the supporting object script. I wanted to do this a while ago** but left images to be installed after the application using the separate import image function. Obviously, I would like to reduce this step to install in one shot. Is this possible or will it be in 3.1?
    Phil
    * http://htmldb.oracle.com/pls/otn/f?p=31517:90
    ** Re: Packaged app - image script problem

    Solved this by doing some research - did an image export from the application and then replacing the application ID in the script with v('FB_FLOW_ID')
    ( Re: Installed APP_ID in supporting objects seed data Thanks Scott!)
    Phil

  • Calling COM objects

    I have client HTML forms sending info to the middle tier. On the middle tier are Microsoft COM objects that have the business logic. The middle tier is Windows NT.
    Previously, Microsoft IIS was the applications server and ASP was used to access the COM objects.
    How can I use Oracle9i Application Server to call the COM objects? I suppose that I could receive the client input in a java servlet and make CORBA calls via a CORBA-COM bridge to the COM objects. Is there a better solution? If I have to do the CORBA-COM, anything I should look out for? I suppose the performance can't be very good over that many layers.
    null

    Hi John,
    Thanks for the reply.
    I have already looked into those topics which talks about Jintegra( com2java tool) and EZ Jcom .Basically these generate the java proxy classes, which is tedious to manage.
    In asp we have something like Server.createObject(...). Is there anything similar to this in jspx?
    Regards,
    Asha

Maybe you are looking for

  • I can not uninstall Office 2013 from command line

    Hi, I have been stuck for a while trying to uninstall Office 2013 via command line. Installation file was downloaded from Volume Licensing Service Center, Uninstall.xml file for silent uninstallation looks like this: <Configuration Product="ProPlus">

  • Crop tool won't drag with CC Photoshop 2014

    I have searched everywhere and talked with Adobe support through chat (they ended that abruptly??!), and Twitter and still have not had any resolution to this. I hope someone can help. I'm trying to do a simple crop. I've done it a million times with

  • Unexpected namespace change after mapping change

    Unexpected namespace change after mapping change Posted: Apr 18, 2006 5:17 AM    Reply  Hi all We developped a mapping about one year ago on XI SP9. The source of the message was an Idoc and the target an XML sample (and not a xsd!) of what our custo

  • PLEASE HELP i have trouble with WRT54G port forwarding with linksys

    Hello guys, i play a game called populous, and since im on a router i cannot host the game, when i used to have a d-link all i would do is have to set up the port to my ip with the udp. but ever since i have swiched to linksys that doesnt work, the i

  • Problems with X-fi Platinum Drive

    Hi, I've been using my X-fi platinum dri've bay for quite some time now (,5 years) but since today Windows XP keeps rebooting. I tried re-installing windows. Same story. I did disconnect the bay from the card and it works like a charm. Anyone else ha