Photoshop scripting calls from Adobe Configurator panels

Can javascritpt functions executing from an HTML element inside a panel affect the photoshop scene?  I know it can using the scripting toolkit, but I'm trying to do this in the Adobe Configurator.  In Configurator I created a new panel with an HTML panel and a button inside it that executes a javascript function on click "createDocument".  When I bring this into photoshop, I can load the panel and click on the button, but I never get a new document created.  If I uncomment the "alert" line, reexport the plugin, and click on the button, I get the alert, but still don't get a new document. 
var createDocument = function() {
    app.documents.add(2,4);
    //alert("creating new doc!");
I've tried other functions like creating layers, but still don't see anything happening in photoshop affecting the UI.  It's even more frustrating that I don't see any kind of error message that is happening.  My conclusions seem to imply this panel can't call the photoshop files for some reason (running in a different VM, wrong namespace, etc.).  Has anyone been able to make photoshop scripting calls from inside a configurator panel? 

You might have better luck asking the in the Configurator forum. http://forums.adobe.com/community/labs/configurator/

Similar Messages

  • Cannot open Adobe Pro XI.  Conversation with Adobe rep ended yesterday.  Should have received phone call from Adobe at 5:00 today (pdt).  Help

    Cannot open Adobe Pro XI.  Conversation with Adobe rep ended yesterday.  Should have received phone call from Adobe at 5:00 today (pdt).  Help

    What is Adobe Pro XI ?
    Maybe you need the Acrobat Forum?

  • My Adobe Configurator panels do not work in CS6 can anyone help?

    my Adobe Configurator panels do not work in CS6 can anyone help?

    See this post http://forums.adobe.com/message/4286318?tstart=0, it helps me to update one of my panels.
    regards

  • Photoshop CS6 available from Adobe after June 16th?

    Photoshop CS6 available from Adobe after June 16th?

    PhotoRoy1 wrote:
    Photoshop CS6 available from Adobe after June 16th?
    I have been told by Adobe that CS6 will be available for the foreseeable future, also, Adobe has committed to making CS6 compatible with the next release of both OSX and Windows, so at a minimum, I would expect CS6 to be available for at least the next year.

  • Can I download Adobe Photoshop CS2 legally from Adobe's link?

    Dear Adobe Community,
    The following link shows how to get Adobe Photoshop CS2 "legally" http://www.digitaltrends.com/computing/how-to-get-photoshop-for-free/
    The conditions from Adobe are that you must have either purchased the license perviously or have bought Reader 7 beforehand. I know certainly that I have not bought Photoshop CS2 before, so I don't know if I can still purchase it.
    Ethically, it feels wrong to get the download however practically I need it for school and I don't have a lot of money. I'm trying to do the right thing here, can anybody suggest what to do?
    Thanks!

    Yeah, that's what I am worried about. I guess I will just pass. As for the prices, they are still too high. I just needed the software for school projects and charity work - yet price is still a roadblock.
    I think they should legalize it for nonlicensed members. I could certainly benefit from this and thereby indirectly benefit others.

  • "Error attempting to read file" at Webservice call from Adobe Form.

    Hi Experts,
    We have designed a Webservice form a Function Module in ECC 6.0, In the soamanager transaction the webservice works fine. But at the time of call from the Adobe form, it gives an error stating that "Error attempting to read from file" and then the URL of the Webservice to be excuted.
    and if i attempt to open that file, it gives me this error:
    - <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
      <soap-env:Header />
    - <soap-env:Body>
    - <soap-env:Fault>
      <faultcode>soap-env:Server</faultcode>
      <faultstring xml:lang="en">SRT: Wrong Content-Type and empty HTTP-Body received</faultstring>
    - <detail>
    - <ns:SystemFault xmlns:ns="http://www.sap.com/webas/710/soap/runtime/abap/fault/system/">
      <Host>undefined</Host>
      <Component>COREMSG</Component>
    - <ChainedException>
      <Exception_Name>CX_SOAP_CORE</Exception_Name>
      <Exception_Text>SRT: Wrong Content-Type and empty HTTP-Body received</Exception_Text>
      </ChainedException>
      </ns:SystemFault>
      </detail>
      </soap-env:Fault>
      </soap-env:Body>
      </soap-env:Envelope>
    In case I give my user the "SAP_ALL" role, this all works fine, so i think it is somewhere related to a missing role to be assigned.
    any clues..??
    any help would be appreciated, Please help..
    Thanks,
    Amita

    Hi Juergen,
    I am using it as a WSDL based data connection.
    How do i check this WSDL through a web browser? I have checked it through SICF Transaction code, It gives the output in explorer as given in the first post of this thread..
    Please help me resolving this issue, i feel that this issue is somewhere related to the role assignment of the user as if i provide this user an authorization of SAP_ALL then everything starts working fine, but after removing SAP_ALL this error is encountered, do u hav any pin points on this??
    Thanks
    Amita

  • Unable to download or access "my stuff" from adobe exchange panel.

    After a successful login to the cc site, from the sign in button on the exchange panel, the message is sorry, we are unable to log you in.  I have closed and started again after cleaning out the cookies etc.
    How do I fix the problem. 
    I am on a windows 7 machine.
    I have not changed any preferences in Photoshop.

    The download is huge, 1.6GB, so it will take a while to download and if it fails, clear your browser’s cache and try again, or try a different browser.
    There is nothing on the page that will prevent you from downloading it multiple times.  If you are getting an error it is likely your internet connection or some internet security software or something else blocking.  Did you watch the download and did it completely successfully or did it just stop?
    On the page with the Try link there is a link for when you’re having problems downloading, which it seems like you are:
    http://helpx.adobe.com/x-productkb/global/troubleshoot-download-problems.html
    There are phone numbers for Adobe but usually it is an exercise in frustration talking to someone in India who has a script they will lead you through, not unlike what it says on the help page, just slower.
    If you want to attach a screenshot you need to use the web version of the forums and copy/paste into the message, or use the camera icon at the top left.

  • Web Service call from adobe form

    Hello,
    I developed the form in SFP, I created a webservice and tested the web service with a third party tool, this works fine. I added a new dataconnection and imported the wsdl file. I linked the request parameter to a from field and the returns parameters to a form field, added a button with "execute" , with run at server option. I didn't check the Re-merge Form data check-box. When generating the form everything go's well, when I open the form in the reader and fill in the request parameter and push the button i still get the message : 
    "can not post data to."
    I'm using Adobe Reader 7.09 and Life Cycle Designer 7.1. On a SAP ECC 6.0 SP08 system.
    Additionaly I looking for example script for binding the request node to a field value ? Or a examples of searching a node table with a value, like a check table within the form. I'm really looking for more scripting examples because I'm a real ABAP-guy.
    I hope some one got some extra information for me to solve this problem.
    Thanx in advance.
    Jasper

    Hi Jasper,
    You may refer the Adobe ddevelopment center for the docs related to the execute property of the button to trigger a web service.
    <i>Alternatively, if you do not want to create a button to execute a call to a Web Service, you can do it via Script.
    Assuming your Data Connection is named ‘LeasePayment’
    For JavaScript:
    xfa.connectionSet.LeasePayment.execute(0);
    For Form Calc:
    $connectionSet.LeasePayment.execute(0);
    execute(0) indicates no data merging
    execute(1) indicates all the data in the data DOM will be remerged.</i> - Adobe doc.
    hope this will help.
    Thanks andRegards,
    Anto.

  • Capturing log files from multiple .ps1 scripts called from within a .bat file

    I am trying to invoke multiple instances of a powershell script and capture individual log files from each of them. I can start the multiple instances by calling 'start powershell' several times, but am unable to capture logging. If I use 'call powershell'
    I can capture the log files, but the batch file won't continue until that current 'call powershell' has completed.
    ie.  within Test.bat
    start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > a.log 2>&1
    timeout /t 60
    start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > b.log 2>&1
    timeout /t 60
    start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > c.log 2>&1
    timeout /t 60
    start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > d.log 2>&1
    timeout /t 60
    start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > e.log 2>&1
    timeout /t 60
    start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > f.log 2>&1
    the log files get created but are empty.  If I invoke 'call' instead of start I get the log data, but I need them to run in parallel, not sequentially.
    call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > a.log 2>&1
    timeout /t 60
    call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > b.log 2>&1
    timeout /t 60
    call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > c.log 2>&1
    timeout /t 60
    call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > d.log 2>&1
    timeout /t 60call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > e.log 2>&1
    Any suggestions of how to get this to work?

    Batch files are sequential by design (batch up a bunch of statements and execute them). Call doesn't run in a different process, so when you use it the batch file waits for it to exit. From CALL:
    Calls one batch program from another without stopping the parent batch program
    I was hoping for the documentation to say the batch file waits for CALL to return, but this is as close as it gets.
    Start(.exe), "Starts a separate window to run a specified program or command". The reason it runs in parallel is once it starts the target application start.exe ends and the batch file continues. It has no idea about the powershell.exe process
    that you kicked off. Because of this reason, you can't pipe the output.
    Update: I was wrong, you can totally redirect the output of what you run with start.exe.
    How about instead of running a batch file you run a PowerShell script? You can run script blocks or call individual scripts in parallel with the
    Start-Job cmdlet.
    You can monitor the jobs and when they complete, pipe them to
    Receive-Job to see their output. 
    For example:
    $sb = {
    Write-Output "Hello"
    Sleep -seconds 10
    Write-Output "Goodbye"
    Start-Job -Scriptblock $sb
    Start-Job -Scriptblock $sb
    Here's a script that runs the scriptblock $sb. The script block outputs the text "Hello", waits for 10 seconds, and then outputs the text "Goodbye"
    Then it starts two jobs (in this case I'm running the same script block)
    When you run this you receive this for output:
    PS> $sb = {
    >> Write-Output "Hello"
    >> Sleep -Seconds 10
    >> Write-Output "Goodbye"
    >> }
    >>
    PS> Start-Job -Scriptblock $sb
    Id Name State HasMoreData Location Command
    1 Job1 Running True localhost ...
    PS> Start-Job -Scriptblock $sb
    Id Name State HasMoreData Location Command
    3 Job3 Running True localhost ...
    PS>
    When you run Start-Job it will execute your script or scriptblock in a new process and continue to the next line in the script.
    You can see the jobs with
    Get-Job:
    PS> Get-Job
    Id Name State HasMoreData Location Command
    1 Job1 Running True localhost ...
    3 Job3 Running True localhost ...
    OK, that's great. But we need to know when the job's done. The Job's Status property will tell us this (we're looking for a status of "Completed"), we can build a loop and check:
    $Completed = $false
    while (!$Completed) {
    # get all the jobs that haven't yet completed
    $jobs = Get-Job | where {$_.State.ToString() -ne "Completed"} # if Get-Job doesn't return any jobs (i.e. they are all completed)
    if ($jobs -eq $null) {
    $Completed=$true
    } # otherwise update the screen
    else {
    Write-Output "Waiting for $($jobs.Count) jobs"
    sleep -s 1
    This will output something like this:
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    When it's done, we can see the jobs have completed:
    PS> Get-Job
    Id Name State HasMoreData Location Command
    1 Job1 Completed True localhost ...
    3 Job3 Completed True localhost ...
    PS>
    Now at this point we could pipe the jobs to Receive-Job:
    PS> Get-Job | Receive-Job
    Hello
    Goodbye
    Hello
    Goodbye
    PS>
    But as you can see it's not obvious which script is which. In your real scripts you could include some identifiers to distinguish them.
    Another way would be to grab the output of each job one at a time:
    foreach ($job in $jobs) {
    $job | Receive-Job
    If you store the output in a variable or save to a log file with Out-File. The trick is matching up the jobs to the output. Something like this may work:
    $a_sb = {
    Write-Output "Hello A"
    Sleep -Seconds 10
    Write-Output "Goodbye A"
    $b_sb = {
    Write-Output "Hello B"
    Sleep -Seconds 5
    Write-Output "Goodbye B"
    $job = Start-Job -Scriptblock $a_sb
    $a_log = $job.Name
    $job = Start-Job -Scriptblock $b_sb
    $b_log = $job.Name
    $Completed = $false
    while (!$Completed) {
    $jobs = Get-Job | where {$_.State.ToString() -ne "Completed"}
    if ($jobs -eq $null) {
    $Completed=$true
    else {
    Write-Output "Waiting for $($jobs.Count) jobs"
    sleep -s 1
    Get-Job | where {$_.Name -eq $a_log} | Receive-Job | Out-File .\a.log
    Get-Job | where {$_.Name -eq $b_log} | Receive-Job | Out-File .\b.log
    If you check out the folder you'll see the log files, and they contain the script contents:
    PS> dir *.log
    Directory: C:\Users\jwarren
    Mode LastWriteTime Length Name
    -a--- 1/15/2014 7:53 PM 42 a.log
    -a--- 1/15/2014 7:53 PM 42 b.log
    PS> Get-Content .\a.log
    Hello A
    Goodbye A
    PS> Get-Content .\b.log
    Hello B
    Goodbye B
    PS>
    The trouble though is you won't get a log file until the job has completed. If you use your log files to monitor progress this may not be suitable.
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • Unix SCRIPT CALL FROM PL/SQL

    How can I call an unix script from a PL procedure ?

    http://www.orafaq.com/scripts/c_src/extproc.txt

  • ActiveX can't create object when VB Script called from Labview

    I have an interesting issue that I can't find a solution for. I am using the DIAdem Run Script.VI in Labview to call a script that opens an Outlook object and sends an email. When the script is called via LabView I get this error:
    However, when I manually run the script from the DIAdem script tab it works as expected with no errors.
    This is the code:
    'Begin email send function
    Dim oOutlookApp
    Dim oOutlookMail
    Dim cnByValue : cnByValue = 1
    Dim cnMailItem : cnMailItem = 0
    ' Get Outlook Application Object
    Set oOutlookApp = CreateObject("Outlook.Application")
    ' Create Mail Item
    Set oOutlookMail = oOutlookApp.CreateItem(cnMailItem)
    ' Set Mail Values
    With oOutlookMail
    .To = "[email protected]"
    .Subject = "Report: " & Data.Root.ActiveChannelGroup.Name & " for " & CurrDate
    .Body = "test automatic report emailing with VB Script."
    ' Add Attachement
    Call .Attachments.Add(strLocFileName, cnByValue, 1 )
    ' Send Mail
    Call .Send()
    End With
     (Original code includes Option Explicit and all variables are properly included/declared, I just took the snippet of what's causing the error).
    I have looked at the following threads for info already:
    http://forums.ni.com/t5/DIAdem/Some-errors-when-calling-LabVIEW-VIs-Interactively-from-DIAdem/td-p/2...
    http://forums.ni.com/t5/DIAdem/Active-X-component-cannot-create-object-Diadem-8-1/m-p/71212/highligh...
    -I tried running the script via Windows explorer (per Brad's suggestion) by itself without the DIAdem specific functions and it runs fine.
    http://forums.ni.com/t5/DIAdem/Error-while-runing-diadem-asynchronous-script-from-labview-on/m-p/111...
    -I am not running the scripts asynchronously
    Using Windows 7 (64bit), DIAdem 11.2 and LabView 7.1.1
    Thank you.

    Hey techerdone -
    I'm afraid I personally can't be of much help - I tested your code both from DIAdem and from LabVIEW and each worked without issues in both cases (Outlook closed, Outlook open).  I'm using DIAdem 2011 SP1, LabVIEW 2011, and Outlook 2007...
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments

  • Remote Execution from Powershell Script called from Team Foundation Build

    Hello
       I am trying to deploy a sharepoint solution with a sharepoint script, with this approach:
    First i test the environment, using windows powershell console
    New-PSSession -ComputerName developmentserver01
    Enter-PSSession -computername developmentserver01
    d:
    cd d:\deploymentscripts
    .\deploysharepoint.ps1
     Then i start the automation:
       1.- TFS runs a build that call at the end to "deploy.ps1" locally in the build server. ---> this is working.
       2.- desploy1.ps1 copy the drop files to the development environment developmentserver01 shared folder.
       3.- after copy the files,  deploy1.ps1 connet with the development environment machine developmentserver01  using remote connection commands from powershell -->this is working.
       4.- this step fails, in this step i try to execute the deployment script deploySharepoint.ps1 that has copied in the development environment machine in the step 2.
         First using commands inside the script like in the powershell console, but i see that the commands are running inside the TFS build machine not in the machine that i connected whit remote connection
    d:
    cd d:\deploymentscripts
    .\deploysharepoint.ps1Later using different options (invoke-command, ...) only this optionk works:
    Invoke-Command -computername developmentserver01 -scriptblock{d:\DeploymentScripts\deploysharepoint.ps1 -solutionNames @("parameter1")}
    The problem it´s that i think that invoke-command don´t work like the commands using powershell console , because the script show the error that the user don´t haver permissions for accesing the Farm of sharepoint. If i run the script with remote session in a power shell console as show at the beginning of the post, all things work fine. How can i run the remote script deploysharepoint.ps1 with remote session from the script desploy.ps1, like using powershell console?

    have you tried passing credentials to it maybe use credssp, you could pass new session to your invoke-command although this shouldnt make difference, i basically think that when you opened this ps session it sees you admin therefore when you do the enter
    session you are still admin, when you use the invoke i am not so sure it keeps your creds..
    $s = New-PSSession -ComputerName developmentserver01
    Invoke-Command -session $s -scriptblock{d:\DeploymentScripts\deploysharepoint.ps1 -solutionNames @("parameter1")}

  • Script Call from ADF

    Hi All,
    can we call unix Script (Bash script) from ADF?.
    Is there any option of doing it ?
    Regards,
    Suresh kumar.k

    you can create a bean for the ADF binding the button to the actionlistenr.. and call the script just as a normal java call..
    just look at this
    http://stackoverflow.com/questions/525212/how-to-run-unix-shell-script-from-java-code

  • Vbs script called from a service cannot execute certain commands

    We have a service, running as domain admin user on Win Svr 2008 std ed, that must execute vb scripts.  The scripts execute, but calls to SETX.exe using Shell.Run fail to set environment variables.  However, SETX returns no errror
    msg. 
    If I run the same script within a CMD window with elevated privilege (e.g. Administrator), the script works as expected and environment variables are set.
    What is going on?  File creation fails as well.
    The call looks like this:
    gnReturnCode= RunCmd("setx.exe UD_UPGRADING_RELEASE "True" /m",True)
    Where RunCmd is as follows:
    ' Function:  RunCmd( ByVal strCmd, ByVal bWait)
    ' desc: Execute a command string and wait for result if indicated
    Function RunCmd( ByVal strCmd, ByVal bWait)
    Dim nReturnCode, strWholeCmd
        nReturnCode= 0
        strWholeCmd= "%comspec% /c "&strCmd&" >"&gcsLogFile2
        nReturnCode= goShell.Run(strWholeCmd,0,bWait)
        WriteLog( "RunCmd("&strCmd&","&bWait&") returned "&nReturnCode)
        RunCmd= nReturnCode
    End Function
    Mark Maddox Sr. Tech Specialist

    I did the following and am providing comments on each:
    Run setx.exe from a Command Prompt.
    RESULT: This works and can be seen by new processses regardless of privilege provided they are done under the same credentialed user.
    Run a really simple script from the Command Prompt, e.g. the one below, and check if it works.
    Set oWshShell = CreateObject("WScript.Shell")
    sCMD = "cmd /c setx.exe Test %time% /m"
    wscript.echo "Error code=" & oWshShell.run(sCmd, 0, true)
    RESULT:  This works and result can be seen by new processes regardless of privilege provided they are done under the same credentialed user.  My attempts to user another credentialed user failed with a permission to access reegistry path not
    granted.
    Run the same script as a scheduled task, using the same account as you use for your service, then check if it worked.
    RESULT:  Script ran, but only new processes with elevated privilege could see the change.  New processes without elevated privilege could not see the change.  I had to log out and log back in for new processes without elevated privilege
    to pick up the change.
    Run that script as a service, then check again if it worked.
    RESULT:  Script ran, but only new processes with elevated privilege could see the change.  New processes without elevated privilege could not see the change.  I had to log out and log back in for new processes without elevated privilege
    to pick up the change.
    Mark Maddox Sr. Tech Specialist
    P.S.  I also created an application that gets called after the the script has made environment variable changes.  It broadcasts the WM_SETTINGCHANGE message.  I did this in hopes that something would refresh in the Windows OS allowing non-privileged
    users to see the change.  It did not help.  Here's the C++ line that I executed:
    LRESULT error1 = SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM)
    "Environment", SMTO_ABORTIFHUNG,
    5000, &dwReturnValue);

  • Shell script called from .sql fie in oracle concurrent manager

    Hi
    I am running a request set through Oracle concurrent manager.
    The manager calls a .sql file. The sql file internally calls a unix shell script.
    v_body VARCHAR2(10000);
    v_body is set as followed in the sql program.
    v_body := 'ATTENTION :' || CHR(10) || CHR(10) ||
    'Your invoice number ' || r_error_rec.invoice_num || ' cannot be paid at present due ' ||
              'to one of the following reasons:' || CHR(10) || CHR(10) ||
              ' - The Purchase Order number quoted on the invoice is invalid ' || CHR(10) ||
              ' - The Purchase Order number has not been quoted at all on the invoice' || CHR(10) ||
              ' - The Purchase Order number is missing on one or more of the lines on the invoice' ||
              CHR(10) || CHR(10) ||
              'To avoid any further payment delays, please advise us of the correct Purchase ' ||
              'Order number(s) by emailing ' || r_error_rec.sender || '. Please note that it is not ' ||
              'necessary to re-submit the invoice.' || CHR(10) || CHR(10) ||
              'If you do not know the Purchase Order number, please contact the employee ' ||
              'who ordered your goods/services for this number. For future reference please note that ' ||
              'it is the responsibility of the vendor to ensure that an approved Purchase Order ' ||
              'number is received before supplying goods/services to . The purchase order is ' ||
              'evidence that the order has been approved by management.' || CHR(10) || CHR(10) ||
              'This invoice will be held as pending until the valid Purchase Order number can be provided.' || CHR(10) || CHR(10) ||
              'Thank you,' || CHR(10) || CHR(10) || ' Accounts Payable' || CHR(10);
    The sql now calls a unix shell script as shown below.
              l_request_id := fnd_request.submit_request (
                                            'CFI',                                   'CFIECAPEMLSH',                         NULL,                              NULL,                              FALSE,                              r_error_rec.sender,                          v_recipient,                              v_ccrecipient,                          v_bccrecipient,                          v_subject,                                   v_body,                                   v_attachment     
    So here the problem i am facing is that the shell script is not getting called.
    If i keep v_body= 'Test' the shell script is called and program is working fine.
    Is it a problem with CHR(10) or the size limitation of v_body i dont know.
    I tried to keep v_body VARCHAR2(10000).
    Still it did not work.
    Plz help me if u know about this.

    You cannot have varchar2 > 4000.

Maybe you are looking for