Re: Newbie Q on self-executing log app
Re: Newbie Q on self-executing log app
- Subject: Re: Newbie Q on self-executing log app
- From: Mr Tea <email@hidden>
- Date: Thu, 27 Mar 2003 01:34:31 +0000
This from email@hidden - dated 27-03-03 12751 am:
>
Can't set the clipboard of "Wednesday, March 26, 2003 9:25:39 AM"
Here's a script that will get the date and write it to a log file in the
location of your choice. After you have chosen the location you will not
need to select it again. Alternatively, you can hard-code the path to a
preferred folder into the script. If you are adding this to an existing
startup script, put the property declaration at the top.
--===========================================================
property logFolder : ""
if logFolder is "" then choose folder with prompt "Set log folder..."
returning logFolder
set {theDay, theTime} to {date string of (current date), time string of
(current date)}
set logFile to open for access file "" & logFolder & "Startup & Shutdown
Log"
write "Started up at " & theDay & theTime & return to logFile starting
at eof
close access logFile
--===========================================================
(Any lines that abut the left margin of the message window have been wrapped
and should be re-connected to the end of the previous line.)
>
Also could you offer pointers on how to make this self-executing; that is,
>
without that dialog box with the "Run" radio button.
When saving a script as an application, make sure that the 'show startup
screen' checkbox in the save dialog is unchecked. If you have scripts that
show startup screens and you want to change this, open the scripts for
editing and 'save as...' unchecking the boxes as you save them and replacing
the originals. If the box is already unchecked, make sure you aren't leaning
on the control key when the script starts up.
HTH
Nick
pp Mr Tea
--
Brew of the day: Yorkshire Gold
_______________________________________________
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.