Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Scripting the finder with Applescript in OS X (10.3.x)

Posted on 2004-08-09
4
Medium Priority
?
433 Views
Last Modified: 2010-04-29
In OS X (10.3) I cannot figure out how to write an Applescript to restart an unattended computer (at a scheduled time). Using the "restart" command (as in OS 9) will only bring up the restart/shutdown dialog box.  I am not sure how to tell the finder to ignore the dialog.
0
Comment
Question by:ravenbio
  • 2
4 Comments
 

Expert Comment

by:mbarkdull
ID: 11758888
The way I would recommend is send the following command to the terminal as sudo.

Be warned:  Scripting a Super User password is not recommended by many experts.

sudo shutdown -r now
********

Not exactly sure how AppleScript handles terminal commands and input to it.  I'll see if I can find out.  It would be nice if the password could be encrypted in the script as well.
0
 

Author Comment

by:ravenbio
ID: 11759023
Unfortunately, I don't have a clue as to how I would script the terminal...
0
 
LVL 23

Accepted Solution

by:
brettmjohnson earned 750 total points
ID: 11759338
> Unfortunately, I don't have a clue as to how I would script the terminal...

Ah, but Dr John Trimmer does:

http://www.osxfaq.com/Tutorials/as_unix/index2.ws

0
 

Author Comment

by:ravenbio
ID: 11759976
Actually, that link is quite useful, thanks!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A common question or need, when setting-up a new Mac for someone would be to make all of the applications, installed, available from the dock. Many people often do not realize an application is installed unless it is in the dock. Creating a custo…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question