Re: Invisible File
Re: Invisible File
- Subject: Re: Invisible File
- From: Bob Stern <email@hidden>
- Date: Sun, 03 Mar 2019 00:48:30 -0800
> On Mar 2, 2019, at 4:54 PM, Gil Dawson <email@hidden> wrote:
>
> Using MacOS 10.11.6, Script Editor 2.8.2 and AppleScript 2.5,
>
> I wish to create a new text file using, e.g.,
>
> set QIFnListsFolder to path to desktop
>
> set QifFileName to "Invisible File Issue"
>
> set TxtFilePath to (QIFnListsFolder & QifFileName & ".txt") as text
>
> try
> close access file TxtFilePath
> end try
> open for access file TxtFilePath with write permission
> write "Test Line" & return to file TxtFilePath starting at eof as text
> close access file TxtFilePath
Works perfectly for me in MacOS 10.13.6. Could be just a problem with Finder
window refreshing in OS 10.11.
However, I corrected your use of “as text”:
I appended “as text” to your first line:
set QIFnListsFolder to (path to desktop) as text
and I deleted “as text” from both lines where you had appended it.
Bob Stern
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden