<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Dropzone Forums — Action that asks for new name and saves to desktop?]]></title>
	<link rel="self" href="https://forums.aptonic.com/feed/atom/topic/85" />
	<updated>2012-04-18T14:35:32Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.aptonic.com/topic/85/action-that-asks-for-new-name-and-saves-to-desktop/</id>
		<entry>
			<title type="html"><![CDATA[Re: Action that asks for new name and saves to desktop?]]></title>
			<link rel="alternate" href="https://forums.aptonic.com/post/243/#p243" />
			<content type="html"><![CDATA[<p>John - That&#039;s great, thanks a lot for your help! You&#039;re going to save me hours of my time.<br />And it&#039;s really too much honor that you put me as the author ;-)</p>]]></content>
			<author>
				<name><![CDATA[busterpkeaton]]></name>
				<uri>https://forums.aptonic.com/user/144/</uri>
			</author>
			<updated>2012-04-18T14:35:32Z</updated>
			<id>https://forums.aptonic.com/post/243/#p243</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Action that asks for new name and saves to desktop?]]></title>
			<link rel="alternate" href="https://forums.aptonic.com/post/242/#p242" />
			<content type="html"><![CDATA[<p>Yup, sorry for the delay. You had the right idea. I&#039;ve filled in the blanks for you and the working script can be downloaded below:</p><p><a href="http://aptonic.com/getdestination.php?name=Rename%20%26%20Save.dropzone">http://aptonic.com/getdestination.php?n … e.dropzone</a></p><p>I&#039;ve hosted it in the dropzone-user-scripts repository (<a href="https://github.com/aptonic/dropzone-user-scripts">https://github.com/aptonic/dropzone-user-scripts</a>) so others can benefit from it also. Nice idea <img src="https://forums.aptonic.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[John]]></name>
				<uri>https://forums.aptonic.com/user/2/</uri>
			</author>
			<updated>2012-04-18T12:18:59Z</updated>
			<id>https://forums.aptonic.com/post/242/#p242</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Action that asks for new name and saves to desktop?]]></title>
			<link rel="alternate" href="https://forums.aptonic.com/post/241/#p241" />
			<content type="html"><![CDATA[<p>Hi, I don&#039;t want to sound impatient, but would you please help me? I believe the script I&#039;m looking for may be a) very useful for many people and b) very easy to program for a programmer. The API, which was advertised as &quot;easy&quot; on the mac app store, is in fact rather complicated for non-programmers, I&#039;m afraid to say, and the documentation isn&#039;t much help either...</p>]]></content>
			<author>
				<name><![CDATA[busterpkeaton]]></name>
				<uri>https://forums.aptonic.com/user/144/</uri>
			</author>
			<updated>2012-04-18T11:36:54Z</updated>
			<id>https://forums.aptonic.com/post/241/#p241</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Action that asks for new name and saves to desktop?]]></title>
			<link rel="alternate" href="https://forums.aptonic.com/post/239/#p239" />
			<content type="html"><![CDATA[<p>John - thanks for your reply. <br />My script does sound pretty similar to Move File and Copy File but yes, the name-asking is crucial.<br />I did check out the script, and I tried to adapt it to fit my needs; however, as I have no experience with Ruby and very little with programming in general, I got stuck pretty quickly. This is how far I got (please don&#039;t laugh):</p><p>#!/usr/bin/ruby</p><p># Dropzone Destination Info<br /># Name: Rename &amp; save to folder<br /># Description: Allows you to rename files and save them to a folder of your choice<br /># Handles: NSFilenamesPboardType<br /># Creator: Buster P. Keaton<br /># URL: <a href="http://www.notarealURI.com">http://www.notarealURI.com</a><br /># OptionsNIB: ChooseFolder</p><p>def dragged</p><p>output = `./CocoaDialog standard-inputbox --title &quot;Rename File&quot; --e --informative-text &quot;Enter new name for this file (minus extension):&quot;`</p><p>filename = output.split(&quot;\n&quot;)[1]<br />&nbsp; $dz.determinate(true)<br />&nbsp; $dz.begin(&quot;Copying file...&quot;)<br />&nbsp; Rsync.do_copy($items, ENV[&#039;EXTRA_PATH&#039;], false)<br />&nbsp; $dz.finish(&quot;Copy Complete&quot;)<br />&nbsp; $dz.url(false)<br />end</p><p>def clicked<br />&nbsp; escaped_path = ENV[&#039;EXTRA_PATH&#039;].gsub(/[&quot;`$\\]/){ |s| &#039;\\&#039; + s }<br />&nbsp; system(&quot;open \&quot;#{escaped_path}\&quot;&quot;)<br />end</p><p>I have no idea how I would be able to tell the program to use the inputted text as the new filename...<br />Help would be very welcome! This script is more or less the reason why I bought Dropzone, and it turns out to be much harder to fix than I thought.</p>]]></content>
			<author>
				<name><![CDATA[busterpkeaton]]></name>
				<uri>https://forums.aptonic.com/user/144/</uri>
			</author>
			<updated>2012-04-15T15:03:23Z</updated>
			<id>https://forums.aptonic.com/post/239/#p239</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Action that asks for new name and saves to desktop?]]></title>
			<link rel="alternate" href="https://forums.aptonic.com/post/237/#p237" />
			<content type="html"><![CDATA[<p>This sounds pretty similar to the Move Files &amp; Copy Files destinations that ship with Dropzone. Have you looked at those?</p><p>If the key element is needing to rename the files before moving/copying then this is certainly possible but will require some changes to these destinations. Right click on the Dropzone app bundle then do &#039;Show Package Contents&#039; and navigate into Contents/Resources/Destination Scripts and have a look at the Move Files.dropzone destination in a text editor for a starting point.</p><p>Also, see the API documentation at <a href="http://aptonic.com/api">http://aptonic.com/api</a></p>]]></content>
			<author>
				<name><![CDATA[John]]></name>
				<uri>https://forums.aptonic.com/user/2/</uri>
			</author>
			<updated>2012-04-15T03:36:48Z</updated>
			<id>https://forums.aptonic.com/post/237/#p237</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Action that asks for new name and saves to desktop?]]></title>
			<link rel="alternate" href="https://forums.aptonic.com/post/236/#p236" />
			<content type="html"><![CDATA[<p>I tried making an action that accepts dragged files, opens a dialog window asking for a new filename, and then saves them to a specified folder, but I utterly failed. Is this something that is at all possible with Dropzone?<br />Regards</p>]]></content>
			<author>
				<name><![CDATA[busterpkeaton]]></name>
				<uri>https://forums.aptonic.com/user/144/</uri>
			</author>
			<updated>2012-04-13T08:37:25Z</updated>
			<id>https://forums.aptonic.com/post/236/#p236</id>
		</entry>
</feed>
