Mime-Version: |
1.0 (Apple Message framework v746.2) |
Content-Type: |
text/plain; charset=US-ASCII; delsp=yes; format=flowed |
Date: |
Sat, 21 Jan 2006 01:46:47 -0700 |
Reply-To: |
|
Subject: |
|
From: |
|
In-Reply-To: |
|
Content-Transfer-Encoding: |
7bit |
Sender: |
|
Parts/Attachments: |
|
|
THAT WORKS!
Except I had to take off the ".app" extension. If I left that on, it
caused Script Editor the crash.
Now I can have the server delegate tasks to other machines on the
network for nightly backups. I can install the applet on each machine
and, late at night, the server will launch it, remotely, causing each
machines user files to be saved as a disk image on the server.
Thanks,
Chuck
P.S. Sheesh, this is not as intuitive as I think AppleScripting
should be.
On Jan 20, 2006, at 2:35 PM, Mark Lively wrote:
> 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.
>
|
|
|