James,<div><br></div><div>Use jsfile to write the variable/string to a file and then execute the file.</div><div><br></div><div>Work out what is wrong and adjust filePro accordingly.</div><div><br></div><div>Ken<span></span><br>
<br>On Thursday, 20 June 2013, James Flanagan  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I was hopeful that was the fix, but the three slashes did not work in place of the single slash.  thanks,<br>

<br>
James Flanagan<br>
Flantec.com<br>
<br>
email:  James@Flantec.com<br>
mobile: 760-458-8498<br>
home:   219-221-6219<br>
text:           <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;7604588498@txt.att.net&#39;)">7604588498@txt.att.net</a><br>
<br>
aim:            Flantec<br>
oovoo:  Flantec<br>
Skype:  Flantec<br>
ichat:  <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;Flantec@mac.com&#39;)">Flantec@mac.com</a><br>
<br>
home:   1901 Cidermill Road<br>
                Michigan City, IN 46360<br>
<br>
On Jun 19, 2013, at 7:11 PM, Kenneth Brody &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;kenbrody@spamcop.net&#39;)">kenbrody@spamcop.net</a>&gt; wrote:<br>
<br>
&gt; On 6/19/2013 6:44 PM, James Flanagan wrote:<br>
&gt;&gt; I am trying to send a unix command that requires &quot; &#39; &quot; (single quote<br>
&gt;&gt; characters) to encapsulate the data that is being added as metadata in a<br>
&gt;&gt; file. I have tried using the &quot; \ &quot; prior to each single quote character, and<br>
&gt;&gt; if I msgbox the uc variable from the code below, the resulting command<br>
&gt;&gt; appears perfect. however, when uc is actually run by the system command, the<br>
&gt;&gt; single quotes do not appear to be translated properly because I get a<br>
&gt;&gt; message on the screen that says&quot; Error - File not Found - bedroom&quot;. That<br>
&gt;&gt; tells me that the single quotes are not being respected to keep &quot;master<br>
&gt;&gt; bedroom&quot; as a single string. Therefore, exiftool misinterprets bedroom as<br>
&gt;&gt; the filename due to the space character between master and bedroom.<br>
&gt;&gt;<br>
&gt;&gt; I am using FilePro 5.7 on FreeBSD 9.0 p3.<br>
&gt;&gt;<br>
&gt;&gt; I am hopeful that there is an easy solution to this.  thank you very much,<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ::fn=&quot;/tmp/test.jpg&quot;:<br>
&gt;&gt; ::va=&quot;master bedroom&quot;:<br>
&gt;&gt; ::uc=&quot;/usr/local/bin/exiftool -q -iptc^AObjectName=\&#39;&quot;{va{&quot;\&#39;&quot;&lt;fn:<br>
&gt;&gt; ::system noredraw uc:<br>
&gt;<br>
&gt; I&#39;m not on a *nix box at the moment, but IIRC the problem is that you need<br>
&gt; to use a triple-backslash-quote in order for the shell to see backslash-quote.<br>
&gt;<br>
&gt; See, for example:<br>
&gt;<br>
&gt;<br>
&gt; <a href="http://stackoverflow.com/questions/13689738/keeping-double-quotes-when-passing-string-to-popen-in-c" target="_blank">http://stackoverflow.com/questions/13689738/keeping-double-quotes-when-passing-string-to-popen-in-c</a><br>

&gt;<br>
&gt; (Yes, it&#39;s an article about &quot;popen&quot; and not &quot;system&quot;, but the same basic<br>
&gt; rules apply.)<br>
&gt;<br>
&gt; I believe you need:<br>
&gt;<br>
&gt;     uc=&quot;/usr/local/bin/exiftool -q -iptc:ObjectName=\\\&#39;&quot;{va{&quot;\\\&#39;&quot;&lt;fn<br>
&gt;<br>
&gt; As I said, I&#39;m not on a *nix box at the moment, so I can&#39;t test it, but it<br>
&gt; should be a simple test for you to try.<br>
&gt;<br>
&gt; --<br>
&gt; Kenneth Brody<br>
&gt; _______________________________________________<br>
&gt; Filepro-list mailing list<br>
&gt; <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;Filepro-list@lists.celestial.com&#39;)">Filepro-list@lists.celestial.com</a><br>
&gt; Subscribe/Unsubscribe/Subscription Changes<br>
&gt; <a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20130619/5e62f6cc/attachment.html" target="_blank">http://mailman.celestial.com/pipermail/filepro-list/attachments/20130619/5e62f6cc/attachment.html</a><br>

_______________________________________________<br>
Filepro-list mailing list<br>
<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;Filepro-list@lists.celestial.com&#39;)">Filepro-list@lists.celestial.com</a><br>
Subscribe/Unsubscribe/Subscription Changes<br>
<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
</blockquote></div>