<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Mac/Linux trigger Java GUI Scripting from command line in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaa-p/13863928#M4883324</link>
    <description>&lt;P&gt;In case someone comes across this thread and that they're having issues with SAPGUI for Java 7.80:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The NOPHANTOM trace appears to be replaced with SCRIPTNOMESSAGE&lt;UL&gt;&lt;LI&gt;The reason why this works is because setting this trace (as a side effect) puts SAPGUI into "unattended mode"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;If you rather not use SCRIPTNOMESSAGE (and see unnecessary tracing) then at the beginning of your script you can do the following (undocumented) trick:&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;&lt;PRE&gt;application.&lt;SPAN&gt;unwrap&lt;/SPAN&gt;(application).&lt;SPAN&gt;mUnattended &lt;/SPAN&gt;= &lt;SPAN&gt;true;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;I know there are references in this thread about how the SAPGUI can/will exit after the script completes and elsewhere in the SAPGUI documentation it suggests that closing connections/sessions should shutdown the SAPGUI -- but this has not been my experience.&amp;nbsp;&lt;UL&gt;&lt;LI&gt;After closing the connections/sessions and confirming it completed with the SHUTDOWN trace, at the end of my script I now call:&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;&lt;PRE&gt;java.&lt;SPAN&gt;lang&lt;/SPAN&gt;.System.&lt;SPAN&gt;exit&lt;/SPAN&gt;(&lt;SPAN&gt;0&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;NOTE: This will not work with the Java Security policy that is shipped with the SAPGUI.&amp;nbsp; I had to call the SAPGUI using Java (like the author originally did) and pass in the absolute path for a custom security policy to the JVM at start up:&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;&lt;PRE&gt;java -Djava.security.policy=file://...&lt;/PRE&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;The contents of the security policy I used are:&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;&lt;PRE&gt;grant principal com.sap.platin.micro.GuiPrincipal "SAPGUI:UserScript" {
    permission java.io.FilePermission "&amp;lt;&amp;lt;ALL FILES&amp;gt;&amp;gt;", "read,write,delete,execute";
    permission java.lang.RuntimePermission "getenv.*";
    // Generic Permissions necessary for Scripting
    permission javax.security.auth.AuthPermission "doAsPrivileged";
    permission java.awt.AWTPermission "createRobot";
 
    // Allow the script to exit
    permission java.lang.RuntimePermission "exitVM";
};&lt;/PRE&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Thu, 12 Sep 2024 13:29:45 GMT</pubDate>
    <dc:creator>raniemi</dc:creator>
    <dc:date>2024-09-12T13:29:45Z</dc:date>
    <item>
      <title>Mac/Linux trigger Java GUI Scripting from command line</title>
      <link>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaq-p/12189906</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Scenario&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;I am able to trigger a javascript file from command line like this:&lt;/P&gt;
  &lt;P&gt;test1.js&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;application.openConnectionByConnectionString("conn=/H/10.10.10.100/S/3200&amp;amp;expert=true");
application.findById("/app/con[0]/ses[0]/wnd[0]/usr/txtRSYST-MANDT").text = "220";
application.findById("/app/con[0]/ses[0]/wnd[0]/usr/txtRSYST-MANDT").setFocus();
application.findById("/app/con[0]/ses[0]/wnd[0]/usr/txtRSYST-MANDT").caretPosition = 3;
application.findById("/app/con[0]/ses[0]/wnd[0]/usr/txtRSYST-BNAME").text = "username";
// The text of a password field is not recorded. Either enter a valid password or delete the following line
application.findById("/app/con[0]/ses[0]/wnd[0]/usr/pwdRSYST-BCODE").text = "secret";
application.findById("/app/con[0]/ses[0]/wnd[0]").resizeWorkingPane(181,35,false);
application.findById("/app/con[0]/ses[0]/wnd[0]").sendVKey(0);
application.findById("/app/con[0]/ses[0]/wnd[0]/tbar[0]/okcd").text = "/nex";
application.findById("/app/con[0]/ses[0]/wnd[0]").sendVKey(0);
&lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;#!/bin/bash
export SAPGUIDIR="/Applications/SAP Clients/SAPGUI 7.50rev5/SAPGUI 7.50rev5.app/Contents/Resources"
export WORKDIR=`pwd` # this is where the script file is located

cd "${SAPGUIDIR}"
echo "[DEBUG] starting..."

java \
	-cp Java/GuiStartS.jar com.sap.platin.Gui \
	-n \
	-b \
	-f ${WORKDIR}/test1.js

echo "[DEBUG] done!"
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;STRONG&gt;Problem&lt;BR /&gt;&lt;/STRONG&gt;JavaGUI does not quit. There is a popup that says "The script has successfully completed its execution".&lt;/P&gt;
  &lt;P&gt;If I run the command again, I get another copy of JavaGUI running ...&lt;/P&gt;
  &lt;P&gt;How can I get JavaGUI to quit completely?&lt;/P&gt;
  &lt;P&gt;Please could anyone share a link to the full &lt;STRONG&gt;&lt;EM&gt;JavaScript&lt;/EM&gt;&lt;/STRONG&gt; API?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 22:49:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaq-p/12189906</guid>
      <dc:creator>former_member579598</dc:creator>
      <dc:date>2020-01-22T22:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Mac/Linux trigger Java GUI Scripting from command line</title>
      <link>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaa-p/12189907#M4560020</link>
      <description>&lt;P&gt;On macOS just add parameters "&lt;STRONG&gt;-t NOPHANTOM&lt;/STRONG&gt;" in the script, then the JavaGUI will exit when the connection is closed.&lt;/P&gt;&lt;P&gt;And instead of calling "&lt;EM&gt;java ... -jar GuiStartS.jar...&lt;/EM&gt;" you can call&lt;/P&gt;&lt;P&gt;"/&lt;EM&gt;Applications/SAP Clients/SAPGUI 7.50rev5/SAPGUI 7.50rev5.app/Contents/&lt;/EM&gt;&lt;EM&gt;MacOS/SAPGUI -n -b ....&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;This will start the JavaGUI with the appropriate java version.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;P&gt;SAP GUI for Java&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 12:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaa-p/12189907#M4560020</guid>
      <dc:creator>RSJAVA</dc:creator>
      <dc:date>2020-01-31T12:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Mac/Linux trigger Java GUI Scripting from command line</title>
      <link>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaa-p/12189908#M4560021</link>
      <description>&lt;P&gt;For SAP GUI Scripting API please refer to&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/viewer/b47d018c3b9b45e897faf66a6c0885a8/760.00/en-US"&gt;https://help.sap.com/viewer/b47d018c3b9b45e897faf66a6c0885a8/760.00/en-US&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 13:37:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaa-p/12189908#M4560021</guid>
      <dc:creator>RMW</dc:creator>
      <dc:date>2020-01-31T13:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Mac/Linux trigger Java GUI Scripting from command line</title>
      <link>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaa-p/12189909#M4560022</link>
      <description>&lt;P&gt;Thanks Rolf - that link does not cover JS in the detail I need.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 16:09:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaa-p/12189909#M4560022</guid>
      <dc:creator>former_member579598</dc:creator>
      <dc:date>2020-01-31T16:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Mac/Linux trigger Java GUI Scripting from command line</title>
      <link>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaa-p/12189910#M4560023</link>
      <description>&lt;P&gt;Sweet, thanks for sharing!&lt;/P&gt;&lt;P&gt;Do you have any link / PDF on the flags for SAPGUI?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 16:10:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaa-p/12189910#M4560023</guid>
      <dc:creator>former_member579598</dc:creator>
      <dc:date>2020-01-31T16:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Mac/Linux trigger Java GUI Scripting from command line</title>
      <link>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaa-p/12189911#M4560024</link>
      <description>&lt;P&gt;Using parameter -? will print the list of parameters.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 16:24:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaa-p/12189911#M4560024</guid>
      <dc:creator>RMW</dc:creator>
      <dc:date>2020-01-31T16:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Mac/Linux trigger Java GUI Scripting from command line</title>
      <link>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaa-p/12189912#M4560025</link>
      <description>&lt;P&gt;LOL, &lt;EM&gt;&lt;STRONG&gt;reverse-engineering&lt;/STRONG&gt;&lt;/EM&gt; the documentation...&lt;/P&gt;&lt;P&gt;...there is no mention of "NOPHANTOM" - &lt;A href="https://lmgtfy.com/?q=sap+gui+%22NOPHANTOM%22&amp;amp;pp=1" target="_blank"&gt;not even the mighty Google&lt;/A&gt; has any record of this feature&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"/Applications/SAP Clients/SAPGUI 7.50rev5/SAPGUI 7.50rev5.app/Contents/MacOS/SAPGUI" -h&lt;BR /&gt;2020-01-31 16:34:14.902 SAPGUI[77876:3663785] Task succeeded.&lt;BR /&gt;############################# ERROR #############################&lt;BR /&gt;31.01. 16:34:16.926 ERROR: Getopt.nextOption(): Unrecognized option: -h&lt;BR /&gt;############################# ERROR #############################&lt;BR /&gt;com.sap.platin.base.logon.GuiImpl: start program for PlatinGui&lt;BR /&gt;Usage: com.sap.platin.base.logon.GuiImpl [options]&lt;BR /&gt;Available options:&lt;BR /&gt;/Rfc=[0-9A-F][0-9A-F]* RFC id to send to backend during connect&lt;BR /&gt;-o &amp;lt;hostSpec&amp;gt;opens a connection to &amp;lt;hostSpec&amp;gt; (e.g. /H/binmain/S/3253)&lt;BR /&gt;-f &amp;lt;fileName&amp;gt;executes the script contained in the file &amp;lt;fileName&amp;gt;&lt;BR /&gt;-s &amp;lt;script&amp;gt;executes the script contained in string &amp;lt;script&amp;lt;&lt;BR /&gt;-w opens a script window for manual script input&lt;BR /&gt;-n doesn't show guilogon window&lt;BR /&gt;-t &amp;lt;traceKeys&amp;gt; activates all trace keys contained in string &amp;lt;traceKeys&amp;gt;&lt;BR /&gt;(delimited by commas, e.g. CON,SES,EVT,C_AGI)&lt;BR /&gt;-l &amp;lt;traceFile&amp;gt; writes trace information activated by trace keys with the option -t&lt;BR /&gt;into the log file &amp;lt;traceFile&amp;gt;&lt;BR /&gt;-p &amp;lt;libdir&amp;gt;path to the JPlatin library&lt;BR /&gt;-g &amp;lt;gmuxpath&amp;gt;path to Gmux&lt;BR /&gt;-b no progress bar&lt;BR /&gt;-? prints this help text&lt;BR /&gt;The options '-f' and '-s' may occur repeatedly and in any order (they are evaluated in the order&lt;BR /&gt;they appear).
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jan 2020 16:39:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaa-p/12189912#M4560025</guid>
      <dc:creator>former_member579598</dc:creator>
      <dc:date>2020-01-31T16:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Mac/Linux trigger Java GUI Scripting from command line</title>
      <link>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaa-p/12189913#M4560026</link>
      <description>&lt;P&gt;Great - the GUI does not remain active after the script.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"${SAPGUIDIR}/MacOS/SAPGUI" \
    -n \
    -b \
    -t NOPHANTOM \
    -f ${WORKDIR}/test1.js&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But it's messy... note this line in the output : &lt;B&gt;TRC&lt;/B&gt; and &lt;B&gt;AUTDMP&lt;/B&gt; were not requested?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;31.01. 17:01:49.270 TRC: Active trace keys: NOPHANTOM:TRC:AUTDMP&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;2020-01-31 17:01:48.845 SAPGUI[78711:3683840] Task succeeded.
31.01. 17:01:49.269 TRC: -----------------------------------------------------------
31.01. 17:01:49.269 TRC: Date: 31.01. 17:01:49.257
31.01. 17:01:49.269 TRC: -----------------------------------------------------------
31.01. 17:01:49.269 TRC: System Details
31.01. 17:01:49.269 TRC: -----------------------------------------------------------
31.01. 17:01:49.269 TRC: Java VM: Oracle Corporation Version 10.0.2+13
31.01. 17:01:49.269 TRC: Bit Mode: 64
31.01. 17:01:49.269 TRC: OS: Mac OS X(x86_64) Version 10.15.3
31.01. 17:01:49.269 TRC: Java Directory: /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home
31.01. 17:01:49.269 TRC: Home Directory: /Users/derek
31.01. 17:01:49.269 TRC: Current Directory: /Applications/SAP Clients/SAPGUI 7.50rev5
31.01. 17:01:49.269 TRC: Locale: English (United Kingdom)
31.01. 17:01:49.269 TRC: Default Character Encoding: UTF8
31.01. 17:01:49.269 TRC: -----------------------------------------------------------
31.01. 17:01:49.269 TRC: Product Details
31.01. 17:01:49.269 TRC: -----------------------------------------------------------
31.01. 17:01:49.269 TRC: SAP GUI for Java 7.50 rev 5
31.01. 17:01:49.269 TRC: 2018-12-05 06:30:12 +0100
31.01. 17:01:49.269 TRC: mo-f75228bd7, 750_REL, 1889363
31.01. 17:01:49.269 TRC: (Version ID A075000040500)
31.01. 17:01:49.270 TRC: Active trace keys: NOPHANTOM:TRC:AUTDMP &amp;lt;&amp;lt;====================== WHY???
31.01. 17:01:50.572 TRC: Installation Details
31.01. 17:01:50.572 TRC: -----------------------------------------------------------
31.01. 17:01:50.572 TRC: Private Glob File: /Users/derek/Library/Preferences/SAP/globs
31.01. 17:01:50.572 TRC: Desktop integration: Mac OS X integration (library: /Applications/SAP Clients/SAPGUI 7.50rev5/SAPGUI 7.50rev5.app/Contents/Resources/bin/libMacOSXConnect64.dylib exists: true)
31.01. 17:01:50.572 TRC: -----------------------------------------------------------
31.01. 17:01:50.572 TRC: Path Information:
31.01. 17:01:50.572 TRC: -----------------------------------------------------------
31.01. 17:01:50.572 TRC: SAP GUI traces          : &amp;lt;/Users/derek/Library/Preferences/SAP/traces&amp;gt;
31.01. 17:01:50.572 TRC: SAP GUI user prefs      : &amp;lt;/Users/derek/Library/Preferences/SAP&amp;gt;
31.01. 17:01:50.572 TRC: SAP GUI system prefs    : &amp;lt;/Library/Preferences/SAP&amp;gt;
31.01. 17:01:50.572 TRC:  
31.01. 17:01:50.572 TRC: Installation Dir        : &amp;lt;/Applications/SAP Clients&amp;gt;
31.01. 17:01:50.572 TRC: Product Dir             : &amp;lt;/Applications/SAP Clients/SAPGUI 7.50rev5&amp;gt;
31.01. 17:01:50.572 TRC: Application Dir         : &amp;lt;/Applications/SAP Clients/SAPGUI 7.50rev5/SAPGUI 7.50rev5.app&amp;gt;
31.01. 17:01:50.572 TRC: Resource Dir            : &amp;lt;/Applications/SAP Clients/SAPGUI 7.50rev5/SAPGUI 7.50rev5.app/Contents/Resources&amp;gt;
31.01. 17:01:50.572 TRC:  
31.01. 17:01:50.572 TRC: Binary Dir              : &amp;lt;/Applications/SAP Clients/SAPGUI 7.50rev5/SAPGUI 7.50rev5.app/Contents/Resources/bin&amp;gt;
31.01. 17:01:50.572 TRC: GMUX Dir                : &amp;lt;/Applications/SAP Clients/SAPGUI 7.50rev5/SAPGUI 7.50rev5.app/Contents/Resources/bin/gmux&amp;gt;
31.01. 17:01:50.572 TRC: Jar Dir                 : &amp;lt;/Applications/SAP Clients/SAPGUI 7.50rev5/SAPGUI 7.50rev5.app/Contents/Resources/Java&amp;gt;
31.01. 17:01:50.572 TRC: Install Script Dir      : &amp;lt;/Applications/SAP Clients/SAPGUI 7.50rev5/SAPGUI 7.50rev5.app/Contents/Resources/inst&amp;gt;
31.01. 17:01:50.572 TRC: Security Dir            : &amp;lt;/Applications/SAP Clients/SAPGUI 7.50rev5/SAPGUI 7.50rev5.app/Contents/Resources/security&amp;gt;
31.01. 17:01:50.572 TRC: Documentation Dir       : &amp;lt;/Applications/SAP Clients/SAPGUI 7.50rev5/SAPGUI 7.50rev5.app/Contents/Resources/doc&amp;gt;
31.01. 17:01:50.572 TRC:  
31.01. 17:01:50.572 TRC: Default Installation Dir: &amp;lt;/Users/derek/Applications/SAP Clients&amp;gt;
31.01. 17:01:50.572 TRC: System Installation Dir : &amp;lt;/Applications/SAP Clients&amp;gt;
31.01. 17:01:50.572 TRC: User Installation Dir   : &amp;lt;/Users/derek/Applications/SAP Clients&amp;gt;
31.01. 17:01:50.572 TRC:  
31.01. 17:01:50.572 TRC: Files:
31.01. 17:01:50.572 TRC: Installation Script     : &amp;lt;/Applications/SAP Clients/SAPGUI 7.50rev5/SAPGUI 7.50rev5.app/Contents/Resources/inst/install&amp;gt;
31.01. 17:01:50.572 TRC: Deinstaller             : &amp;lt;null&amp;gt;
31.01. 17:01:50.572 TRC: guilogon                : &amp;lt;/Applications/SAP Clients/SAPGUI 7.50rev5/SAPGUI 7.50rev5.app/Contents/Resources/bin/guilogon&amp;gt;
31.01. 17:01:50.572 TRC: guistart                : &amp;lt;/Applications/SAP Clients/SAPGUI 7.50rev5/SAPGUI 7.50rev5.app/Contents/Resources/bin/guistart&amp;gt;
31.01. 17:01:50.572 TRC: Installation LOCK       : &amp;lt;/Applications/SAP Clients/SAPGUI 7.50rev5/platin.lock&amp;gt;
31.01. 17:01:50.572 TRC: Installation Log        : &amp;lt;/Users/derek/Library/Logs/sapgui.log&amp;gt;
31.01. 17:01:50.572 TRC: Permissions             : &amp;lt;/Applications/SAP Clients/SAPGUI 7.50rev5/SAPGUI 7.50rev5.app/Contents/Resources/permissions&amp;gt;
31.01. 17:01:50.572 TRC: -----------------------------------------------------------
31.01. 17:01:50.572 TRC: List of active code sources
31.01. 17:01:50.572 TRC: -----------------------------------------------------------
31.01. 17:01:50.572 TRC: Classloader:com.sap.platin.micro.MicroURLClassLoader@1b2abca6

.... big snip ....

31.01. 17:01:50.572 TRC: -----------------------------------------------------------
31.01. 17:01:50.572 TRC: The jar folder contains the following jar files:
31.01. 17:01:50.572 TRC: -----------------------------------------------------------
31.01. 17:01:50.572 TRC: sapTextEditS.jar
31.01. 17:01:50.572 TRC: sapInputFieldS.jar
31.01. 17:01:50.572 TRC: sapJnetS.jar
31.01. 17:01:50.572 TRC: sapContextMenuS.jar
31.01. 17:01:50.572 TRC: JNetBeanS.jar
31.01. 17:01:50.572 TRC: plafbaseS.jar
31.01. 17:01:50.572 TRC: iCubeS.jar
31.01. 17:01:50.572 TRC: platincore9S.jar
31.01. 17:01:50.572 TRC: sapImageS.jar
31.01. 17:01:50.572 TRC: pdfViewerS.jar
31.01. 17:01:50.572 TRC: sapToolBarS.jar
31.01. 17:01:50.572 TRC: sapCalendarS.jar
31.01. 17:01:50.572 TRC: sapComboBoxS.jar
31.01. 17:01:50.572 TRC: sapPdfViewerS.jar
31.01. 17:01:50.572 TRC: platinsecS.jar
31.01. 17:01:50.572 TRC: sapHtmlCoreS.jar
31.01. 17:01:50.572 TRC: sapTreeS.jar
31.01. 17:01:50.572 TRC: sapChartS.jar
31.01. 17:01:50.572 TRC: sapHtmlS.jar
31.01. 17:01:50.572 TRC: GuiStartS.jar
31.01. 17:01:50.572 TRC: platinlangS.jar
31.01. 17:01:50.572 TRC: platinr3S.jar
31.01. 17:01:50.572 TRC: platinwdpS.jar
31.01. 17:01:50.572 TRC: platinMacOSXS.jar
31.01. 17:01:50.572 TRC: sapGridS.jar
31.01. 17:01:50.572 TRC: platincoreS.jar&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jan 2020 17:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaa-p/12189913#M4560026</guid>
      <dc:creator>former_member579598</dc:creator>
      <dc:date>2020-01-31T17:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Mac/Linux trigger Java GUI Scripting from command line</title>
      <link>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaa-p/12189914#M4560027</link>
      <description>&lt;P&gt;The public trace keys are listed in chapter "5.3.3 Trace Information" of the manual available via Help &amp;gt; SAP GUI Help. They usually are intended to switch on tracing in particular components for debugging purposes.&lt;/P&gt;&lt;P&gt;There are a few more to modify the behavior, but they are not published by intention.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 20:38:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaa-p/12189914#M4560027</guid>
      <dc:creator>RMW</dc:creator>
      <dc:date>2020-01-31T20:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Mac/Linux trigger Java GUI Scripting from command line</title>
      <link>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaa-p/13863928#M4883324</link>
      <description>&lt;P&gt;In case someone comes across this thread and that they're having issues with SAPGUI for Java 7.80:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The NOPHANTOM trace appears to be replaced with SCRIPTNOMESSAGE&lt;UL&gt;&lt;LI&gt;The reason why this works is because setting this trace (as a side effect) puts SAPGUI into "unattended mode"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;If you rather not use SCRIPTNOMESSAGE (and see unnecessary tracing) then at the beginning of your script you can do the following (undocumented) trick:&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;&lt;PRE&gt;application.&lt;SPAN&gt;unwrap&lt;/SPAN&gt;(application).&lt;SPAN&gt;mUnattended &lt;/SPAN&gt;= &lt;SPAN&gt;true;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;I know there are references in this thread about how the SAPGUI can/will exit after the script completes and elsewhere in the SAPGUI documentation it suggests that closing connections/sessions should shutdown the SAPGUI -- but this has not been my experience.&amp;nbsp;&lt;UL&gt;&lt;LI&gt;After closing the connections/sessions and confirming it completed with the SHUTDOWN trace, at the end of my script I now call:&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;&lt;PRE&gt;java.&lt;SPAN&gt;lang&lt;/SPAN&gt;.System.&lt;SPAN&gt;exit&lt;/SPAN&gt;(&lt;SPAN&gt;0&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;NOTE: This will not work with the Java Security policy that is shipped with the SAPGUI.&amp;nbsp; I had to call the SAPGUI using Java (like the author originally did) and pass in the absolute path for a custom security policy to the JVM at start up:&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;&lt;PRE&gt;java -Djava.security.policy=file://...&lt;/PRE&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;The contents of the security policy I used are:&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;&lt;PRE&gt;grant principal com.sap.platin.micro.GuiPrincipal "SAPGUI:UserScript" {
    permission java.io.FilePermission "&amp;lt;&amp;lt;ALL FILES&amp;gt;&amp;gt;", "read,write,delete,execute";
    permission java.lang.RuntimePermission "getenv.*";
    // Generic Permissions necessary for Scripting
    permission javax.security.auth.AuthPermission "doAsPrivileged";
    permission java.awt.AWTPermission "createRobot";
 
    // Allow the script to exit
    permission java.lang.RuntimePermission "exitVM";
};&lt;/PRE&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 12 Sep 2024 13:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mac-linux-trigger-java-gui-scripting-from-command-line/qaa-p/13863928#M4883324</guid>
      <dc:creator>raniemi</dc:creator>
      <dc:date>2024-09-12T13:29:45Z</dc:date>
    </item>
  </channel>
</rss>

