System Events not working correctly with Acrobat Professional

Hey Guys, I have a script that I have written that automatically enables security settings on a PDF through Acrobat Professional. Because of Acrobats poor scriptability I am forced into doing much though System Events.
This is not a major problem... however when activating some settings in the security settings, often warning Alert dialog boxes appear when you tell System Events to enable particular settings. These Alerts do not have a title... The only way I have been able to get the script to deal with them is with the following code:
if title of front window is "" then
    tell front window
        click button "OK"
    end tell
end if
I guess this is an ok solution... bit hard to identify windows when they don't have titles...
BUT this is not my main problem. The main problem is that the script gets to one of these alert dialog boxes and just sits there... It sits there for like 10 seconds and then it performs the "click button "OK"" command.
This is a problem as there are like 3 of these instances and it really adds up. Can anybody help me... I am using Acrobat Professional 8.2.0 and the entire code is:
tell application "System Events"
    try
        tell process "Acrobat"
            -- Enable security settings
            click menu item "Properties..." of menu "File" of menu bar item "File" of menu bar 1
            tell window "Document Properties"
                tell tab group 1
                    click radio button "Security"
                    tell group "Document Security"
                        click pop up button 1
                        click menu item 2 of menu 1 of pop up button 1
                    end tell
                end tell
            end tell
            tell window "Password Security - Settings"
                click pop up button 1
                click menu item 4 of menu 1 of pop up button 1
                tell group "Permissions"
                    click checkbox "Restrict editing and printing of the document. A password will be required in order to change these permission settings."
                    click text field 1
                    keystroke pdfPassword
                    click pop up button 1
                    click menu item 2 of menu 1 of pop up button 1
                    click pop up button 2
                    click menu item 4 of menu 1 of pop up button 2
                end tell
                click button "OK"
            end tell
            if title of front window is "" then
                tell front window
                    click checkbox 1
                    click button "OK"
                end tell
            end if
            tell window "Adobe Acrobat - Confirm Permissions Password"
                click text field 1
                keystroke pdfPassword
                click button "OK"
            end tell
            if title of front window is "" then
                tell front window
                    click checkbox 1
                    click button "OK"
                end tell
            end if
            tell window "Document Properties"
                click button "OK"
            end tell
end tell
    on error
        display alert "System Events was unable to Enable Commenting. This may be because Acrobat has modified its menu system. Please contact your system administrator."
    end try
end tell
A delay does not work... its like as soon as I click the "OK" button it stalls for 10 seconds or does not know that is meant to continue... because I did this:
tell window "Password Security - Settings"
    click button "OK"
end tell
beep
In this situation it still takes like 10 seconds for the beep to occur after the click button "OK" command.

Hey Guys, I have a script that I have written that automatically enables security settings on a PDF through Acrobat Professional. Because of Acrobats poor scriptability I am forced into doing much though System Events.
This is not a major problem... however when activating some settings in the security settings, often warning Alert dialog boxes appear when you tell System Events to enable particular settings. These Alerts do not have a title... The only way I have been able to get the script to deal with them is with the following code:
if title of front window is "" then
    tell front window
        click button "OK"
    end tell
end if
I guess this is an ok solution... bit hard to identify windows when they don't have titles...
BUT this is not my main problem. The main problem is that the script gets to one of these alert dialog boxes and just sits there... It sits there for like 10 seconds and then it performs the "click button "OK"" command.
This is a problem as there are like 3 of these instances and it really adds up. Can anybody help me... I am using Acrobat Professional 8.2.0 and the entire code is:
tell application "System Events"
    try
        tell process "Acrobat"
            -- Enable security settings
            click menu item "Properties..." of menu "File" of menu bar item "File" of menu bar 1
            tell window "Document Properties"
                tell tab group 1
                    click radio button "Security"
                    tell group "Document Security"
                        click pop up button 1
                        click menu item 2 of menu 1 of pop up button 1
                    end tell
                end tell
            end tell
            tell window "Password Security - Settings"
                click pop up button 1
                click menu item 4 of menu 1 of pop up button 1
                tell group "Permissions"
                    click checkbox "Restrict editing and printing of the document. A password will be required in order to change these permission settings."
                    click text field 1
                    keystroke pdfPassword
                    click pop up button 1
                    click menu item 2 of menu 1 of pop up button 1
                    click pop up button 2
                    click menu item 4 of menu 1 of pop up button 2
                end tell
                click button "OK"
            end tell
            if title of front window is "" then
                tell front window
                    click checkbox 1
                    click button "OK"
                end tell
            end if
            tell window "Adobe Acrobat - Confirm Permissions Password"
                click text field 1
                keystroke pdfPassword
                click button "OK"
            end tell
            if title of front window is "" then
                tell front window
                    click checkbox 1
                    click button "OK"
                end tell
            end if
            tell window "Document Properties"
                click button "OK"
            end tell
end tell
    on error
        display alert "System Events was unable to Enable Commenting. This may be because Acrobat has modified its menu system. Please contact your system administrator."
    end try
end tell
A delay does not work... its like as soon as I click the "OK" button it stalls for 10 seconds or does not know that is meant to continue... because I did this:
tell window "Password Security - Settings"
    click button "OK"
end tell
beep
In this situation it still takes like 10 seconds for the beep to occur after the click button "OK" command.

Similar Messages

  • System Update not working correctly

    Hi forum,
    System Update (Version 4.00.0024) is not working correctly on my T500 with Windows 7.
    1: Not detecting old versions
    SU is not detecting, that there is an old version of Access Connection (5.42) installed although there is a new version 5.50 avaliable. I had to do a manual update.
    2: Not installing a suggested update
    Each time I run SU, I get a suggested update for "Fix for Issue of HDD with HDP Detection for Windows Vista/7". After downloading there comes a meaningless message "package was not installed" (Paket wurde nicht installiert). No hint for any error.
    3: Some drivers (e.g. for the ultranav) have not been downloaded at all - I had to test the functions of some hardware components and download the appropriate drivers manually in case of malfuncion.
    Probably there is a solution known within the forum community, at least this should be a message to lenovo (I received no response from the help desk when reporting this finding).
    Regards
    AH_DE

    Dear Herik,
    thanks for your answer.
    I checked the log  file and found thousands of entries. Here are the lines related to "Fix for ...".
    Info    2010-02-03 , 08:40:37
              bei Tvsu.Gui.CustomComponents.UpdatePanel.SynchronizeBoxPackage(Object sender, EventArgs args)
              Message: Selected to install: Fix for Issue of HDD with HDP Detection for Windows Vista/7, with
    Info    2010-02-03 , 08:40:43
              bei Tvsu.Coreq.LoadCoreqsProcessor.ProcessUpdatesImplementation(Update[] ups)
              Message: Candidate list:
    Fix for Issue of HDD with HDP Detection for Windows Vista/7[reboot type 3]
    Info    2010-02-03 , 08:40:57
              bei Tvsu.GenericPackageInstaller.GenericPackageInstaller.ExtractFiles(String extractCommand)
              Message: osfq03ww.exe -s -ex -fC:\SWTOOLS\OSFIXES Extract command was executed sucessfully in Fix for Issue of HDD with HDP Detection for Windows Vista/7 update
    Info    2010-02-03 , 08:40:57
              bei Tvsu.GenericPackageInstaller.CmdInstaller.InstallUpdate()
              Message: Update Fix for Issue of HDD with HDP Detection for Windows Vista/7 is being install using Windows Service
    Info    2010-02-03 , 08:40:57
              bei Tvsu.Engine.Process.PackageInstallerProcess.InstallNewUpdates()
              Message: Update Fix for Issue of HDD with HDP Detection for Windows Vista/7 installation failed
    ADDITIONAL ENTRIES 
    Info    2010-02-03 , 08:40:57
              bei Tvsu.Gui.FlowScreens.Results.AdjustComponent()
              Message: System updated:
              Installed=0
              Not Installed=Tvsu.Beans.Update[]
              Deferred=0
              Download Failed=0
              Hidden=0
    Severe          2010-02-03 , 08:41:17
              bei Tvsu.Sdk.SuSdk.ShutDownApplication()
              Message: Has happened an exception while the UNCAuthenticator.Shutdown() was executedShare name can not be null or empty
    Since I'm a normal user only, I can't interprete this information. Do you know what to do?
    Kind Regards
    AH_DE

  • IPhoto events not syncing correctly with iPhone

    Hello,
    Basically, my iPhoto events are not syncing correctly with my iPhone. Some events will sync, whereas others won't, though no error messages are ever displayed.
    I have all my photos, 961 photos in 34 events, organised in iPhoto, however iTunes doesn't seem to recognise all of these events, only reporting 881 photos. I've got iTunes set up to "Sync photos from iPhoto - All events" and this works for most events, but not all.
    On my iPhone, I can tell which events are missing, but no matter how many times I restart my Mac or sync my iPhone, it refuses to sync the few missing albums. There is over 4Gb of available space left on the iPhone, so this shouldn't be an issue.
    Many thanks in advance.
    Peter.

    Any ideas, please? I hope I explained my issue clearly enough.
    Thank you,
    Peter.

  • Is prompted filter not working correctly with calculated items

    Hello,
    I am working on OBIEE 11.1.1.3 and having problem problem linking 2 analisys with action link
    The test case is:
    I have 2 attribute columns on a dimension
    1. Conto 1 Code
    2. Conto 1 Dsc (in RPD i set up the property Descritor ID of -> Conto 1 Code)
    3. Conto 2 Code
    4. Conto 2 Dsc (in RPD i set up the property Descritor ID of -> Conto 2 Code)
    5. Conto Detail
    and 1 measure on the fact table
    1. Revenue (defined on RPD as simple sum)
    On presentation layer i have the analisys:
    1.
    The First one using as Criteria: Conto 1 Dsc | Conto 2 Dsc | Revenue
    The layout is a table with sub-total on Conto 1 Dsc
    On Revenue i created an action link to the second analisys containing
    2.
    Criteria: Conto 1 Dsc | Conto 2 Dsc | Conto Detail | Revenue
    Filters: Conto 1 Code (is prompted) | Conto 2 Code (is prompted)
    This pair of analisys are working fine.
    Then i created a second pair of analisys as:
    1.
    Criteria: Conto 2 Dsc | Revenue
    Using Calculated group \ Items i created a numerous set of sub-totals
    On Revenue i created an action link to the second analisys containing
    2.
    Criteria: Conto 2 Dsc | Conto Detail | Revenue
    Filters: Conto 2 Code (is prompted)
    This pair of analisys are not working correctly. When i drill from first analisys to second one the Conto 2 Code filter is not used.
    Replacing in the second analisys Conto 2 Code (is prompted) with Conto 2 Dsc (is prompted) a filter is being generated on the drill but it's using the Conto 2 Code value and the analisys ends with no results.
    Thanks,
    Jonni

    Try adding Conto 2 code to the first analysis and keep the filter on the second analysis as Conto 2 code is prompted.
    -Amith.

  • Why is my Microsoft Word document not working correctly with Pages

    I have created a new CV (Resume) in Microsoft Word on my work computer, it is using the latest version of Office. When I attempted to open the document in Pages on my home Mac, the formatting was slightly incorrect, but the main issue is it is missing two pages! The exact same document when opened in Word has three pages but in Pages, it only has one! I have had nothing but problems with Pages since I bought it! Can someone please help me get Pages to work correctly with my documents that are created in Word! Than you.

    Pages does not allow a single cell in a table to span more than a page and there may be other problems that you also have not told us about.
    Redo your CV using the excellent Pages templates, Word's templates are Uuuugly!
    Being text based, with good typographical layout, those Pages templates should translate accurately back and forth from Pages to Word.
    Frankly CVs don't require anything fancy. You could do an excellent, well laid out and very attractive CV in TextEdit which is no slouch in the word processing department.
    Peter
    PS Start off by saving your Word CV to .rtf or .txt which will strip off most of the bad formatting. Then reopen it in Pages or drag in the snippets of text into a Pages CV template's placeholders to automatically format the text nicely.

  • ExportAsFDF is not working properly on Acrobat Professional 8

    Hi,
    I am working on Acrobat Professional 8 to export FDF using vb.net. FDF export by manually is working proper but from script its giving me below FDF file:
    %FDF-1.2
    %âãÏÓ
    1 0 obj
    <</FDF<</ID[<D112096744983A4F942778C9714C68BB><18355F3D06AAA94DA58E6A87990B91AA>]/UF(/D/Te st.pdf)/F(/D/Test.pdf)>>>>
    endobj
    trailer
    <</Root 1 0 R>>
    %%EOF
    There are 8 annotations in my file but not a single annotation is captured.
    I used below code for FDF export:
               Dim SamplePDFFilePath As String = "D:/Test.pdf"
                Dim AcroApp As New Acrobat.AcroApp
                Dim AcroAVDoc As New Acrobat.AcroAVDoc
                Dim AcroPDDoc As Acrobat.AcroPDDoc
                Dim lRet As Long
                lRet = AcroApp.Show
                lRet = AcroAVDoc.Open(SamplePDFFilePath, "")
                AcroPDDoc = AcroAVDoc.GetPDDoc
                Dim pN As Integer = AcroPDDoc.GetNumPages()
                Dim jso As Object
                jso = AcroPDDoc.GetJSObject
                jso.exportAsFDF(True, "D:/test.fdf")
    Please help me to export proper FDF file.

    Acrobat 8 is long ago forgotten and unsupported by Adobe, but what you write looks correct for when you specify bAllFields as true and do not specify bAnnotations, which defaults to false.

  • LR 2.1 & 2.0 ~ DRAG & DROP not working correctly with  photos when moving, applying keywords

    Today this issue started, originally in 2.0, updated to 2.1 and issue continues.
    Issue: DRAG & DROP feature with mouse (or pad on laptop) will select multiple photos, (with CTRL & SHIFT key as typical with Windows machines)but when I try to move them to a different folder, or drop them onto a keyword, it will not work.
    Specifically, I select two photos to move to a different folder, the selection work, but when I try to "grab" the selected photos, Lightroom defaults to One Photo, and it will not grab it to move it. However, I can "right click" on the intended folder and can select "move selected photos to folder" and that works. This issue also applys to assigning keywords, and I would assume other similiar actions. I should note, that I can "rotate", assign "labels", "stars", and Keywords from Keyword sets, it just happens with the "Drag & Drop" feature.
    Help
    The feature works correctly in other Windows programs, so I'm sure it's related to Lightroom and not the mouse.
    I have a Windows Vista machine, 3GB RAM 160GB HD, ~ 75% free space, AMD Turion X2 Dual Core 70 Processor. Everything has worked fine up until this morning.
    Prior to upgrading to 2.1, I optimized my Catalogue. Everything seems to work fine except this feature.
    Help

    Drag by the actual image area of the thumbnail, not the surrounding 'fake slide' cell.
    That's a feature of Lightroom's grid view. Clicking on image area of thumbnail keeps the multiple selection and makes the image clicked the primary select. Clicking on the outer thumbnail area deselects all but the active image.

  • System restore not working, even with recovery disks

    I have a Touchsmart Tx2 1020us. I want to completely restore it to factory settings.
    when i use the recovery manager it pops up saying that there isn't a recovery partition and to insert disk #1. i bought the recovery disk set from HP and put disk 1 in. it then says to click on next. when i click on next the computer just shuts itself down. it never restarts, just turns itself off. 
    i also tried using the "press f11 repeatedly at startup" method. after pressing f11 a ton of times my computer just begins this shrill beeping sound and will not stop until you stop pressing f11. 
    so basically i've tried every method on this page :http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&docname=c00809678#N554    with absolutely no results. 
    any ideas on how to get this stupid system restore to work? 

    Hi,
    Since you deleted your recovery partitions and your recovery disk set has issues you will need to purchase a set of recovery disks from HP or from an HP Partner. the cost is around $25.00 USD.
    It is unfortunate, but when you deleted the recovery partitions you limited the options that were previously available to you.
    Nonexistance or modification of the recovery partition is the reason that neither F11 from startup nor Recovery Manager from within Windows does not work. 
    Best regards,
    erico
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Bapi_document_create2 does not work correctly with attached file.

    Hi all.
    I hava a problem with bapi. I programmed below.
            ls_docdata-documenttype = 'BBS'.
            ls_docdata-description  = 'JJW test'.
            ls_file-documenttype = 'BBS'.
            ls_file-ORIGINALTYPE = 1.
            ls_file-storagecategory = 'ZSTW_KPRO'.
            ls_file-wsapplication = 'TXT'.
            ls_file-docfile = entity_filename.
            append ls_file to lt_files.
            CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
              EXPORTING
                documentdata       = ls_docdata
                PF_FTP_DEST = 'SAPFTP'
                PF_HTTP_DEST = 'SAPHTTP'
              IMPORTING
                documenttype               =      lv_documenttype
                documentnumber           =     lv_documentnumber
                documentpart                =     lv_documentpart
                documentversion           =     lv_documentversion
                return                           =     ls_return
              tables
                documentfiles     = lt_files.
            call function 'BAPI_TRANSACTION_COMMIT'.
    If I don't attach the file, DIR is created but if attach some files, it does not work. What should I do??
    regards.

    Hi,
    You can use the below to attach the file from BSP to SAP. But it doesnt use the BAPI - 'BAPI_DOCUMENT_CREATE2'. It works perfectly for me. Let me know if you have any questions.
    Note: This code put the file into SAP Directory "/userapps/master_data/" as well as it upload the file into Transaction WTY since i am using Business object:BUS2222. You may need to modify the Business object if you ahve the one, otherwise you can just put it into SAP DIR.
    FUNCTION ZATTACH_CREATE.
    *"*"Update function module:
    *"*"Local interface:
    *"  IMPORTING
    *"     VALUE(FILE) TYPE  SAPB-SAPFILES
    *"     VALUE(STR_FILE_CONTENT) TYPE  XSTRING
    *"     VALUE(OBJECT_KEY) TYPE  BAPIBDS01-OBJKEY
      DATA: LOGICAL_SYSTEM TYPE BAPIBDS01-LOG_SYSTEM,
            CLASSNAME TYPE  BAPIBDS01-CLASSNAME,
            CLASSTYPE TYPE  BAPIBDS01-CLASSTYPE.
      DATA:  IT_FILES TYPE TABLE OF  BAPIFILES,
            IT_SIGNATURE TYPE TABLE OF  BAPISIGNAT,
       FILES TYPE  BAPIFILES,
      SIGNATURE TYPE   BAPISIGNAT.
      DATA: I_TOADD TYPE TOADD,
            FILENAME_ALL TYPE SAPB-SAPFILES,
            FILE_PATH TYPE SAPB-SAPFILES,
            FILE_PATH_MEMORY(250) TYPE C,  " path für SAP memory
            FILE_PATH_LENGTH TYPE I,       " length of the file_path
           FILE_CONTENT_LENGTH TYPE I,       " length of the file_CONTENT
           FILE_NAME TYPE SAPB-SAPFILES,
            FILE_EXTENSION TYPE TOADD-DOC_TYPE.     " file-extension.
      DATA: I_FILE_CONTENT TYPE TABLE OF BAPICONTEN.
      DATA: WA_FILE_CONTENT TYPE  BAPICONTEN,
       STRING_CONTENT TYPE STRING,
       STRING_CONTENT1 TYPE STRING.
      DATA:
       I_FILES TYPE TABLE OF BAPIFILES ,
            I_SIGNATURE TYPE TABLE OF BAPISIGNAT ,
            I_COMPONENTS TYPE TABLE OF BAPICOMPON ,
           COMPONENTS TYPE BAPICOMPON ,
            I_PROPERTIES TYPE TABLE OF SDOKPROPTY ,
            I_PROPERTIES2 TYPE TABLE OF BAPIPROPER ,
            I_PROPERTIES_DEL TYPE TABLE OF BAPIDPROPT ,
           MIMETYPE TYPE TOADD-MIMETYPE,
      COMPID TYPE BAPICOMPON-COMP_ID,  " compid for popup
            COMPID_FLAG(1) TYPE C,           " compid can't be changed
            MODIFY_FLAG(1) TYPE C,           " document is modified
            ATTRI_FLAG(1) TYPE C,            " attri can't be changed
            TITLE_FLAG(1) TYPE C,            " titel of the popup
            CANCEL_FLAG(1) TYPE C,           " cancel button Yes/No
            BUTTON_TEXT(10) TYPE C,
            INFO_TEXT(100) TYPE C,
      VERSION_NR TYPE BDN_CON-DOC_VER_NO,     " version_nr for popup
            VERSION_LANGU2 TYPE T002T-SPTXT, " language field in POPUP
            VERSION_LANGU TYPE BDN_CON-LANGU," SPRAS language field
            TITLE_TEXT(100) TYPE C,          " title of the popup
            DESCRIPTION TYPE BDN_CON-DESCRIPT.      " descr. for popup
    *FILENAME_ALL = fileUpload_event->file_name.
    * Transfering into SAP File server.
      FILE_CONTENT_LENGTH = XSTRLEN( STR_FILE_CONTENT ).
      FILENAME_ALL = FILE .
      STRING_CONTENT = STR_FILE_CONTENT.
      DATA: OUT_LINES TYPE TABLE OF XSTRING.
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER                = STR_FILE_CONTENT
    *   APPEND_TO_TABLE       = ' '
    * IMPORTING
    *   OUTPUT_LENGTH         =
        TABLES
          BINARY_TAB            = I_FILE_CONTENT.
      DELETE DATASET '/userapps/master_data/claim1.txt'.
      OPEN DATASET '/userapps/master_data/claim1.txt' FOR APPENDING
        IN TEXT MODE ENCODING DEFAULT.
    *  LOOP AT I_FILE_CONTENT INTO WA_FILE_CONTENT.
    *    TRANSFER STR_FILE_CONTENT TO '/userapps/master_data/claim1.txt'.
      TRANSFER STRING_CONTENT TO '/userapps/master_data/claim1.txt'.
    *  ENDLOOP.
      CLOSE DATASET '/userapps/master_data/claim1.txt'.
      OPEN DATASET '/userapps/master_data/claim1.txt' FOR INPUT
           IN TEXT MODE ENCODING DEFAULT.
      READ DATASET '/userapps/master_data/claim1.txt'  into STRING_CONTENT1.
    * -- split filename                                                 -- *
        DATA: LENGTH TYPE I.
      DATA: PATH2(1200).  " LIKE sapb-sapfiles.
      DATA: L_FILE(1200),
            L_DIR(1200),
            L_DELIMITER        TYPE C,
            L_OFFSET           TYPE I,
            L_BYTES            TYPE I,
            L_DELIMITER_OFFSET TYPE I,
            L_DELIMITER_BYTES  TYPE I,
            L_CHAR             TYPE C,
            L_PREVIOUS_CHAR    TYPE C,
            L_LAST_CHAR        TYPE C.
      PATH2 = FILENAME_ALL.
      LENGTH = STRLEN( PATH2 ).
      L_OFFSET = 0.
      WHILE L_OFFSET < LENGTH.
        L_LAST_CHAR = L_CHAR. "remember last character
        L_BYTES = CHARLEN( PATH2+L_OFFSET ).
        L_CHAR = PATH2+L_OFFSET(L_BYTES). "get current character
        IF L_CHAR = '/' OR L_CHAR = '' OR L_CHAR = ':'.
          IF L_DELIMITER IS INITIAL OR L_DELIMITER = ':'.
            "Typically we deal with absolute paths, so the first
            "delimiter is best. This allows for UNIX paths with
            "'' in the directory or file name
            L_DELIMITER = L_CHAR.
          ENDIF.
          IF L_CHAR = L_DELIMITER.
            L_DELIMITER_OFFSET = L_OFFSET.
            L_DELIMITER_BYTES = L_BYTES.
            "remember character in front of delimiter:
            L_PREVIOUS_CHAR = L_LAST_CHAR.
          ENDIF.
        ENDIF.
        L_OFFSET = L_OFFSET + L_BYTES.
      ENDWHILE.
      IF NOT L_DELIMITER IS INITIAL.
        L_OFFSET = L_DELIMITER_OFFSET + L_DELIMITER_BYTES.
        L_FILE = PATH2+L_OFFSET.
        IF L_PREVIOUS_CHAR = ':' OR L_DELIMITER = ':'.
          "path ends with or after drive identifer, include the delimiter
          L_DIR = PATH2(L_OFFSET).
        ELSEIF NOT L_DELIMITER_OFFSET IS INITIAL.
          "do not include a trailing delimiter for compatibility reasons
          L_DIR = PATH2(L_DELIMITER_OFFSET).
        ELSE.
          CLEAR L_DIR.
        ENDIF.
      ELSE.
        L_DIR = SPACE.
        L_FILE = PATH2.
      ENDIF.
      FILE_PATH = L_DIR.
      FILE_NAME = L_FILE.
    * -- set new file_path to SAP memory                                -- *
      FILE_PATH_LENGTH = STRLEN( FILE_PATH ).
      IF FILE_PATH <> SPACE AND FILE_PATH_LENGTH < 250.
        FILE_PATH_MEMORY = FILE_PATH.
        SET PARAMETER ID 'OAP' FIELD FILE_PATH_MEMORY.
      ELSE.
        FILE_PATH_MEMORY = SPACE.
        SET PARAMETER ID 'OAP' FIELD FILE_PATH_MEMORY.
      ENDIF.
    * -- data declaration ------------------------------------------------ *
      DATA:
            SINGLE_C TYPE C.
      CLEAR: SINGLE_C.
      LENGTH = STRLEN( FILE_NAME ).
      IF LENGTH > 0.
        WHILE LENGTH > 0.
          SINGLE_C = FILE_NAME+LENGTH(1).
          IF SINGLE_C CO '.'.
            LENGTH = LENGTH + 1.
            EXIT.
          ELSE.
            LENGTH = LENGTH - 1.
          ENDIF.
        ENDWHILE.
        IF LENGTH > 0.
          FILE_EXTENSION = FILE_NAME+LENGTH.
        ELSE.
          FILE_EXTENSION = SPACE.
        ENDIF.
      ELSE.
        FILE_EXTENSION = SPACE.
      ENDIF.
      IF FILE_EXTENSION <> SPACE.
        SET LOCALE LANGUAGE SY-LANGU.
        TRANSLATE FILE_EXTENSION TO UPPER CASE.              "#EC TRANSLANG
        SET LOCALE LANGUAGE SPACE.
      ENDIF.
    * TR001++
      DATA: I_TOADV TYPE TABLE OF TOADV.
      DATA: WA_TOADV TYPE TOADV.
      DATA: OBJECT TYPE SAEOBJART.
      SELECT * FROM TOADV INTO CORRESPONDING FIELDS OF TABLE
              I_TOADV WHERE STANDARD = 'X'.
      DELETE I_TOADV WHERE AR_OBJECT CS 'BDS' OR AR_OBJECT CS 'ZSEST'.
      READ TABLE I_TOADV INTO WA_TOADV WITH KEY DOC_TYPE = FILE_EXTENSION.
    * -- get name and description for the document                      -- *
      CLEAR: COMPID,
             DESCRIPTION,
             VERSION_NR,
             MODIFY_FLAG,
             COMPID_FLAG,
             ATTRI_FLAG,
             TITLE_FLAG.
      COMPID_FLAG    = ' '.              " -> compid can't be changed
      MODIFY_FLAG    = 'S'.              " -> popup in save modus
      ATTRI_FLAG     = 'X'.              " -> attri's can be changed
      COMPID         = FILE_NAME.
      VERSION_NR     = '00000001'.
      VERSION_LANGU2 = SY-LANGU.
      TITLE_FLAG     = '1'.              " -> BDN
    * -- get the mimetype of the docuclass                              -- *
    *PERFORM MIMETYPE_GET(OAALL) USING FILE_EXTENSION
    *                            CHANGING I_TOADD.
      DATA: I_DOCUMENTCLASS TYPE TOADD-DOC_TYPE.
      MOVE FILE_EXTENSION TO I_DOCUMENTCLASS.
      SET LOCALE LANGUAGE SY-LANGU.
      TRANSLATE I_DOCUMENTCLASS TO UPPER CASE.               "#EC TRANSLANG
      SET LOCALE LANGUAGE SPACE.
      SELECT SINGLE * FROM TOADD INTO I_TOADD WHERE
                                 DOC_TYPE EQ I_DOCUMENTCLASS.
      IF SY-SUBRC NE 0.                    " nothing found -> default!
        I_TOADD-DOC_TYPE = I_DOCUMENTCLASS.
        I_TOADD-MIMETYPE = 'application/x-docType'.             "#EC NOTEXT
      ENDIF.
      MOVE I_TOADD-MIMETYPE TO MIMETYPE.
    * -- fill file and signature structure                              -- *
      CLEAR: I_FILES, I_SIGNATURE.
      REFRESH : I_FILES, I_SIGNATURE.
      DESCRIPTION = FILE_NAME.
      FILES-DOC_COUNT = 1.
      FILES-DIRECTORY = FILE_PATH.
      FILES-FILENAME  = FILE_NAME.
      FILES-MIMETYPE  = MIMETYPE.
      APPEND FILES TO I_FILES.
    * -- fill components and signature structure                        -- *
      COMPONENTS-DOC_COUNT  = 1.
      COMPONENTS-COMP_COUNT = 1.
      COMPONENTS-MIMETYPE   = MIMETYPE.
      COMPONENTS-COMP_ID         = FILE_NAME.
      APPEND COMPONENTS TO I_COMPONENTS.
      SIGNATURE-DOC_COUNT  = 1.
      SIGNATURE-PROP_NAME  = 'BDS_DOCUMENTCLASS'.
      SIGNATURE-PROP_VALUE = FILE_EXTENSION.
      APPEND SIGNATURE TO I_SIGNATURE.
      SIGNATURE-PROP_NAME = 'BDS_CONTREP'.
    *IF BDS_DOCTYPE_LIST-CONTREP = SPACE.
      SIGNATURE-PROP_VALUE = ' '.                               "#EC NOTEXT
    *ELSE.
    *  I_SIGNATURE-PROP_VALUE = BDS_DOCTYPE_LIST-CONTREP.
    *ENDIF.
      APPEND SIGNATURE TO I_SIGNATURE.
      SIGNATURE-PROP_NAME  = 'BDS_DOCUMENTTYPE'.
      SIGNATURE-PROP_VALUE = WA_TOADV-AR_OBJECT. "'ZSRVCXLS'."TR001+
      APPEND SIGNATURE TO I_SIGNATURE.
      SIGNATURE-PROP_NAME  = 'DESCRIPTION'.
      SIGNATURE-PROP_VALUE = DESCRIPTION.
      APPEND SIGNATURE TO I_SIGNATURE.
      SIGNATURE-PROP_NAME  = 'LANGUAGE'.
      SIGNATURE-PROP_VALUE = VERSION_LANGU.
      APPEND SIGNATURE TO I_SIGNATURE.
      CALL FUNCTION 'BDS_BUSINESSDOCUMENT_CREA_TAB'
        EXPORTING
    *   LOGICAL_SYSTEM        =
          CLASSNAME             = 'BUS2222' "classname_select
          CLASSTYPE             = 'BO'" classtype_select
        CLIENT                = SY-MANDT
          OBJECT_KEY            = OBJECT_KEY
        BINARY_FLAG           = 'X'
    * IMPORTING
    *   OBJECT_KEY            =
        TABLES
          SIGNATURE             = I_SIGNATURE
          COMPONENTS            = I_COMPONENTS
        CONTENT               = I_FILE_CONTENT
    *   ASCII_CONTENT         =
    * EXCEPTIONS
    *   NOTHING_FOUND         = 1
    *   PARAMETER_ERROR       = 2
    *   NOT_ALLOWED           = 3
    *   ERROR_KPRO            = 4
    *   INTERNAL_ERROR        = 5
    *   NOT_AUTHORIZED        = 6
    *   OTHERS                = 7
      COMMIT WORK AND WAIT.
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFUNCTION.
    Message was edited by:
            Raja T

  • Bluetooth does not work correctly with Siemens Tek Connect headphone device

    I hopefully tried the new bluetooth support in OS 3.0, but it does not work with my Siemens Tek Connect headphone device. It syncs as expected, but no sound is heard. I can choose the Tek Connect in the music app and other programs, my headphone (actually my two hearing aids, which are connected wireless with ear to ear communications (e2e) via the Tek Connect necklace device) signals the connection to me (a beep), but nothing is heard. Codec problem?
    Andreas

    I own Phonak hearing aids with their Bluetooth-capable iCom device which allows my aids to be used as a phone headset and also supports the A2DP stereo bluetooth profile. My iPod Touch 2Gen 32GB is able to play to my hearing aids properly.
    One thing I noticed is that the iPod does not allow you to control the volume when using Bluetooth. It expects the headphones to be able to control the volume. Have you used your hearing aids as Bluetooth headphones on any other device? Maybe the device isn't programmed properly to set the volume while in headphones mode. I know my audiologist had to program the volume on each mode separately on my device.
    My MacBook Pro is able to play music over Bluetooth to my hearing aids fine. But I have never gotten Windows to work properly sending audio to my hearing aids. Do you have a Mac with Bluetooth? Try to get that working to see if it's your hearing aid device that's causing the trouble or not.

  • Color Management Not Working Correctly with 2 Displays

    At work I am using two calibrated monitors connected to a Mac Pro. One of the monitors is a hardware calibrated wide-gamut NEC Spectraview, the other one is a software calibrated Apple Cinema Display.
    It seems like Adobe products only ever display correct colors for the one monitor that happens to be the main monitor. When “Displays have separate Spaces” is off in the system preferences, it is the monitor that has the menu bar. When that setting is on, it is the monitor that was active while the application launched.
    The main monitor always seems to display proper colors, while the secondary monitor shows exaggerated colors. It seems to me, like the applications only ever read the profile for the main monitor.
    I have noticed this behavior with Bridge and After Effects. I am not entirely sure about Photoshop, since I only ever use it on the wide gamut monitor, but it seems like it does NOT have the issue. I do not use any other Adobe applications.
    I had noticed this behavior back in Snow Leopard while using CS5 and CS6, but I never said anything, because I was using an outdated system. I was now moved to a new Mac with the most current version of Mavericks and the most current Creative Cloud versions of these apps and it seems like the issue remains.

    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform for bug reports

  • Cintiq tablet will not work correctly with windows

    I am using photoshop CS6 on a 64 bit windows system and my Cintiq 12 will not function with the pressure sensitivity. any suggestions to correct this?

    Hi. You’ve posted your question in a forum that is for beginners trying to learn the basics of Photoshop.  I'm moving your question to the Photoshop General Discussion forum for specialized attention to your situation.

  • SCXI 1001, SCXI-1102 and SCXI-1303 not working correctly with DAQmx

    I have recently upgraded from Labview 6.5 to Labview 8.2 and now my SCXI 1001 with a SCXI 1102 and SCXI 1303 terminal block no longer reads the correct voltage.  Using the old version of labview thermocouple measurements are correct at 0.5mV; however using the new version of labview and DAQmx the thermocouples are reading 5V.  Everything is installed correctly as it still works with the older version of Labview, is there something that needs to be reset or change so that teh SCXI will function properly with DAQmx?

    Hello ilabtech,
    From my understanding you are using an SCXI 1001 chassis with an SCXI 1102 and 1303 terminal block to perform thermocouple measurements.  You are upgrading to LabVIEW 8.2 and DAQmx.  I am assuming you were using LabVIEW 6.1 since there isn’t a LabVIEW 6.5.  You mentioned that are able to get a correct reading of 0.5 mV with LabVIEW 6.1 but you see a rail of 5V with LabVIEW 8.2 and DAQmx. 
    My first suggestion is that you ensure that the SCXI is set at the appropriate range and for the correct thermocouple type.  You can also configure these settings in MAX as detailed on page 27 of the SCXI 1102 User Manual and Specifications Guide. 
    My second suggestion is for you to start off using an example program to see if you see the same error.  When you are in a LabVIEW 8.2 VI you can go to Help>>Find Examples to open the NI Example Finder.  You then choose Hardware Input and Output>>DAQmx>>Analog Measurements>>Temperature>> Cont. Acq Thermocouple Samples-Int CLK.vi.   This example program is supported by your hardware and is a good resource to use to troubleshoot.
    If these suggestions aren't helpful please answer the following questions in your reply.
    1.        I would like to know what range you have set the SCXI 1102 to read. 
    2.       What version of DAQmx are you using?  You can find the version my opening Measurement and Automation explorer (MAX), expanding the “Software “and clicking on NI-DAQmx.
    3.       What operating system are you using?
    4.  Does your Traditional DAQ program work in LabVIEW 8.2?
    Regards,
    Ima
    Applications Engineer
    National Instruments
    LabVIEW Introduction Course - Six Hours
    Getting Started with NI-DAQmx

  • System Information Not Working Correctly

    I have a MacBook Pro Retina 15" (Mid-2014) running OS X 10.10 (Yosemite).  When accessing the System Information utility, details about the hardware does not show up correctly or not at all.  This only happens when accessing System Information using the following 2 methods:
    Holding the "option" key, clicking on Apple, and selecting "System Information. . ." or
    Accessing the "System Information" application from Launchpad.
    When "System Information" is access by selecting "System Report" from "About This Mac", details about the hardware are presented correctly.
    Here are 2 images showing that the details show up incorrectly or not at all:
    Now, here are the good examples:
    Does anyone know why this is happening how to fix it?  The information should be the same, regardless of the way I access the "System Information" utility, right?

    Have a look at
    Re: System Information is blank?
    From RáNdÓm GéÉzÁ: bug related to System Preferences/Scroll bars always on.
    Work around: set Scroll bars on Automatic mode.

  • Repeat event not working correctly

    Yosemite 10.10.1 (14B25)
    Calendar Version 8.0 (2026)
    I've set up custom repeating events before. I work offshore on a fixed schedule, 6 weeks on 3 weeks off. I always start work on a Wednesday and finish on a Tuesday, I've set these up previously as its the easiest way to see if I'm home for a birthday or event of somesort.
    However, my schedule has just moved after some time off and now when I set up a new event instead of a perfect 9 week cycle, calenar adds some extra days onto the end of repeating cycles, varying days, sometime 1, 2 or 3 extra.
    So, I'm trying to set up my new schedule as follows;
    New event - Work
    Starts - Wednesday 11/02/15
    Ends - Tuesday 24/03/15
    Repeat - Custom, Every 9 weeks on Wednesday
    End Repeat - After 12 times
    Fairly straight forward, my schedule cycle is 9 weeks, so repeat ever 9 weeks on weds, the duration is exactly 6 weeks whilst at work, again fairly straight forward.
    This is where I start getting problems,
    1st repeat event starts on the correct day (15th April), but the end of the event is 2 days late on 28th June instead of 26th June.
    2nd repeat event is the same, starts on the correct day but ends two days late.
    3rd repeat event starts correct but ends 3 days late
    4th repeat event starts correct but ends 3 days late
    This continues, 3 late, 2 late, 1 late, 2 late etc
    So I change it to repeat every 63 days, but still get the same error in the length of event?
    Can anybody help or is it a flaw in the new version of calendar? I've tried using my iPhone to create the event in the same way but get the same results, extra days on the end?
    Thanks

    If you do not have the code for the button, and the button, present throughout your timeline travels, then you need to assign the code anytime you leave and return to whatever section(s) it is in.  The code only executes in the frame it is in even though you might extend it along the timeline.

Maybe you are looking for

  • How to connect to the  multiple system in the same environment

    Hi Everyone , We are integrating SAP EP and BOE . We are facing SSO problem ,as there are 2 system in same environment . Suppose we have XX1 and XX2 as BW backend system . IF Default entry on server is kept blank then we get : "u2022  Account informa

  • How to connect edirol pcr-800 to iPad garage band

    I have an Edirol and camera connector when I connect the edirol I get power but an error message from the iPad that this device isn't supported.  I see that this is a supported keyboard so I am not sure what i am doing wrong.

  • Satellite L750 - How to find touch pad scrolling option?

    Satellite L750 scrolling bars worked yesterday, son played with comp and now dont come up on screen. I've gone synaptic pointing device > pointing device props > device hardware > settings > scrolling > one finger scrolling And the vertical and horiz

  • Help! how to refresh the JTable of a class from another thread class

    there is an application, in server side ,there are two classes, one is a class called face class that screen a JTable, another is a class the a thread ,which accept socket from client, when it accept the client socket, it deal the data and insert int

  • Driver virus

    Hello, I recently have found I have a problem with my photo's uploading into the organizer and when they are finished uploading all I get is the hour glass symbol and not the image itself.  I thought that I saw somewhere that I may have a virus attac