Benvenuto Visitatore ( Log In | Registrati )
![]() ![]() |
26 May 2008, 15:48
Messaggio
#1
|
|
|
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 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 |
|
|
|
|
|
|
|
27 May 2008, 01:33
Messaggio
#2
|
|
|
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'é! 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 |
|
|
|
|
30 May 2008, 00:39
Messaggio
#3
|
|
|
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 -------------------- |
|
|
|
|
30 May 2008, 00:47
Messaggio
#4
|
|
|
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 |
|
|
|
|
![]() ![]() |
| Titolo discussione | Risposte | Autore discussione | Visite | Ultima azione | |||
|---|---|---|---|---|---|---|---|
![]() |
5 | Simply Mac | 46 | Ieri, 23:28 Ultimo messaggio di: Simply Mac |
|||
![]() |
6 | fabris | 55 | Ieri, 20:00 Ultimo messaggio di: fabris |
|||
![]() |
3 | MacIavelli | 80 | 1 October 2008 - 14:25 Ultimo messaggio di: MacIavelli |
|||
![]() |
1 | andreabg | 89 | 9 September 2008 - 02:33 Ultimo messaggio di: poweruser |
|||
![]() |
10 | Alp_Vampire | 217 | 17 August 2008 - 13:26 Ultimo messaggio di: atomik |
|||
![]() |
0 | surfman | 88 | 30 July 2008 - 13:02 Ultimo messaggio di: surfman |
|||
![]() |
18 | chebfarid | 254 | 27 July 2008 - 11:49 Ultimo messaggio di: poweruser |
|||
![]() |
5 | Roberto Rota | 116 | 27 July 2008 - 10:23 Ultimo messaggio di: sirguich_ |
|||
![]() |
5 | Roberto Rota | 214 | 26 July 2008 - 18:25 Ultimo messaggio di: poweruser |
|||
![]() |
4 | sirguich_ | 159 | 11 July 2008 - 16:03 Ultimo messaggio di: sirguich_ |
|||
![]() |
9 | wio76 | 183 | 5 July 2008 - 07:09 Ultimo messaggio di: wio76 |
|||
![]() |
4 | pinolo | 289 | 2 July 2008 - 16:51 Ultimo messaggio di: matteo7 |
|||
|
Versione Lo-Fi | Oggi è il: 8 October 2008 - 12:18 |
| IP.Board Skin Developed By Creative Networks | ||