realbasic-nug.it
[Top] [All Lists]

Re: backup

To: "REALbasic NUG Italian" <realbasic-nug dot it at lists dot realsoftware dot com>
Subject: Re: backup
From: "Areasas (Alice)" <areasas at alice dot it>
Date: Mon, 6 Aug 2007 09:59:49 +0200
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug dot it at lists dot realsoftware dot com
Importance: normal
Priority: normal
References: <F6F1A2C4-310B-42AB-84AA-295E03BE7157 at tiscali dot it>
Thread-index: AcfX/wqGb6HFpwpATlWgTF26ZcidnQ==
Caro Giovanni,

per un cliente, ho realizzato questo script, che funziona da diversi mesi, e forse può esserTi utile:

set n to 0
repeat until n is 1
        try
mount volume "afp://192.168.x.x/nome" as user name "name" with password "password"
                delay 10
                tell application "Finder"
                        if exists disk "nome" then
                                set n to 1
                                beep
                        else
                                set n to 0
                                delay 10
                        end if
                end tell
        end try
end repeat


Ovviamente, i campi sono da completare con i veri valori!

Buon lavoro,


Carmine


Il giorno 06/ago/07, alle ore 09:36, Giovanni Gualeni ha scritto:

Ciao a tutti,
anche qui faccio una domanda forse gia' sentita:

vorrei attivare e disattivare, ad orari prestabiliti, un server PC sulla rete per usarlo per i miei backup. Ho provato varie stringhe abbastanza semplici inserite in un applescript ma per un motivo o per l'altro qualcosa non va.

Ad esempio per montare il server sulla scrivania ho provato questa stringa:

tell application "Finder"
        open location "smb://utente:password at 192 dot 168 dot x dot x/FOLDER"
                
        activate
        select Finder window 1
        close Finder window 1
end tell

ma se 'smonto' il server con:

do shell script "umount /Volumes/FOLDER/"

quando la procedura si ripete, va in errore perche' il server e' ancora attivo.

Ugualmente, se il server e' gia' visibile sulla scrivania, la precedente istruzione tenta cmq l'attivazione e va in errore.

Cosa sbaglio?

Giovanni



From  Fri 10 Aug 2007 15:33:39 +0200
Return-Path: <realbasic-nug dot it-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
        id 53FD93ABD54A; Fri, 10 Aug 2007 06:33:57 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on
        www.realsoftware.com
X-Spam-Level:
X-Spam-Status: No, score=-1.6 required=4.5 testsºYES_00,NO_REAL_NAME
        autolearn=no version=3.1.1
Received: from lists.realsoftware.com (m.realsoftware.com [66.116.103.65])
        by xmail.realsoftware.com (Postfix) with ESMTP id 8547A3ABD542;
        Fri, 10 Aug 2007 06:33:56 -0700 (PDT)
Received: from real-software-mini.local (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP id 30040535E07;
        Fri, 10 Aug 2007 08:33:47 -0500 (CDT)
X-Original-To: realbasic-nug dot it at lists dot realsoftware dot com
Delivered-To: realbasic-nug dot it at lists dot realsoftware dot com
Received: from vsmtp12.tin.it (vsmtp12.tin.it [212.216.176.206])
        by lists.realsoftware.com (Postfix) with ESMTP id 887A5535DFB
        for <realbasic-nug dot it at lists dot realsoftware dot com>;
        Fri, 10 Aug 2007 08:33:42 -0500 (CDT)
Received: from [192.168.0.2] (87.11.121.251) by vsmtp12.tin.it (7.3.122)
        id 468CAC94034DCCA5 for realbasic-nug dot it at lists dot realsoftware 
dot com;
        Fri, 10 Aug 2007 15:33:50 +0200
Mime-Version: 1.0
X-Sender: baccheschi at box dot tin dot it
Message-Id: <p05200f00c2e21892d745 at [192 dot 168 dot 0 dot 2]>
Date: Fri, 10 Aug 2007 15:33:39 +0200
To: realbasic-nug dot it at lists dot realsoftware dot com
From: baccheschi at tin dot it
Subject: un browser
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-BeenThere: realbasic-nug dot it at lists dot realsoftware dot com
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: REALbasic NUG Italian <realbasic-nug dot it at lists dot realsoftware 
dot com>
Sender: realbasic-nug dot it-bounces at lists dot realsoftware dot com
Errors-To: realbasic-nug dot it-bounces at lists dot realsoftware dot com

Ciao a tutti

 desidererei sapere se e' possibile scegliere un BROWSER da programma di RB

 per default  ( suppongo) nel MAC che uso  il programma che ho
scritto in RB sceglie FIrefox
e' possibile cambiarlo con istruzioni all' interno del programmma  RB  ?

Grazie a Chi mi puo' dire qualcosa
 Mario


<Prev in Thread] Current Thread [Next in Thread>
  • backup, Giovanni Gualeni
    • Re: backup, Areasas (Alice) <=