• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: reading files in the system folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >reading files in the system folder (From: Malcolm Fitzgerald <email@hidden>)

  • Prev by Date: Re: filemaker applescript question
  • Next by Date: Re: Mounting and Dismounting local or server volumes on Tiger
  • Previous by thread: reading files in the system folder
  • Next by thread: Slow script with long lists
  • Index(es):
    • Date
    • Thread