• 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
Running Scripts at Logout
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Running Scripts at Logout


  • Subject: Running Scripts at Logout
  • From: "Greg Back" <email@hidden>
  • Date: Wed, 05 Sep 2001 16:43:46 -0400

Hi All-

I don't know if this is the best place to post this question, but it has
something to do with applescript, and a lot of you know a lot about Macs any
way, so here goes nothing...

I use Kaleidoscope and Multiple Users, and like to choose a different scheme
every time I log in. I use the following script as a startup item. It works
fine..

<Script>
--tell application "Finder"
--set pathToSchemes to "Macintosh HD:Utilities:Kaleidoscope
Goodies:Kaleidoscope Schemes:"
--set schemesList to (name of entire contents of alias pathToSchemes) as
list
--set myscheme to choose from list schemesList with prompt "Choose a scheme
for this session:" default items "Apple Platinum" OK button name "Use This
Scheme" cancel button name
"Leave it Alone" without multiple selections allowed and empty selection
allowed
--set schemePath to pathToSchemes & myscheme
--open alias schemePath
--end tell
</Script>

Note: Watch for line wraps, the beginning of each line is marked with "--"

But I would like to set the scheme back to Apple Platinum automatically at
the end of each session to keep from disturbing the other users. I tried
saving this as an applet, but it logs out before it accomplishes its task.

<Script>
--tell application "Finder"
--open alias "iMac HD:Utilities:Kaleidoscope Goodies:Kaleidoscope
Schemes:Apple Platinum"
--end tell
</Script>

Again, watch for the line break.

Obviously, I also tried putting an alias to the Apple Platinum Scheme in the
Shutdown Items folder. And no, I didn't put it in the system folder's
SDItems folder, but in the user's (It does work in the System folder, but
not each time I logout.).

Any suggestions??

TIA
--
Greg Back
email@hidden

Don't Forget: Macs Rule
http://hompage.mac.com/gback/index.html


  • Prev by Date: Re: can i 'store script' as stay open applet?
  • Next by Date: Re: FileMaker Pro, repeating fields and pasting from Clipboard
  • Previous by thread: Re: can i 'store script' as stay open applet?
  • Next by thread: why does this file info lister work sometimes, not others
  • Index(es):
    • Date
    • Thread