• 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: When is a file open but not open?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: When is a file open but not open?


  • Subject: RE: When is a file open but not open?
  • From: "Grimm, Kenneth" <email@hidden>
  • Date: Fri, 5 Aug 2005 12:08:08 -0400

> ----------
> From:
> applescript-users-bounces+kgrimm=email@hidden on
> behalf of deivy petrescu
>
> <script>
> set pd to path to desktop as Unicode text
> set pd to ("" & pd & "testanu123.txt")
> write ("This is a test" & return) to file pd
> write ("This is another test" & return) to file pd starting at eof
> </script>
>
>
So when would I use just "write" in place of the "open for
access/write/close for access" dance?

Is one safer? Provides file locking? All my books suggest the dance, not
just the "write"... can you explain further why one and not the other, or do
both have their place in certain instances?

TIA, Ken

 _______________________________________________
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

  • Follow-Ups:
    • RE: When is a file open but not open?
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: When is a file open but not open?
  • Next by Date: RE: When is a file open but not open?
  • Previous by thread: Re: When is a file open but not open?
  • Next by thread: RE: When is a file open but not open?
  • Index(es):
    • Date
    • Thread