<?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>topic Re: Powerpoint: trigger paste clipboard in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Powerpoint-trigger-paste-clipboard/m-p/610153#M81112</link>
    <description>&lt;P&gt;I added the windows version (via PowerShell) to the GraphBuilder toolbar:&lt;BR /&gt;&lt;LI-MESSAGE title="Graph Builder Toolbar" uid="565466" url="https://community.jmp.com/t5/JMP-Add-Ins/Graph-Builder-Toolbar/m-p/565466#U565466" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1678381476411.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50896i101D3CC10D1E11E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1678381476411.png" alt="hogi_0-1678381476411.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jun 2023 18:50:02 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2023-06-27T18:50:02Z</dc:date>
    <item>
      <title>Powerpoint: trigger paste clipboard</title>
      <link>https://community.jmp.com/t5/Discussions/Powerpoint-trigger-paste-clipboard/m-p/598406#M80218</link>
      <description>&lt;P&gt;Does Jmp have a possibility to trigger "paste clipboard" in Powerpoint - after copying a graph to the clipboard.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:37:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Powerpoint-trigger-paste-clipboard/m-p/598406#M80218</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-08T16:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Powerpoint: trigger paste clipboard</title>
      <link>https://community.jmp.com/t5/Discussions/Powerpoint-trigger-paste-clipboard/m-p/598508#M80224</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;My favorite way to do things like this (on my Mac) is to use RunProgram() to run some AppleScript. Here's my process there, which I hope will be helpful if you're adapting for Windows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the JMP side, we're going to use RunProgram() to execute a bash script we'll make:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Run Program( Executable( "~/Desktop/pastePowerpoint" ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To make the bash script, we open a plain text file and write the bash to AppleScript invocation, and then the AppleScript. Here's the full contents of that plain text file:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;#!/bin/bash

osascript &amp;lt;&amp;lt;END
tell application "Microsoft PowerPoint"
  activate
  tell application "System Events"
    keystroke "v" using {command down}
  end tell
end tell
END&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Once we save that (with no extension), we need to make it executable. In Terminal, we can run the following (still assuming this is on your desktop):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;chmod 755 ~/Desktop/pastePowerpoint&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And that's it!&amp;nbsp;Hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 13:23:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Powerpoint-trigger-paste-clipboard/m-p/598508#M80224</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2023-02-08T13:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Powerpoint: trigger paste clipboard</title>
      <link>https://community.jmp.com/t5/Discussions/Powerpoint-trigger-paste-clipboard/m-p/599958#M80346</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;Concening Windows, ChatGPT suggested to use a PowerShell Script:&lt;BR /&gt;(assuming that the JSL script and ps1 code are saved in the same folder)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Try(Current Report()&amp;lt;&amp;lt; Copy Picture();
If( Host is( "Windows" ),
PowerShellScriptName= Convert File Path( "", windows ) ||"PastePicture.ps1";
runOptions = "-File \!""|| PowerShellScriptName||"\!"";
MyResult = Run Program(
	Executable( "PowerShell.exe" ),
	Options( {runOptions} ),
	ReadFunction( Function( {this}, Write( this &amp;lt;&amp;lt; read ) ) )
)
));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;pastePicture.ps1:&lt;/P&gt;&lt;PRE&gt;$ppt = New-Object -ComObject PowerPoint.Application
$ActivePPT = $ppt.ActiveWindow
if ($ActivePPT -eq $null) {
  return "no active ppt"
} else {
$slide=$activeppt.Presentation.Slides($ppt.ActiveWindow.Selection.SlideRange.SlideNumber)
$shape = $slide.Shapes.Paste()
return 0
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2023 16:27:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Powerpoint-trigger-paste-clipboard/m-p/599958#M80346</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-02-11T16:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Powerpoint: trigger paste clipboard</title>
      <link>https://community.jmp.com/t5/Discussions/Powerpoint-trigger-paste-clipboard/m-p/610153#M81112</link>
      <description>&lt;P&gt;I added the windows version (via PowerShell) to the GraphBuilder toolbar:&lt;BR /&gt;&lt;LI-MESSAGE title="Graph Builder Toolbar" uid="565466" url="https://community.jmp.com/t5/JMP-Add-Ins/Graph-Builder-Toolbar/m-p/565466#U565466" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1678381476411.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50896i101D3CC10D1E11E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1678381476411.png" alt="hogi_0-1678381476411.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 18:50:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Powerpoint-trigger-paste-clipboard/m-p/610153#M81112</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-27T18:50:02Z</dc:date>
    </item>
  </channel>
</rss>

