Startup script not working
Startup script not working
- Subject: Startup script not working
- From: Gunno Ivansson <email@hidden>
- Date: Mon, 09 May 2005 08:34:35 +0200
I am trying to save boottime to a file at start up, but it's not working.
Here is my script, it is saved as an application and added to my account's
start up items.
property gCurrentDate : (current date)
property myFilePath : (path to documents folder from user domain as text) &
"Flex:BootTime" & ((day of gCurrentDate) as string) & ((month of
gCurrentDate) as string)'s text 1 thru 3 & ((year of gCurrentDate) as
string) & ".txt"
on run
try
alias myFilePath
on error
set myPosixPath to POSIX path of myFilePath
do shell script "/usr/sbin/sysctl kern.boottime > " & myPosixPath
end try
end run
Other start up scripts that works just fine, for example one that mount
network shares, but this one won't run on start up.
The strange thing is that it runs if I do a restart.
What am I doing wrong? Perhaps there is a better way (I am sure there is) to
store boottime?
Gunno Ivansson
_______________________________________________
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