Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: "John B. Stewart" <email@hidden>
- Date: Thu, 1 Feb 2001 05:06:57 -0500
At 4:21 PM -0800 1/31/01, Braulio Gonzales wrote:
>
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.
Here's what I use, it changes the Startup disk then restarts. You will need to change the name of the disk in the script.
tell application "Startup Disk"
activate
set startup disk alias of it to alias "Mac HD:"
quit
end tell
tell application "Finder" to restart
John