Google Answers Logo
View Question
 
Q: Applescript to reboot unattended ( Answered 5 out of 5 stars,   3 Comments )
Question  
Subject: Applescript to reboot unattended
Category: Computers > Software
Asked by: headsetsdotcom-ga
List Price: $10.00
Posted: 09 Oct 2002 17:53 PDT
Expires: 08 Nov 2002 16:53 PST
Question ID: 74665
What I have :
* A Mac G4 running OS9.0.4, changing the OS is not an option. 
* I dont have the Developer Studio, I'm unsure wether I have any
capability to author my own AppleScripts
* I have no prior knowledge of AppleScripts, I only know that I can
call them from an application I use.

What I need:
* a link to an AppleScript that I can download and use that will
reboot the machine - COMPLETELY UNATTENDED - closing out of apps
cleanly.
* installation instructions

What I dont need:
* a link to 'how to create AppleScripts'.
* any general info on applescripts

I'm not looking for education on AppleScripts here (maybe later when I
have more time) I'm looking for a quick and dirty answer to a
particular problem. It might be as simple as a text file with the word
reboot in it - in which case its an easy ten bucks to someone to post
me a link to it with installation instructions - it might be a whole
lot more complex...

Thanks!

Request for Question Clarification by lot-ga on 09 Oct 2002 18:16 PDT
Hello,
can you explain the purpose you want the script for?
You want to reboot remotely by executing the script remotely from
another machine? Or do you simply want to shut down the machine at a
specific time and start it up again, and how many times a day?
regards lot-ga

Clarification of Question by headsetsdotcom-ga on 09 Oct 2002 19:00 PDT
I want to call the AppleScript  from with FileMaker 5.5

We have a bunch of FileMaker scripts that run end of day - they take
around 5 or 6 hours to finish. I want the last step of the last script
to be 'Reboot the machine'. This isnt available in FileMaker itself,
but FilMaker does have the ability to call an AppleScript externally.
Unfortunately I know absolutely nothing about AppleScripts...
Answer  
Subject: Re: Applescript to reboot unattended
Answered By: alexander-ga on 30 Oct 2002 10:06 PST
Rated:5 out of 5 stars
 
Sorry I didn't catch this question earlier. Here ya go:

http://eden2.com/restart.sit

I provided two formats, since I'm not sure which FileMaker wants.
(It'll probably work with both.)

RestartApp is an AppleScript Application
RestartScript is an AppleScript compiled script

Just UnStuff it, put it wherever you like, and configure FileMaker to
call one of them. (I'd try RestartApp first.) It does not pop up a
confirmation dialog, and performs a clean reboot.
headsetsdotcom-ga rated this answer:5 out of 5 stars
Great answer - exactly what I was looking for - thanks

Comments  
Subject: Re: Applescript to reboot unattended
From: lot-ga on 10 Oct 2002 05:38 PDT
 
OK..

this is not the Applescript answer you are looking for, 
which is why I didn't post it as the official answer in case it
doesn't work.

This is an 'alternative' quick and dirty solution.

Use your 'Energy Saver' control panel.
1. open panel and and click the schedule tab
2. Set your time you want your Mac to shut down (time it 6 hours after
you execute your Filemaker script)
3. Set the time you want your Mac to start up (perhaps about 1 min
after the shut down)

Now you have a daily automatic unattended reboot?

kind regards
lot-ga
Subject: Re: Applescript to reboot unattended
From: vinods-ga on 10 Oct 2002 07:22 PDT
 
Hi headsetsdotcom, 

I am not a MAC guy, so I am not posting this as an answer. If you use
it and it works, maybe I can post it as an answer!

The script is
---
tell application "Finder"
    restart
end tell
---

That's it! 

warm regards
vinods-ga
Subject: Re: Applescript to reboot unattended
From: headsetsdotcom-ga on 10 Oct 2002 08:41 PDT
 
vinods-ga,

Thanks for your comment - I figured it would be a one or two word
script at its simplest.

What Im hoping is that the restart wont pause if it says for instance,
'Are you sure you want to Restart?' or 'Are you sure you want to close
FileMaker?' or 'You have prit jobs in your queue, do you want to save
them?' etc, etc.

As I dont know AppleScript, dont know how to author an Applescript, or
how to install it, (or in fact anything about applescript), I'm
looking for a complete solution, with installation isntructions. If
anyone out there knows how to take vinod-ga's script, turn it into an
AppleScript file, give me a link to it and tell me where to put it,
thats gotta be an easy ten bucks...

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy