• 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
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)


  • Subject: (no subject)
  • From: "Braulio Gonzales" <email@hidden>
  • Date: Wed, 31 Jan 2001 16:21:07 -0800

I'm having problems running an AppleScript application that I just finished, let me explain what it is suppose to do. The script changes the startup disk from one drive to another, then I typed the code that makes the Mac restart, then after it restarts, I made it so that the drive that was the startup disk is now initialized. When I ran the script, the AppleScript skipped the restart command, is there a way that i can make AppleScript run the whole script without skipping the restart code, heres my code:

set startup disk to file "Primary:" using file "secondary:System Folder:Control Panels:Startup Disk"

tell application "Finder"
activate
restart
end tell

tell application "Finder"
activate
select startup disk
open selection
select folder "Utilities" of startup disk
open selection
select file "Drive Setup" of folder "Utilities" of startup disk
open selection
close container window of folder "Utilities" of startup disk
MoveMouse {26, 138}
DoDoubleClick
MoveMouse {242, 252}
DoDoubleClick
DoDoubleClick
Quit application "Drive Setup"
end tell

This is my code, I used the following extensions, Set Startup Disk, and
Cursor OSAX.
Thank you.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


  • Follow-Ups:
    • Re: shutting down...
      • From: Phi Sanders <email@hidden>
  • Prev by Date: Quarkxpress
  • Next by Date: Re: shutting down...
  • Previous by thread: Re: (no subject)
  • Next by thread: Re: shutting down...
  • Index(es):
    • Date
    • Thread