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, 'cvml', '7604588498@txt.att.net')">7604588498@txt.att.net</a><br>
<br>
aim: Flantec<br>
oovoo: Flantec<br>
Skype: Flantec<br>
ichat: <a href="javascript:;" onclick="_e(event, 'cvml', 'Flantec@mac.com')">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 <<a href="javascript:;" onclick="_e(event, 'cvml', 'kenbrody@spamcop.net')">kenbrody@spamcop.net</a>> wrote:<br>
<br>
> On 6/19/2013 6:44 PM, James Flanagan wrote:<br>
>> I am trying to send a unix command that requires " ' " (single quote<br>
>> characters) to encapsulate the data that is being added as metadata in a<br>
>> file. I have tried using the " \ " prior to each single quote character, and<br>
>> if I msgbox the uc variable from the code below, the resulting command<br>
>> appears perfect. however, when uc is actually run by the system command, the<br>
>> single quotes do not appear to be translated properly because I get a<br>
>> message on the screen that says" Error - File not Found - bedroom". That<br>
>> tells me that the single quotes are not being respected to keep "master<br>
>> bedroom" as a single string. Therefore, exiftool misinterprets bedroom as<br>
>> the filename due to the space character between master and bedroom.<br>
>><br>
>> I am using FilePro 5.7 on FreeBSD 9.0 p3.<br>
>><br>
>> I am hopeful that there is an easy solution to this. thank you very much,<br>
>><br>
>><br>
>> ::fn="/tmp/test.jpg":<br>
>> ::va="master bedroom":<br>
>> ::uc="/usr/local/bin/exiftool -q -iptc^AObjectName=\'"{va{"\'"<fn:<br>
>> ::system noredraw uc:<br>
><br>
> I'm not on a *nix box at the moment, but IIRC the problem is that you need<br>
> to use a triple-backslash-quote in order for the shell to see backslash-quote.<br>
><br>
> See, for example:<br>
><br>
><br>
> <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>
><br>
> (Yes, it's an article about "popen" and not "system", but the same basic<br>
> rules apply.)<br>
><br>
> I believe you need:<br>
><br>
> uc="/usr/local/bin/exiftool -q -iptc:ObjectName=\\\'"{va{"\\\'"<fn<br>
><br>
> As I said, I'm not on a *nix box at the moment, so I can't test it, but it<br>
> should be a simple test for you to try.<br>
><br>
> --<br>
> Kenneth Brody<br>
> _______________________________________________<br>
> Filepro-list mailing list<br>
> <a href="javascript:;" onclick="_e(event, 'cvml', 'Filepro-list@lists.celestial.com')">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>
<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, 'cvml', 'Filepro-list@lists.celestial.com')">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>