IPB     Il futuro di Tevac dipende da te!  

Benvenuto Visitatore ( Log In | Registrati )

Nuovo Contest: Una Foto che Vale una Vacanza!!

  · · · · · · · · · · · ·
Reply to this topicStart new topic
> script automatico cambio permessi
Matalyn
messaggio 26 May 2008, 15:48
Messaggio #1


Level 3/11
***

Gruppo: Forum User +
Messaggi: 125
Iscritto il: 21-June 05
Da: Gravellona Toce (VB)
Utente Nr.: 3.980



In seguito ad un grosso problema segnalato in
questo post, dovrei creare uno script da impostare come azione cartella sul server in modo da cambiare i permessi ad ogni nuova sottocartella creata.

Premesso che non ho pratica di applescript e che ho provato a documentarmi, riuscite a darmi una mano a tamponare questo problema in attesa di scoprire la soluzione?

Aspetto fiducioso icon_wink.gif

Mata.


--------------------
http://matalyn.smugmug.com

Founder dell'Associazione Fotografica www.Photo4Terzi.org

PowerBook G4 12" - PowerMac G4 FW800 - PowerMac G4 GB-Lan dual - iMac G3 DV-500 - Macintosh LC - Macintosh Classic
Go to the top of the page
 
+Quote Post
Matalyn
messaggio 27 May 2008, 01:33
Messaggio #2


Level 3/11
***

Gruppo: Forum User +
Messaggi: 125
Iscritto il: 21-June 05
Da: Gravellona Toce (VB)
Utente Nr.: 3.980



CITAZIONE(poweruser @ 27 May 2008, 00:13) *
Mi viene un atroce dubbio però. Ho l'impressione che l'attach via codice delle azioni alle cartelle non sia disponibile su Panter.
Controlla se nel dizionario di System Event c'è la suite Folder Actions Suite.

Ciao
Paolo


Il dubbio mi perseguitava: ho dovuto accendere l'iMac G3...

CODICE
Folder Actions Suite: Terms and Events for controlling Folder Actions

Class folder action: An action attached to a folder in the file system
Plural form:
    folder actions
Elements:
    script by name, by numeric index, before/after another element, as a range of elements, satisfying a test
Properties:
    <Inheritance>  item  [r/o]  -- All of the properties of the superclass.
    enabled  boolean  -- Is the folder action enabled?
    name  Unicode text  -- the name of the folder action, which is also the name of the folder
    path  anything  [r/o]  -- the path to the folder to which the folder action applies
    volume  Unicode text  [r/o]  -- the volume on which the folder action resides

Class script: A script invoked by a folder action
Plural form:
    scripts
Properties:
    <Inheritance>  item  [r/o]  -- All of the properties of the superclass.
    enabled  boolean  -- Is the script enabled?
    name  Unicode text  [r/o]  -- the name of the script
    path  Unicode text  [r/o]  -- the file system path of the disk
    POSIX path  Unicode text  [r/o]  -- the POSIX file system path of the disk

attach action to: Attach an action to a folder
    attach action to  folder  -- The folder to which the action is to be attached.
        using  Unicode text  -- a file containing the script to attach
    Result:   folder action  -- the reply for the command

attached scripts: List the actions attached to a folder
    attached scripts  folder  -- The folder for which the attached scripts are to be listed.
    Result:   list  -- the reply for the command

edit action of: Edit an action of a folder
    edit action of  folder  -- The folder for which the action is to be edited.
        [using action number  integer]  -- the index number of the action to edit...
        [using action name  Unicode text]  -- ...or the name of the action to edit
    Result:   file  -- the reply for the command

remove action from: Remove a folder action from a folder
    remove action from  folder  -- The folder from which the action is to be removed.
        [using action number  integer]  -- the index number of the action to remove...
        [using action name  Unicode text]  -- ...or the name of the action to remove
    Result:   folder action  -- the reply for the command


Per fortuna, la suite c'é! icon_wink.gif

Mata.


--------------------
http://matalyn.smugmug.com

Founder dell'Associazione Fotografica www.Photo4Terzi.org

PowerBook G4 12" - PowerMac G4 FW800 - PowerMac G4 GB-Lan dual - iMac G3 DV-500 - Macintosh LC - Macintosh Classic
Go to the top of the page
 
+Quote Post
poweruser
messaggio 30 May 2008, 00:39
Messaggio #3


MacInATopic
Gruppo icone

Gruppo: Root Admin
Messaggi: 24.318
Iscritto il: 27-July 03
Da: Maglie (LE)
Utente Nr.: 440



Al momento non ho la possibilità di scrivere uno script concreto, ma tramite quelle funzioni puoi assegnare lo script stesso alle nuove cartelle che aggiunge. Oltre a questo lo script si preoccuperà di cambiare i permessi ai file.
Per elaborare le sottocartelle guarda qui.

Ciao
Paolo


--------------------
Paolo Portaluri

guru, n: A computer owner who can read the manual.
Go to the top of the page
 
+Quote Post
Matalyn
messaggio 30 May 2008, 00:47
Messaggio #4


Level 3/11
***

Gruppo: Forum User +
Messaggi: 125
Iscritto il: 21-June 05
Da: Gravellona Toce (VB)
Utente Nr.: 3.980



Inizierò a studiarci un po'... devo dire che sono un esordiente totale in Applescript, quindi qualsiasi ulteriore aiuto o suggerimento è benaccetto!

Mata.


--------------------
http://matalyn.smugmug.com

Founder dell'Associazione Fotografica www.Photo4Terzi.org

PowerBook G4 12" - PowerMac G4 FW800 - PowerMac G4 GB-Lan dual - iMac G3 DV-500 - Macintosh LC - Macintosh Classic
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 

Collapse

> 

    Titolo discussione Risposte Autore discussione Visite Ultima azione
No New Posts   5 Simply Mac 46 Ieri, 23:28
Ultimo messaggio di: Simply Mac
No New Posts   6 fabris 55 Ieri, 20:00
Ultimo messaggio di: fabris
No New Posts   3 MacIavelli 80 1 October 2008 - 14:25
Ultimo messaggio di: MacIavelli
No New Posts   1 andreabg 89 9 September 2008 - 02:33
Ultimo messaggio di: poweruser
No new   10 Alp_Vampire 217 17 August 2008 - 13:26
Ultimo messaggio di: atomik
No New Posts   0 surfman 88 30 July 2008 - 13:02
Ultimo messaggio di: surfman
No new   18 chebfarid 254 27 July 2008 - 11:49
Ultimo messaggio di: poweruser
No New Posts   5 Roberto Rota 116 27 July 2008 - 10:23
Ultimo messaggio di: sirguich_
No New Posts   5 Roberto Rota 214 26 July 2008 - 18:25
Ultimo messaggio di: poweruser
No New Posts   4 sirguich_ 159 11 July 2008 - 16:03
Ultimo messaggio di: sirguich_
No new 9 wio76 183 5 July 2008 - 07:09
Ultimo messaggio di: wio76
No New Posts   4 pinolo 289 2 July 2008 - 16:51
Ultimo messaggio di: matteo7

Modalità di visualizzazione: Normale · Passa a: Lineare · Passa a: Outline


RSS Versione Lo-Fi Oggi è il: 8 October 2008 - 12:18
IP.Board Skin Developed By Creative Networks