<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Dropzone Forums — Action that asks for new name and saves to desktop?]]></title>
		<link>https://forums.aptonic.com/topic/85/action-that-asks-for-new-name-and-saves-to-desktop/</link>
		<atom:link href="https://forums.aptonic.com/feed/rss/topic/85/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Action that asks for new name and saves to desktop?.]]></description>
		<lastBuildDate>Wed, 18 Apr 2012 14:35:32 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Action that asks for new name and saves to desktop?]]></title>
			<link>https://forums.aptonic.com/post/243/#p243</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (busterpkeaton)]]></author>
			<pubDate>Wed, 18 Apr 2012 14:35:32 +0000</pubDate>
			<guid>https://forums.aptonic.com/post/243/#p243</guid>
		</item>
		<item>
			<title><![CDATA[Re: Action that asks for new name and saves to desktop?]]></title>
			<link>https://forums.aptonic.com/post/242/#p242</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (John)]]></author>
			<pubDate>Wed, 18 Apr 2012 12:18:59 +0000</pubDate>
			<guid>https://forums.aptonic.com/post/242/#p242</guid>
		</item>
		<item>
			<title><![CDATA[Re: Action that asks for new name and saves to desktop?]]></title>
			<link>https://forums.aptonic.com/post/241/#p241</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (busterpkeaton)]]></author>
			<pubDate>Wed, 18 Apr 2012 11:36:54 +0000</pubDate>
			<guid>https://forums.aptonic.com/post/241/#p241</guid>
		</item>
		<item>
			<title><![CDATA[Re: Action that asks for new name and saves to desktop?]]></title>
			<link>https://forums.aptonic.com/post/239/#p239</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (busterpkeaton)]]></author>
			<pubDate>Sun, 15 Apr 2012 15:03:23 +0000</pubDate>
			<guid>https://forums.aptonic.com/post/239/#p239</guid>
		</item>
		<item>
			<title><![CDATA[Re: Action that asks for new name and saves to desktop?]]></title>
			<link>https://forums.aptonic.com/post/237/#p237</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (John)]]></author>
			<pubDate>Sun, 15 Apr 2012 03:36:48 +0000</pubDate>
			<guid>https://forums.aptonic.com/post/237/#p237</guid>
		</item>
		<item>
			<title><![CDATA[Action that asks for new name and saves to desktop?]]></title>
			<link>https://forums.aptonic.com/post/236/#p236</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (busterpkeaton)]]></author>
			<pubDate>Fri, 13 Apr 2012 08:37:25 +0000</pubDate>
			<guid>https://forums.aptonic.com/post/236/#p236</guid>
		</item>
	</channel>
</rss>
