Re: reading files in the system folder
Re: reading files in the system folder
- Subject: Re: reading files in the system folder
- From: kai <email@hidden>
- Date: Wed, 19 Oct 2005 03:19:06 +0100
On 19 Oct 2005, at 02:49, Malcolm Fitzgerald wrote:
I'd like to play with words. There is a copy of websters dictionary
at /usr/share/dict so that looks like a handy resource.
Unfortunately I can't get at it in the manner I'd expect.
try
set d to read file "/usr/share/dict/web2"
on error m number n
{m, n}
end try
--> {"File /usr/share/dict/web2 wasn't found.", -43}
I don't think a POSIX style path was expected, Malcolm. Try something
like:
set f to "/usr/share/dict/web2"
set d to read POSIX file f
---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden