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 15:47:14 GMT Lines: 24 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net UknbUny1D6eYDx67EPjfOw0U5pxvbSh/hBw5mhaCPZ8kuuhB0F Cancel-Lock: sha1:ZE8vNSpd41vL+wePKQElYOPhWvM= sha1:flnPZfTdV9kvfcSf/lpybkLcTmc= User-Agent: NewsTap/5.1.7 (iPhone/iPod Touch) Xref: csiph.com comp.sys.mac.system:90445 JF Mezei wrote: > Different question: > > the file specificatiosn as obtained by Applescript from iPhoto look like: > >> /Users/jfmezei/Pictures/iPhoto Library/Masters/2012/Baie James 2012/DSC_1311.NEF > > Is there an easy way to escape spaces in a string to "\ " ? > > Once I have the information extracted from iPhoto, applescript is likely > to call the shell to run exittool to add that info to the original photo > file. (some of my iPhotos already have a .xmp sidecar that was vreated > with Bridge/Camera Raw, so it may be more difficult to add to those > files or modify them - but this is something I am still considering). No need to mess with space escapes. Just quote the string like so: set quotedString to the quoted form of filePath -- 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