Adobe VBScript or COM API fails when Adobe application not already open on a certain machine

Was wondering if anybody might have input on this or observed this themselves. Is there a known issue/bug for this?
I'm building scripted tooling to automate tasks in Adobe Illustrator and Photoshop, using the COM API (what Adobe lists as VBScript scripting reference, but is really COM). I've tested with both JScript (Microsoft Javascript, for doing same things you would use VBScript for) and Python using COM. In both cases got the same issue.
When I was building the tooling, it works fine for me. But on a colleagues machine, the problem comes up. Sadly the error messaging is vague to pinpoint the root cause of the problem. We just know when it happens, but not why/how. We both have Windows 7 64-bit and are using 64-bit version of the Adobe apps, version CS6. Though we also have 32-bit version installed as well.
The funny thing about my colleague's machine is the the tool/script will execute fine if Adobe Illustrator/Photoshop is already open. But if the app is not open already, it just fails at the point of instantiating the COM object. On my machine it works fine in both cases.
Here's the error output observed:
in JScript
C:\scripts>cscript windows_cli_script_runner.js /s:C:\scripts\test.jsx
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
C:\scripts\windows_cli_script_runner.js(25, 5) (null): 0x800700C1
in Python
C:\scripts>python cli_script_runner.py -s C:\scripts\test.jsx
cli_script_runner.py:33: SyntaxWarning: import * only allowed at module level
  def run_script(script,doc=None,app=None):
Traceback (most recent call last):
  File "cli_script_runner.py", line 89, in <module>
    run_script(args.script)
  File "cli_script_runner.py", line 68, in run_script
    app_ref = win32com.client.Dispatch(app)
  File "C:\Python27\lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch
    dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
  File "C:\Python27\lib\site-packages\win32com\client\dynamic.py", line 114, in _GetGoodDispatchAndUserName
    return (_GetGoodDispatch(IDispatch, clsctx), userName)
  File "C:\Python27\lib\site-packages\win32com\client\dynamic.py", line 91, in _GetGoodDispatch
    IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch)
pywintypes.com_error: (-2147024703, 'OLE error 0x800700c1', None, None)
C:\scripts>
basically both point to this line at failure:
in JScript
var app_ref = new ActiveXObject(app);
in Python
app_ref = win32com.client.Dispatch(app)
where app is "Illustrator.Application.CS6" or "Photoshop.Application", per the Adobe scripting guide and VBScript scripting reference.
I didn't test VBScript but assume it's the same since JScript and VBScript and Python are all using same COM interface, and VBScript and JScript using same Windows Scripting Host interface.

Also, there appears to be rather an unfortunate bug.  If the publisher does not yet have a subscriber, it looks like these two properties return an error.  Oof.
So. there is this other way to do it.  Embarrassing.
var allowAudio:Boolean = true;
var allowVideo:Boolean = true;
publishingStream.send("|RtmpSampleAccess", allowAudio, allowVideo);
Yep.  The secret vertical bar call.  I believe you can make this call once on the publishing stream.  However, that'll only get to the subscribers that are currently connected and it won't get to subscribers that have yet to connect.
You can also call send on the specific subscribing streams to give different permissions to each subscriber.
More...
http://forums.adobe.com/thread/632355?tstart=0

Similar Messages

  • Open api fails when trying to open disk /dev/disk0s1 /dev/disk0s2

    hi,
    open api fails when trying to open disk /dev/rdisk0s1 /dev/rdisk0s2.
    /dev/disk0s1 has efi and /dev/disk0s2 has hfs as volume type.
    It gives me permission denied error.
    then how can i open this disk?

    Hi Dave,
    We discuss SQL Server data access related issue in this forum. In your case, it mightbe more
    appropriate to discuss this issue in the forum below:
    Visual Basic forum: http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral
    Thanks for your understanding.
    Regards,
    Elvis Long
    TechNet Community Support

  • Known issue: Speech APIs fail when an x86 package is run on an x64 desktop (Windows 10 Insider Preview SDK and tools, April 2015 release)

    When building an app for the x86 platform, speech APIs fail when the x86 package is run on the desktop of an x64 system. You may see an error with the message "mod not found".

    Use the Visual Studio Configuration Manager to retarget the app to x64 when running on an x64 system.

  • My laptop beeps every time I open it, then when the Windows is already open a message window asking

    My HP Compaq Presario Q40 CQ40 beeps everytime I open it, the when the windows are already open and i click an icon a message window appear asking me if I want to delete the said icon even if I dont want to delete it, when i click the no id does not disappear, itjust come keep on coming out as if it want to send the contents all to recycle bin..pls help I really dont know what to do, and by the way my battery needs replacement too and i haven't bought a new one yet.

    I read online about a "clean reinstall" of firefox which seems to have worked! They should include direction on this on their page: https://support.mozilla.com/en-US/kb/Firefox+crashes+when+you+open+it

  • I keep getting an error when clicking a link in email if firefox is not already open

    If firefox in not open when I click a link in an email I get an error message. If firefox is already open it opens a new tab and works okay. After getting the error message it still opens firefox and goes to the link.

    The actual error was "There was a problem sending the command to the program". This was the message inside the error box. The error box also shows a message "https://support.mozilla.com/questions/887286#answer-2...". I cant read anymore and can't copy any of the links or message.

  • Acrobat Pro XI goes to trial mode and signing in fails when printing (in not Adobe programme)

    I'm from Finland and when I joined Creative Cloud, I soon found out that Creative Cloud signing in doesn't work in Finnish even though it is possible to install some programmes in Finnish. So I uninstalled everything and installed all the programmes that I am using in English (International). No problem with that.
    So I have also installed my Acrobat Pro XI in English and printing / exporting pdfs works fine as long as I am working within Adobe programmes (e.g. InDesign, PhotoShop, Illustrator). The programmes sometimes ask me to sign in but it works fine in English.
    However, when I am trying to print or convert content in pdfs via webbrowsers or MS Office programmes (I have them in Finnish), I get a "Adobe Acrobat XI trial mode expired" window in Finnish and I am asked to sign in. When I try to sign in (via "Finnish window" which I cannot change in English at this phase), signing in (= Creative Cloud activation) fails, and the programme asks me to give the registration number. And that I don't have as I am using the programme via Creative Cloud!
    I have uninstalled Acrobat Pro XI and installed it again and it did not have any effect.
    Do you have any solution to this problem? It is very frustrating that printing pdfs succeeds in Adobe programmes only, it shouldn't work like that. (I am using Adobe programmes (installed locally "from the packadge", not via Createve Cloud) at work and printing pdfs works fine there.

    Thank you for your reply. I tried this, unfortunately it didn't solve my problem.
    I found the correct keys from "HKEY_LOCAL_MACHINE" etc., however, I didn't find the subkey "current" below "Language". I had "UseMUI" and "next" instead. First I tried setting the default UseMUI value to "acrobat.dll". No effect, the same problem came when I tried to print a pdf file using MS Word programme. Then I erased "UseMUI" and created "current" instead and set the default value to "acrobat.dll". No effect but no harm either, it seems.
    My operating system is Windows 7 Professional and the language is Finnish. The Microsoft Office programmes that I am using are also Finnish versions. So I do understand that this problems is rooted in the language settings, however, I have no idea how to solve this... I won't change my operating systems in the near future, and I would like to keep on using the Finnish versions of Office programmes...
    Is there any other HKEY settings that should perhaps be changed in order to get rid of this problem? Acrobat Distiller settings perhaps? Adobe PDF Maker settings?

  • Help me-adobe flash player install box "run" or "saveas" will not pop open when I install or update

    I have windows vista 64. I already have flash player13 and reader x 10.1.9 but I can not get FLASH back.
    It wasn't working on youtube. So I tried to update it. Went to adobe and clicked the yellow button to check to see if I had adobe flash. It said I didn't have it installed. I then went to control panel and checked programs and IT WAS installed. So I deleted it. Then went back to adobe page and tried to re-install the newest flash player.
    Again. . . the dialogue box that normally pops up to choose;run or saveas Will not and Does not POP! I re-set my cpu 3 times during the process in order to get a clean go at it too.
    Anyway thanks for your help and let me know please.
    ps I figure this is something that may be fine in a week or two. But I still want to know wtf happened here and what did I do wrong.
    Thanks
    peace
    josh

    Flash Player for ActiveX (Internet Explorer)
    Save that. Close your browser and run it. Then, it'll be installed.
    Then, see: http://forums.adobe.com/thread/885448 and  http://forums.adobe.com/thread/867968

  • Adobe Reader 10.0.1 hangs when multiple PDF files are open, widespread problem, big issue

    I have read that quite a few people are having this problem. I have over 3,700 computers with a growing number that are reporting problems. Has anyone else figured out a solution?  Adobe needs to fix this!

    Does this offer any help? - see http://forums.adobe.com/message/3913446#3913446

  • Update item in list using rest api - failed when browsing in juniper session

    this issue is about browsing to an on premises sharepoint 2013 inside a LAN using Juniper session
    the user can see everything and can create new list items with rest api but
    cannot update existing items using the function below.
    we've got this function which we use to update list items in rest
    it works like a charm when browsing inside the LAN
    function updateListItem(itemIdentityField, itemIdentity, listName, siteUrl, item, success, failure) {
    getListItemWithId(itemIdentityField, itemIdentity, listName, siteUrl, function (data) {
    $.ajax({
    url: data.__metadata.uri,
    type: "POST",
    contentType: "application/json;odata=verbose",
    data: JSON.stringify(item),
    headers: {
    "Accept": "application/json;odata=verbose",
    "X-RequestDigest": $("#__REQUESTDIGEST").val(),
    "X-HTTP-Method": "MERGE",
    "If-Match": data.__metadata.etag
    success: function (data) { success(data, callBackIndex, null) },
    error: function (data) {
    getError(data);
    }, function (data) {
    failure(data);
    the error i get in ULS log is:
    Original error: Microsoft.SharePoint.Client.InvalidClientQueryException: The parameter __metadata does not exist in method GetItemByStringId.
    at Microsoft.SharePoint.Client.MethodInformation.GetParameter(String parameterName)
    at Microsoft.SharePoint.Client.ClientCallableEdmModelBuilder.CreateFunctionImportForMethodBodyParser(MethodInformation clientMethod, List`1 parameterNames, ProxyContext proxyContext)
    at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ParseParametersFromBody(MethodInformation methodInfo, Boolean allowPostBodyAccess, Boolean isLeafSegment, ClientValueCollection args)
    at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ParseParametersFromBodyOrQueryString(MethodInformation methodInfo, Boolean allowPostBodyAccess, Boolean isLeafSegment, ClientValueCollection args)
    at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.CreateMethodArgumentsUsingNamedParameters(MethodInformation methodInfo, IList`1 parameterList, Boolean isLeafSegment, Boolean allowPostBodyAccess)
    at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.InvokeMethod(Boolean mainRequestPath, Object value, ServerStub serverProxy, EdmParserNode node, Boolean resourceEndpoint, MethodInformation methodInfo, Boolean isExtensionMethod, Boolean isIndexerMethod)
    at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPathMember(Boolean mainRequestPath, String path, Object value, EdmParserNode node, Boolean resourceEndpoint, MethodInformation& methodInfo)
    at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPath(Boolean mainRequestPath, String path, String pathForErrorMessage)
    at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.Process()
    at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ProcessRequest()
    at Microsoft.SharePoint.Client.Rest.RestService.ProcessQuery(Stream inputStream, IList`1 pendingDisposableContainer)
    Any help?
    Somebody?
    Thanks

    Hi patrik
    Really appreciate your replying.
    Could you try and refer to the issues below:
     this error occurs even with site collection administrator (i tested it with three different
    users)
    there isnt any difference between items in list - all have same permissions
    it occurs in several lists in site (all lists have same permissions)
    if browsing inside the LAN everything works just fine
    updating from the UI works fine in all means
    It really seems like a Rest related problem(is there anyone from the Microsoft REST team who can take look at this error?)
    Thanks
    Hushay

  • File Adapter: Fixed length file read fails when all data not present

    Hi
    We have a BPEL process that reads fixed length data files. It works fine when all the data elements are available in the file but fails with 'rejected:10002' when even a single data is missing.
    How to handle this situation in BPEL file adapter?
    Are we doing something wrong or is this a normal functionality.
    If yes, then is there any work around for this as this is a very usual business condition which may occur, where all data elements are not mandetory.
    fixedLength
    ==========
    2,3,3,2
    Data - Successful
    ============
    1234567890
    2345678901
    3456789012
    Data - Failed
    ===========
    1234567890
    2345678901
    345678901
    Thanks in advance
    Buddhadev

    Hi Naveen,
          Do check the following things,
    >>Note : I have been asked to give the Transport Protocol as "NFS" (Whether this is the problem???) I have summarized the complete details below. Please help me
           1.If your file resides on your local network/local computer give NFS(Network file system). if your file resides on a FTP location give FTP and also give the FTP log on parameters.
    Additional Parameters
    File_MT.fieldFixedLengths 10,10,5
    File_MT.fieldNames VendorNumber,VendorName,City
    File_MT.fieldSeparator
    File_MT..processFieldNames fromConfiguration 
           2.If this structure does not match with the input file structure the file adapter wont pick up the file. So check for the help document provided by SAP in the following path.
    help.sap.com  --> Documentation  --> SAPNetWeaver --> SAPNetWeaver '04 --> English --> process integration --> SAP Exchange Infrastructure --> connectivity --> Adapters --> File Adapter
           Your file contains three records
    V123456789 A123456789 Bosto
    V234567890 B123456789 Atlan
    V334587900 C123456789 Austi
    You have mentioned the fieldSeperator as space but there is no File_MT.endSeparator '/n'  which differentiates between each and every row (record).
            Parameters for Record set Structures mentioned in the sender adapter configuration does not match with the actual file structure .
            Try giving exact structures in the configuration of sender file adapter.
    regards,
    Aravindh.

  • TS1574 I have a MacBook in which the in speaker mutes automatically for few seconds and the sound comes back. even when I am not playing any kind of video or audio the speaker icon on the on the dock shows the speaker muting and coming back. how can I res

    the speaker of my macbook mutes all at a sudden for few seconds automatically and comes back even the speaker icon which is on top right side of the computer also shows mute at this point. and when the volume of the speaker is pressed at this moment it shows locked symbol of the speaker. Kindly help how to resolve this. I am not sure but recently I did install leopard to upgrade my computer does this effect the problem with my speaker.

    This is all most unfortunate...from what I read in your post you have covered everything that can be done at your end....something is damaged on the Logic Board it sounds like...as to how much it would cost only the people that end repairing will know after it is diagnosed....take it in...tell them what you have found and tried so far...maybe that will help narrow down the problem...
    Good Luck....

  • Fixed assets depreciation run fails when profit center not belong to Dim 1

    Hi all,
    I face the below issue:
    - Fixed assets depreciation run summarized by distribution rule fails with error when profit center does not belong to Dimension 1.
    I have search teh SAP notes and found the same issue. It says:
    -> SAP Business One Fixed Assets Add-on only supports cost accounting for Dimension 1
    Anyone knows whether 8.8 PL 13 also same issue?
    Does SAP planned to rectify this?
    Thanks.

    Dear Wei Lan, Veron Liu
    As described in the note 1371619 this is a limitation/definition of the current product version:
    No other note has been published so far on this subject, so what it is said on that note, it remains valid in 8.8
    In order to push for a change in product definition we recomend to post this request in
    /community [original link is broken]
    Kind regards
    Jose Antonio Castillo
    SAP Buisness One Support

  • Invoice Print Selected Invoices program is failing when language is not US

    Hi All,
    I am trying to run "Invoice Print Selected Invoices" for multiple languages.
    When language in customer setup under "Account Site Information" is 'US' then EN-US: (Invoice Print Selected Invoices) is completing successfully.
    But when I am changing the language from US to some other language let’s say "F”, then "FR-FR: (Invoice Print Selected Invoices)" getting submitted and it is completing in error.
    These are the log messages which I am getting:-
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    p_order_by='TRX_NUMBER'
    p_customer_id='10044'
    p_open_invoice='N'
    p_check_for_taxyn='N'
    p_choice='SEL'
    p_header_pages='1'
    p_debug_flag='N'
    p_message_level='10'
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    FRENCH_FRANCE.AL32UTF8
    Entrer mot de passe :
    MSG-00100: DEBUG: AfterPForm_Trigger +
    MSG-00100: DEBUG: Multi Org established.
    MSG-00100: DEBUG: AfterParam_Procs.Get_Country_Details
    MSG-00100: DEBUG: AfterParam_Procs.Switch_On_Debug
    MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_Low
    MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_High
    MSG-00100: DEBUG: AfterParam_Procs.Get_Tax_Option
    MSG-00103: lp_trx_date_clause = and a.trx_date = a.trx_date
    MSG-00100: DEBUG: BeforeReport_Trigger.Build_Where_Clause
    MSG-00100: DEBUG: P_Choice: SEL
    MSG-00100: Oracle Error in call to Before Report Trigger -6502
    REP-1419: 'afterpform': Abandon du programme PL/SQL.
    Report Builder: Release 10.1.2.3.0 - Production on Ma Avr 2 05:59:27 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Can anyone please tell me what is the problem or is there any mistake in my approach?
    Regards
    Akash

    Please see the following docs.
    R12: Invoice Print Errors With REP-0069, REP-57054, REP-1419 [ID 557171.1]
    Invoice Print Error: Printing Selected Invoices (Multiple Languages) Is Erroring Out With REP-0069: Internal error [ID 731171.1]
    Thanks,
    Hussein

  • Why does the DLL function executed by call library node fail when the Vi is re-opened?

    Development System
    OS: Windows XP
    LabVIEW: version 10.0
    DLL: Custom 
    Compiler: Visual C++ 6.0
    Function Prototype: __declspec(dllexport) const char * test(void)
    We have developed a DLL for use.  The DLL compiles cleanly.  The DLL includes a function test.  The test function validates the functional capabilities of the DLL.  I have followed the examples online, and I have used the import shared library tool in LabVIEW.  The VIs created use the call library node. 
    When I create a VI calling the test function from the custom DLL using the call library node the VI executes the DLL function test flawlessly.  I close the VI.  When I re-open the VI and run it, I get an error code from the DLL.  However, if I go to the block diagram and set the path for the DLL in the configure call library node again then the VI executes the DLL function test flawlessly again. 
    I have to set the path for the DLL in the configure call library node every time I open the VI.  The examples I downloaded from the community do not require this.  What might the DLL be missing?  What am I missing? 
    Solved!
    Go to Solution.

    I think it was rather unfair of me to ask for help with my DLL issue without disclosing more detailed information.  As a corrective action, I have attached a zipped file.  The zipped file contains the entire VC++ 6.0 project for compiling the DLL, the DLL, and the VI I have been using to test it. 
    ###NOTE####
     As a prerequisite to compilation and usage of the DLL you'll need to have installed Python 26 on your system.   
    You may obtain the MSI for correct version of Python from the following location:
    http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi
    ###NOTE###
    Thank you very kindly for any assistance offered!
    Thanks,
    Bill
    Attachments:
    C_DLL_PYTHON_AND_LABVIEW2010.zip ‏1685 KB

  • I have league of legends music running in the background when 1. did not even open the application, and 2. i deleted the application long ago. Can someone help me fix this so it doesn't bug me!!

    For the last two months, when i am working some league of legends music (i think it is) pops up in the background and the only way i can turn it off is by restarting the computer. It is driving me nuts. Why does it do this when i've deleted the application ages ago and how do i fix my computer?

    Please help me people, im a dumb uni student after all!

Maybe you are looking for

  • I am getting the error while creating the JCO connection -Urgent

    Hi iam gettng the following error. Can any body identify what will be the error. com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM  TYPE=B MSHOST=buzzard GROUP=SPACE R3NAME=MT4 MSSERV=sapmsM

  • F-28 Line Layout option

    Hi Gurus I am encountering a case where one user is not able to see a field in line layout. User donot have access to change the layout anf configuration has already been checked that field is set for that layout. I understand that line layout is not

  • How to change content of audio region

    Dear Logic Pro Discussion Is there any way you can swap the audio file in a region with that of another one but keeping the audio start position, for example if you had two or three takes that you wanted to choose from but keeping the audio on the sa

  • Adding my own html

    Hi, I wanted to add background music and other stuff on my page. I know how to do this using raw html but there doesn't seem to be an option to insert some html into the site. Am i missing something. Mark.

  • Apex 4 -- Standard, Alternating Row Colors row highlight broken

    template: 14. Standard, Alternating Row Colors in apex 4.0 appears to have it mouse-over row highlight colors reversed (except for the first row, which is not highlighted) when first displayed, the rows are displayed white/gray/white... mousing over