• 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
Re: Srcipts in Start Up Folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • OSAXen for scripting non-ASable apps
      • From: "Joseph A. Weaks" <email@hidden>
References: 
 >Srcipts in Start Up Folder (From: Blair Ward <email@hidden>)

  • Prev by Date: Re: Scripts in Start Up Folder
  • Next by Date: Re: Srcipts in Start Up Folder
  • Previous by thread: Re: Srcipts in Start Up Folder
  • Next by thread: OSAXen for scripting non-ASable apps
  • Index(es):
    • Date
    • Thread