MACSCRPT Archives

January 2006

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:
Mark Lively <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 20 Jan 2006 16:35:48 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
On Jan 20, 2006, at 3:50 PM, Chuck Pelto wrote:

> set thisMachine to "eppc://MyName:[log in to unmask]"
>
> tell application "Make DMGs" of machine thisMachine to open file  
> "Make DMGs" of folder "Applications" of startup disk

Got that result too.

It doesn't like the machine being a variable like that.

What I got to work is.


set machineList to {application "Finder" of machine "eppc:// 
lively:[log in to unmask]"}
repeat with thisMachine in machineList
	using terms from application "Finder"
		tell thisMachine
			open file "iTunes.app" of folder "Applications" of startup disk
		end tell
	end using terms from
end repeat

Add more machines to the list as needed.  Also note that I am telling  
Finder to open the application.

-Mark
I don't work.  The computers work.  I just tell them how to do it.

ATOM RSS1 RSS2