<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Dropzone Forums — Cannot execute scripts in plugin bundle]]></title>
		<link>https://forums.aptonic.com/topic/240/cannot-execute-scripts-in-plugin-bundle/</link>
		<atom:link href="https://forums.aptonic.com/feed/rss/topic/240" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Cannot execute scripts in plugin bundle.]]></description>
		<lastBuildDate>Sun, 01 May 2016 08:04:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Cannot execute scripts in plugin bundle]]></title>
			<link>https://forums.aptonic.com/post/738/#p738</link>
			<description><![CDATA[<p>John,<br />thank you for your quick response. I discovered that when I changed to the non MAS version, my bundle was in the sandboxed folder so I created a new bundle and the folder was not sandboxed any more. When I created a new bundle and copied my code, all went fine.</p><p>Cheers<br />Thorsten</p>]]></description>
			<author><![CDATA[null@example.com (afhrad)]]></author>
			<pubDate>Sun, 01 May 2016 08:04:44 +0000</pubDate>
			<guid>https://forums.aptonic.com/post/738/#p738</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cannot execute scripts in plugin bundle]]></title>
			<link>https://forums.aptonic.com/post/737/#p737</link>
			<description><![CDATA[<p>That error output indicates to me that you&#039;re still running the sandboxed (Mac App Store version) of Dropzone. I would close Dropzone and delete your version of Dropzone from your Applications folder and re-download from <a href="https://aptonic.com/dropzone3/latest">https://aptonic.com/dropzone3/latest</a> - you can verify that it&#039;s the non-Mac App Store version by checking if there is an &#039;Updates&#039; tab in the Preferences. You definitely can&#039;t call other scripts or executables under the sandboxed version, so that&#039;s the first thing to fix.</p><p>Now, also you need to put a ./ in front of the getDatabases.sh call. So change your line calling getDatabases.sh to the following:</p><div class="codebox"><pre><code>output = `./getDatabases.sh`</code></pre></div><p>And make sure the getDatabases.sh file is inside the action bundle.</p><p>Hope that helps!</p>]]></description>
			<author><![CDATA[null@example.com (John)]]></author>
			<pubDate>Sun, 01 May 2016 06:23:31 +0000</pubDate>
			<guid>https://forums.aptonic.com/post/737/#p737</guid>
		</item>
		<item>
			<title><![CDATA[Cannot execute scripts in plugin bundle]]></title>
			<link>https://forums.aptonic.com/post/736/#p736</link>
			<description><![CDATA[<p>I plan to execute a shell script when I drop a file to DZ. As I am running a non MAS version I still get errors that the script cannot be executed (same goes with swift executables or any other executables).<br />The scripts are bundles with the plugin so they are in the same folder like the &quot;action.rb&quot; ruby file.</p><p>Invocation goes like</p><div class="codebox"><pre><code> $dz.begin(&quot;Starting some task...&quot;)
  
  # Below line switches the progress display to determinate mode so we can show progress
  $dz.determinate(true)
  
  output = `getDatabases.sh` #is executable (755)
  puts $?.success?
  puts &quot;output is #{output}&quot;

  # Below lines tell Dropzone to update the progress bar display
  $dz.percent(100)</code></pre></div><p>Error shows up like</p><div class="codebox"><pre><code>/Users/tso/Library/Application Support/Dropzone 3/Actions/Confluence Upload.dzbundle/action.rb:38:in `exec&#039;: No such file or directory - /Users/tso/Library/Containers/com.aptonic.Dropzone3/Data/Library/Application (Errno::ENOENT)
    from /Users/tso/Library/Application Support/Dropzone 3/Actions/Confluence Upload.dzbundle/action.rb:38:in `dragged&#039;
    from /Users/tso/Applications/Dropzone 3.app/Contents/Actions/lib/runner.rb:71:in `call&#039;
    from /Users/tsoApplications/Dropzone 3.app/Contents/Actions/lib/runner.rb:71:in `&lt;main&gt;&#039;</code></pre></div><p>So any help will be greatly appreciated.</p><p>Cheers<br />Thorsten</p>]]></description>
			<author><![CDATA[null@example.com (afhrad)]]></author>
			<pubDate>Sat, 30 Apr 2016 21:57:13 +0000</pubDate>
			<guid>https://forums.aptonic.com/post/736/#p736</guid>
		</item>
	</channel>
</rss>
