• 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: Invisible File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Invisible File (From: Gil Dawson <email@hidden>)

  • Prev by Date: Invisible File Generator V1
  • Next by Date: Re: Invisible File Generator V1
  • Previous by thread: Invisible File Generator V1
  • Next by thread: Re: Invisible File
  • Index(es):
    • Date
    • Thread