<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: shell script delete and down key.. stopped working</title>
		<atom:link href="http://cycling74.com/forums/topic/shell-script-delete-and-down-key-stopped-working/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/shell-script-delete-and-down-key-stopped-working/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 17:00:56 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/shell-script-delete-and-down-key-stopped-working/#post-65062</guid>
					<title><![CDATA[shell script delete and down key.. stopped working]]></title>
					<link>http://cycling74.com/forums/topic/shell-script-delete-and-down-key-stopped-working/#post-65062</link>
					<pubDate>Sat, 03 Nov 2012 00:48:04 +0000</pubDate>
					<dc:creator>basvlk</dc:creator>

					<description>
						<![CDATA[
						<p>Hi all, I&#8217;ve always struggled with this because I don&#8217;t really understand shell scripts. I&#8217;m using Bill&#8217;s Orcutt&#8217;s [shell] external.</p>
<p>WHAT I&#8221;M TRYING TO DO<br />
1) with one button (on my Ipad) copy a clip in AbletonLIVE and paste it in the slot below<br />
2) with one button, delete a clip</p>
<p>HOW I&#8221;M TRYING TO DO IT<br />
send 3 commands to the shell script, the first is &#8216;copy&#8217; the second &#8216;arrow down&#8217; the third &#8216;paste&#8217; </p>
<p>WHAT WORKS<br />
the copy and the paste commands. these are the lines I send to shell:<br />
COPY:<br />
osascript -e &#8216;tell application &#8220;System Events&#8221;&#8216; -e &#8216;tell process &#8220;Live&#8221;&#8216; -e &#8216;set frontmost to true&#8217; -e &#8216;end tell&#8217; -e &#8216;key code &#8220;8&#8243; using command down&#8217; -e &#8216;end tell&#8217;<br />
PASTE:<br />
osascript -e &#8216;tell application &#8220;System Events&#8221;&#8216; -e &#8216;tell process &#8220;Live&#8221;&#8216; -e &#8216;set frontmost to true&#8217; -e &#8216;end tell&#8217; -e &#8216;key code &#8220;9&#8243; using command down&#8217; -e &#8216;end tell&#8217;</p>
<p>WHAT DOESNT WORK<br />
the arrow &#8211; down. It works when I&#8217;m in the file browser, but not when I&#8217;m in the clipgrid<br />
the delete key doesn&#8217;t work either</p>
<p>These don&#8217;t work:<br />
Arrow down<br />
osascript -e &#8216;tell application &#8220;System Events&#8221;&#8216; -e &#8216;tell process &#8220;Live&#8221;&#8216; -e &#8216;set frontmost to true&#8217; -e &#8216;end tell&#8217; -e &#8216;key code 125&#8242; -e &#8216;end tell&#8217;<br />
Delete<br />
osascript -e &#8216;tell application &#8220;System Events&#8221;&#8216; -e &#8216;tell process &#8220;Live&#8221;&#8216; -e &#8216;set frontmost to true&#8217; -e &#8216;end tell&#8217; -e &#8216;key code 51&#8242; -e &#8216;end tell&#8217;</p>
<p>Any ideas? I&#8217;m happy to not use the shell script, as long as I can delete clips and copy clips to a slot below I&#8217;ll be happy!</p>
<p>Thanks!!!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/shell-script-delete-and-down-key-stopped-working/#post-234610</guid>
					<title><![CDATA[Re: shell script delete and down key.. stopped working]]></title>
					<link>http://cycling74.com/forums/topic/shell-script-delete-and-down-key-stopped-working/#post-234610</link>
					<pubDate>Tue, 13 Nov 2012 18:18:35 +0000</pubDate>
					<dc:creator>basvlk</dc:creator>

					<description>
						<![CDATA[
						<p>anybody? any ideas how to reliably send a key command to and application (eg LIVE)?<br />
Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/shell-script-delete-and-down-key-stopped-working/#post-234611</guid>
					<title><![CDATA[Re: shell script delete and down key.. stopped working]]></title>
					<link>http://cycling74.com/forums/topic/shell-script-delete-and-down-key-stopped-working/#post-234611</link>
					<pubDate>Fri, 23 Nov 2012 17:20:01 +0000</pubDate>
					<dc:creator>basvlk</dc:creator>

					<description>
						<![CDATA[
						<p>well I got it working, not sure what it was &#8211; I&#8217;m having the same scripts as before. Did lose a lot of time on the following though! </p>
<p>if you&#8217;re in patching mode and you use the cmd key to click on user interface elements (eg I send the message &#8216;delete&#8217; into a patcher that than issues the &#8216;delete&#8217; key command to an application)&#8230;.. the cmd key is effectively still down when the key is sent to the application. </p>
<p>so it&#8217;s better to make sure your patcher is locked and you don&#8217;t use modifier keys when your patch is sending keystrokes&#8230;</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

