RE: When is a file open but not open?
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