• 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: Creating a log file.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a log file.


  • Subject: Re: Creating a log file.
  • From: Steven Valenti <email@hidden>
  • Date: Wed, 20 Oct 2004 14:59:01 -0400

Isn't a file automatically generated??


set Log_Type to "Write this to log file"

WriteFile(Log_Type)


to WriteFile(TheData)

        try

                set Txt_Path to (((path to desktop) as string) & "Log.txt")
--Location of log file

                set theFile to (open for access file Txt_Path with write
permission)

                set eof of theFile to 0

                write TheData to theFile

                close access theFile

        on error

                try

                        close access file Txt_Path

                end try

        end try

end WriteFile


On Wednesday, October 20, 2004, at 02:28 PM, Vic Piercy wrote:


I am trying to create a log file from Applescript. I would like to save

the log file to a specific location. I have been able to create a log

file from an existing file that is on my desktop by using open for

access (path to desktop) "Log.txt", but I would like to create a new

log file and save it to a different folder with a different name

without having to open a file. Can anyone help? Thank you in advance!!


Vic Piercy




 _______________________________________________

Do not post admin requests to the list. They will be ignored.

Applescript-users mailing list      (email@hidden)

Help/Unsubscribe/Update your Subscription:

m


This email sent to email@hidden



 _______________________________________________
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

  • Prev by Date: Re: Creating a log file.
  • Next by Date: Re: Appleworks.
  • Previous by thread: Re: Creating a log file.
  • Next by thread: secure text fields
  • Index(es):
    • Date
    • Thread