<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Dropzone Forums — Add OptionsNib to pass a string]]></title>
	<link rel="self" href="https://forums.aptonic.com/feed/atom/topic/624" />
	<updated>2026-04-11T03:49:17Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.aptonic.com/topic/624/add-optionsnib-to-pass-a-string/</id>
		<entry>
			<title type="html"><![CDATA[Re: Add OptionsNib to pass a string]]></title>
			<link rel="alternate" href="https://forums.aptonic.com/post/1630/#p1630" />
			<content type="html"><![CDATA[<p>I tried to guess URL…but yes, thank you! That’s what I’m looking for.</p>]]></content>
			<author>
				<name><![CDATA[microwerx]]></name>
				<uri>https://forums.aptonic.com/user/28967/</uri>
			</author>
			<updated>2026-04-11T03:49:17Z</updated>
			<id>https://forums.aptonic.com/post/1630/#p1630</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add OptionsNib to pass a string]]></title>
			<link rel="alternate" href="https://forums.aptonic.com/post/1629/#p1629" />
			<content type="html"><![CDATA[<p>Here&#039;s an example of an action that does this:</p><div class="codebox"><pre><code># Dropzone Action Info
# Name: Open Different URL Scheme
# Description: Open 
# Creator: Aptonic
# URL: https://aptonic.com
# Events: Clicked
# OptionsNIB: OpenURL
# SkipConfig: No
# RunsSandboxed: Yes
# Version: 1.0
# MinDropzoneVersion: 5.0
 
def clicked
  url = ENV[&#039;url&#039;]

  if url &amp;&amp; !url.empty?
    system(&#039;open&#039;, url)
    $dz.finish(&quot;Opened: #{url}&quot;)
  else
    $dz.fail(&quot;No URL provided&quot;)
  end

  $dz.url(false)
end</code></pre></div><p>This uses the OpenURL OptionsNIB and lets you use alternative URL schemes.</p>]]></content>
			<author>
				<name><![CDATA[John]]></name>
				<uri>https://forums.aptonic.com/user/2/</uri>
			</author>
			<updated>2026-04-10T02:22:50Z</updated>
			<id>https://forums.aptonic.com/post/1629/#p1629</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Add OptionsNib to pass a string]]></title>
			<link rel="alternate" href="https://forums.aptonic.com/post/1628/#p1628" />
			<content type="html"><![CDATA[<p>I want to make an action that acts like the Open URL action. Open URL allows you to specify the URL that you&#039;d like to open. I&#039;d like to make something similar but that uses a different URL scheme. For instance, apps are allowed to specify a custom scheme that opens that app. The built-in ones are `open:` and `shortcut:`. I have a custom app that opens with customapp://0ba204 and I could launch it on the command-line with `open &quot;customapp://0ba204&quot;`.</p><p>Maybe this is already supported, but I couldn&#039;t seem to find a way to do that.</p><p>I think that passing a string could be used to set command-line arguments for a command--so I think this could also be super useful.</p>]]></content>
			<author>
				<name><![CDATA[microwerx]]></name>
				<uri>https://forums.aptonic.com/user/28967/</uri>
			</author>
			<updated>2026-04-09T14:30:52Z</updated>
			<id>https://forums.aptonic.com/post/1628/#p1628</id>
		</entry>
</feed>
