Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Jolly Roger Newsgroups: comp.sys.mac.system Subject: Re: Applescript Q: file specifications Date: 28 Mar 2016 21:15:52 GMT Organization: People for the Ethical Treatment of Pirates Lines: 41 Message-ID: References: <56f7758c$0$9287$c3e8da3$5d8fb80f@news.astraweb.com> <1mksh01.1t27xubng8j2uN%dempson@actrix.gen.nz> <56f8302a$0$14578$b1db1813$2411a48f@news.astraweb.com> <1mktkf3.14k3lwj1shpznkN%dempson@actrix.gen.nz> <56f8d583$0$5013$b1db1813$7968482@news.astraweb.com> <56f983f0$0$16692$c3e8da3$76a7c58f@news.astraweb.com> <56f99d53$0$62778$c3e8da3$dbd57e7@news.astraweb.com> X-Trace: individual.net oXuwIo8KN+xt7+JDPwgfGQmSAqIYl8TSEmZbY9UVaDYniEJn/B Cancel-Lock: sha1:h4tZwDt2DnxQIFrqMhWu+PmGsyA= X-Face: _.g>n!a$f3/H3jA]>9pN55*5<`}Tud57>1Y%b|b-Y~()~\t,LZ3e up1/bO{=-) User-Agent: slrn/1.0.1 (Darwin) Xref: csiph.com comp.sys.mac.system:90456 On 2016-03-28, JF Mezei wrote: > On 2016-03-28 16:03, Jolly Roger wrote: >> set quotedfile to the quoted form of (aPhoto's original path as text) > > This worked. > > So how come I am able to > > write "original: " & aPhoto's original path & return to outfile > > which seems happy to handle "original path" as a string, but can't do > the "quoted form" of aPhoto's original path without it trying to quote a > binary object (the phone as a whole). Because it's not resolving to a string in that context, but an object reference instead. Sometimes variables need to be coerced - in any language. > BTW, all it does is add a single quote at start and end of string, > something that would be easier done as > > write "original: '" & aPhoto's original path & "'" & return to outfile That's subjective and debatable. I consider typing "the quoted form of" to be both easier and faster in most cases. > or does this "quoted form" grant the string special powers and different > handling because it is treated as a quoted string ? Or does it just > merely add the ' characters fore and aft of the string and still > considers it a string ? set someString to "this is a string" log class of someString set anotherString to the quoted form of someString log class of anotherString -- E-mail sent to this address may be devoured by my ravenous SPAM filter. I often ignore posts from Google. Use a real news client instead. JR