<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Dropzone Forums — Finder Path]]></title>
		<link>https://forums.aptonic.com/topic/153/finder-path/</link>
		<atom:link href="https://forums.aptonic.com/feed/rss/topic/153" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Finder Path.]]></description>
		<lastBuildDate>Fri, 15 Jan 2016 23:20:36 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Finder Path]]></title>
			<link>https://forums.aptonic.com/post/689/#p689</link>
			<description><![CDATA[<p>Yep, the below will do this using Python:</p><div class="codebox"><pre><code># Dropzone Action Info
# Name: Print Finder Path
# Description: Prints the selected Finder Path to the Dropzone debug console using Python.
# Handles: Files
# Creator: Aptonic
# URL: http://aptonic.com
# Events: Clicked
# SkipConfig: No
# RunsSandboxed: Yes
# Version: 1.0
# MinDropzoneVersion: 3.5

import subprocess

def clicked():

    script = &#039;&#039;&#039;
    tell application &quot;Finder&quot;
        try
            set theSelection to (target of window 1 as alias)
            set theSelection to theSelection as string
            set finder_path to POSIX path of (the selection as alias)
        on error
            set finder_path to null
        end try
    end tell
    if finder_path is not null then return finder_path
    &#039;&#039;&#039;

    proc = subprocess.Popen([&#039;osascript&#039;, &#039;-&#039;],
                            stdin=subprocess.PIPE,
                            stdout=subprocess.PIPE)
    stdout_output = proc.communicate(script)[0]
    selected_finder_path = stdout_output

    print (selected_finder_path)
    
    dz.finish(selected_finder_path)
    dz.url(False)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (John)]]></author>
			<pubDate>Fri, 15 Jan 2016 23:20:36 +0000</pubDate>
			<guid>https://forums.aptonic.com/post/689/#p689</guid>
		</item>
		<item>
			<title><![CDATA[Re: Finder Path]]></title>
			<link>https://forums.aptonic.com/post/688/#p688</link>
			<description><![CDATA[<p>Is there an example that gets the current Finder selection and puts the path in a variable using Python? I don&#039;t know Ruby, and it isn&#039;t clear from the example. </p><p>Thanks!</p>]]></description>
			<author><![CDATA[null@example.com (jakpot)]]></author>
			<pubDate>Thu, 14 Jan 2016 22:50:57 +0000</pubDate>
			<guid>https://forums.aptonic.com/post/688/#p688</guid>
		</item>
		<item>
			<title><![CDATA[Re: Finder Path]]></title>
			<link>https://forums.aptonic.com/post/493/#p493</link>
			<description><![CDATA[<p>Got it, thanks. I downloaded the unsandboxed version and installed the action. I&#039;d swear I checked the download actions page before I posted.</p>]]></description>
			<author><![CDATA[null@example.com (evanfuchs)]]></author>
			<pubDate>Wed, 16 Jul 2014 05:35:51 +0000</pubDate>
			<guid>https://forums.aptonic.com/post/493/#p493</guid>
		</item>
		<item>
			<title><![CDATA[Re: Finder Path]]></title>
			<link>https://forums.aptonic.com/post/483/#p483</link>
			<description><![CDATA[<p>Yep - The &#039;Finder Path&#039; action does just this. You select a file in the Finder and then click the Finder Path action in your grid and it copies the selected file path to the clipboard.</p><p>You can install the Finder Path action here:</p><p><a href="https://aptonic.com/dropzone3/actions/install.php?bundle_name=Finder%20Path">https://aptonic.com/dropzone3/actions/i … der%20Path</a></p>]]></description>
			<author><![CDATA[null@example.com (John)]]></author>
			<pubDate>Fri, 04 Jul 2014 16:39:24 +0000</pubDate>
			<guid>https://forums.aptonic.com/post/483/#p483</guid>
		</item>
		<item>
			<title><![CDATA[Finder Path]]></title>
			<link>https://forums.aptonic.com/post/479/#p479</link>
			<description><![CDATA[<p>Is it possible to have an action in Dropzone 3 to copy the path of a file?</p><p>thx</p>]]></description>
			<author><![CDATA[null@example.com (evanfuchs)]]></author>
			<pubDate>Thu, 03 Jul 2014 15:54:10 +0000</pubDate>
			<guid>https://forums.aptonic.com/post/479/#p479</guid>
		</item>
	</channel>
</rss>
