Re: Using Log with Smile
Re: Using Log with Smile
- Subject: Re: Using Log with Smile
- From: Barry Wainwright <email@hidden>
- Date: Thu, 22 Jan 2015 15:12:53 +0000
> On 22 Jan 2015, at 14:56, Robert Poland <email@hidden> wrote:
>
> Isn’t there an easier way? buried in 4000 lines would be APITA.
>
>
set logFilePath to ((path to home folder) as text) & "Library:Logs:myScript.log"
try
set logFile to open for access logFilePath with write permission
on error
close access logFile
return -99
end try
tell application "Console" to open (logFilePath as alias)
#
# Your Script
#
write "Log This: " & (current date) & return to logFile
#
# More Script
#
close access (logFile)
--
Barry
_______________________________________________
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