Re: Srcipts in Start Up Folder
Re: Srcipts in Start Up Folder
- Subject: Re: Srcipts in Start Up Folder
- From: Jon Pugh <email@hidden>
- Date: Sat, 22 Sep 2001 22:42:07 -0700
At 4:09 PM +1200 9/23/2001, Blair Ward wrote:
>
I have had a mixed bag of success with scripts in the Start Up folder.
I put this and only this script in my Startup Items folder, as an applet:
on runThem()
set s to path to scripts folder as string
set s to s & "Startup Scripts:"
set ss to list folder s
repeat with f in ss
set fs to s & f
set sf to load script fs
tell sf to run
end repeat
end runThem
on idle
tell application "Finder"
set isRunning to execution state = running
end tell
if isRunning then
runThem()
quit
end if
return 1
end idle
Then I put some compiled scripts, named alphabetically in order, generally with numbers in front, in this folder:
Disk:System Folder:Scripts:Startup Scripts:
They will run once the Finder is up and running (since some scripts want to call on the Finder, it is useful to have it ready first).
I like this technique. It's been working well. The script could be more bulletproof, but if you don't put garbage in the script folder you'll be fine.
Jon