• 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
Startup script not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Startup script not working
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: Nice Automator article on O'Reilly
  • Next by Date: Re: slow folder action script
  • Previous by thread: Finder sorting
  • Next by thread: Re: Startup script not working
  • Index(es):
    • Date
    • Thread