Saturday, July 4, 2020

#1 2002-04-18 10:17:02 am

General
Member
From:: Texas
Registered: 2005-08-08
Posts: 944
Website

create text file in OS X

i know i'm missing something simple here... when trying to create a text file's content yesterday, i got this message:

Finder got an error: Can't make file (document file "HTTPD_log.txt" of folder "Desktop" of folder "nate" of folder "Users" of startup disk) into a «class fsrf»



this code made the file but apparently couldn't write to it:

Applescript:

set theFile to (make new file at theLoc with properties {name:"blah_log.txt", kind:"file", creator type:"ttxt", owner:"nate", owner privileges:"read write"})

what am i missing? and do i need to include privilege info in the properties?


General

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)