Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.mac.system > #90427
| From | Jolly Roger <jollyroger@pobox.com> |
|---|---|
| Newsgroups | comp.sys.mac.system |
| Subject | Re: Applescript Q: file specifications |
| Date | 2016-03-27 19:25 +0000 |
| Organization | People for the Ethical Treatment of Pirates |
| Message-ID | <dlqqdjFh1pnU1@mid.individual.net> (permalink) |
| References | <56f7758c$0$9287$c3e8da3$5d8fb80f@news.astraweb.com> <1mksh01.1t27xubng8j2uN%dempson@actrix.gen.nz> <56f8302a$0$14578$b1db1813$2411a48f@news.astraweb.com> |
On 2016-03-27, JF Mezei <jfmezei.spamnot@vaxination.ca> wrote:
>
> I take it that relative specification such as ../myfile.txt are also
> interpreted by bash and thus not available when accessing files outsde
> of bash ?
No, ../ works fine in AppleScript POSIX paths.
> googled for applescript write text file and first example: (and almost
> all examples).
>
> set outputFile to ((("/Users/david/Desktop/") as string) &
> "LaunchAgent_Alert.txt") as file specification
>
> I can see reasons if you will translate a user's home directory and then
> add further specification to the full path. But all the examples I have
> seen break the directory and filename and assemble them as above even
> when they are constant strings.
That amounts to nothing more than personal taste.
--
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 | Next — Previous in thread | Next in thread | Find similar
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