Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.system > #90454

Re: Applescript Q: file specifications

From Jolly Roger <jollyroger@pobox.com>
Newsgroups comp.sys.mac.system
Subject Re: Applescript Q: file specifications
Date 2016-03-28 20:03 +0000
Organization People for the Ethical Treatment of Pirates
Message-ID <dlth13F6q94U3@mid.individual.net> (permalink)
References (2 earlier) <56f8302a$0$14578$b1db1813$2411a48f@news.astraweb.com> <1mktkf3.14k3lwj1shpznkN%dempson@actrix.gen.nz> <56f8d583$0$5013$b1db1813$7968482@news.astraweb.com> <dlt202F3omfU1@mid.individual.net> <56f983f0$0$16692$c3e8da3$76a7c58f@news.astraweb.com>

Show all headers | View raw


On 2016-03-28, JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
> On 2016-03-28 11:47, Jolly Roger wrote:
>> set quotedString to the quoted form of filePath
>
> set quotedfile to the quoted form of aPhoto's original path
> write "original: " & quotedfile & return to outfile

That's not what I wrote above. Notably, "aPhoto's original path" isn't
necessarily a string, depending on the context.

> It doesn't like the "quoted form" in first line above.
>
> iPhoto got an error: Can’t make quoted form of original path of photo id
> 4.294973456E+9 into type reference.

No, what it doesn't like is the fact that "aPhoto's original path" is
resolving into an object reference: original path of photo id
 22 > 4.294973456E+9. Coerce it to a string before you send it to "the
quoted form of" to fix the problem:

set quotedfile to the quoted form of (aPhoto's original path as text)

You may get away with:

set quotedfile to the quoted form of (aPhoto's original path)

-- 
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

Back to comp.sys.mac.system | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Applescript Q: file specifications JF Mezei <jfmezei.spamnot@vaxination.ca> - 2016-03-27 01:54 -0400
  Re: Applescript Q: file specifications dempson@actrix.gen.nz (David Empson) - 2016-03-27 21:36 +1300
    Re: Applescript Q: file specifications JF Mezei <jfmezei.spamnot@vaxination.ca> - 2016-03-27 15:10 -0400
      Re: Applescript Q: file specifications Jolly Roger <jollyroger@pobox.com> - 2016-03-27 19:25 +0000
      Re: Applescript Q: file specifications dempson@actrix.gen.nz (David Empson) - 2016-03-28 12:35 +1300
        Re: Applescript Q: file specifications JF Mezei <jfmezei.spamnot@vaxination.ca> - 2016-03-28 02:55 -0400
          Re: Applescript Q: file specifications Jolly Roger <jollyroger@pobox.com> - 2016-03-28 15:47 +0000
            Re: Applescript Q: file specifications JF Mezei <jfmezei.spamnot@vaxination.ca> - 2016-03-28 15:20 -0400
              Re: Applescript Q: file specifications Jolly Roger <jollyroger@pobox.com> - 2016-03-28 20:03 +0000
                Re: Applescript Q: file specifications JF Mezei <jfmezei.spamnot@vaxination.ca> - 2016-03-28 17:08 -0400
                Re: Applescript Q: file specifications Jolly Roger <jollyroger@pobox.com> - 2016-03-28 21:15 +0000
  Re: Applescript Q: file specifications Paul Sture <nospam@sture.ch> - 2016-03-27 10:53 +0200
  Re: Applescript Q: file specifications Jolly Roger <jollyroger@pobox.com> - 2016-03-27 16:53 +0000

csiph-web