MACSCRPT Archives

October 2011

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
jeff donovan <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Mon, 10 Oct 2011 08:37:13 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
On Oct 8, 2011, at 10:43 PM, Mark Lively wrote:

> On Oct 8, 2011, at 3:26 PM, Emmett Gray wrote:
> 
>> I have the following script to shut down a bank of machines. It runs from the editor but not when saved as a script or app. It also runs as a QuicKeys script, so that's my workaround. But why? TIA.
>> 
>> set machNum to "11"
>> repeat 7 times
>> 	set machNum to (machNum + 1) as string
>> 	set remoteMachine to "eppc://pge:[log in to unmask]" & machNum
>> 	using terms from application "Finder"
>> 		tell application "Finder" of machine remoteMachine to shut down
>> 	end using terms from
>> end repeat
> 
> I didn't think you could call shut down remotely.
> 
> Do you get an error or a not running?  Have you tried throwing in dialogs?
> 
> -Mark
> 

you can using ssh

do shell script " ssh [log in to unmask] `shutdown -r now` "

ATOM RSS1 RSS2