Re: Create new file
Re: Create new file
- Subject: Re: Create new file
- From: Hanaan Rosenthal <email@hidden>
- Date: Tue, 10 Feb 2004 11:38:29 -0500
- Organization: Custom Flow Solutions
Hello Dale,
The 'open for access' command creates a new text file if one doesn't exist.
If you're having trouble, make sure to use:
open for access file "the:file:path"
instead of:
open for access alias "the:file:path"
Since the file doesn't exist yet, using alias will throw an error.
You can also use the Finder to create a new file like you would use it to create
a new folder:
tell app "Finder"
make new file at folder containerPath with properties {name:fileName}
end tell
Hanaan
>
>
From: Dale J Martin <email@hidden>
>
Date: 2004/02/10 Tue AM 09:40:01 EST
>
To: AppleScript Users List <email@hidden>
>
Subject: Create new file
>
>
Hi all,
>
>
I'm trying to build a data logger system in which I need to create a
>
new file at midnight and continue the next days data logging. I have
>
the script creating and writing to a file just fine, but I don't know
>
where to start in creating a new file based on time.
>
>
Any help would be greatly appreciated.
>
>
Thanks,
>
>
Dale
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/
applescript-users
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.