<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Dropzone Forums — Cannot execute scripts in plugin bundle]]></title>
	<link rel="self" href="https://forums.aptonic.com/feed/atom/topic/240" />
	<updated>2016-05-01T08:04:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.aptonic.com/topic/240/cannot-execute-scripts-in-plugin-bundle/</id>
		<entry>
			<title type="html"><![CDATA[Re: Cannot execute scripts in plugin bundle]]></title>
			<link rel="alternate" href="https://forums.aptonic.com/post/738/#p738" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[afhrad]]></name>
				<uri>https://forums.aptonic.com/user/510/</uri>
			</author>
			<updated>2016-05-01T08:04:44Z</updated>
			<id>https://forums.aptonic.com/post/738/#p738</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cannot execute scripts in plugin bundle]]></title>
			<link rel="alternate" href="https://forums.aptonic.com/post/737/#p737" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[John]]></name>
				<uri>https://forums.aptonic.com/user/2/</uri>
			</author>
			<updated>2016-05-01T06:23:31Z</updated>
			<id>https://forums.aptonic.com/post/737/#p737</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Cannot execute scripts in plugin bundle]]></title>
			<link rel="alternate" href="https://forums.aptonic.com/post/736/#p736" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[afhrad]]></name>
				<uri>https://forums.aptonic.com/user/510/</uri>
			</author>
			<updated>2016-04-30T21:57:13Z</updated>
			<id>https://forums.aptonic.com/post/736/#p736</id>
		</entry>
</feed>
