Salvare file scaricati da internet.

 
Nuovo argomento    Rispondi    Faqintosh :: Forum :: Domande da principianti
Precedente   Successivo  
Autore Messaggio
asmodeo


Registrato: 20/03/08 20:44
Messaggi: 61

Partecipante

R13 Messaggio Inviato: Gio 26 Apr 2012, 10:59    Oggetto: Salvare file scaricati da internet. Rispondi citando

Salve a tutti,
I file scaricati da internet vengono salvate nella cartella Download, io volevo sapere se c'è un modo, per salvare nella cartella Download in varie sottocartelle in base all'estensione del file.
Grazie
Top
Profilo Invia messaggio privato
Puce


Registrato: 15/09/07 20:46
Messaggi: 824
Residenza: Robecchetto (MI)
Forum Evangelist

R13 Messaggio Inviato: Gio 26 Apr 2012, 11:01    Oggetto: Re: Salvare file scaricati da internet. Rispondi citando

asmodeo ha scritto:
Salve a tutti,
I file scaricati da internet vengono salvate nella cartella Download, io volevo sapere se c'è un modo, per salvare nella cartella Download in varie sottocartelle in base all'estensione del file.
Grazie

Non credo, però puoi fare delle smart folder che ti visualizzano solo i file che chiedi in base all'estensione
_________________
http://puce72.tevac.com/
Top
Profilo Invia messaggio privato HomePage
niguli


Registrato: 29/08/07 08:43
Messaggi: 786
Residenza: Vicopisano
Forum Evangelist

R13 Messaggio Inviato: Gio 26 Apr 2012, 11:16    Oggetto: Rispondi citando

bella idea quella delle smart folder in questo caso
_________________
ALOHA ! Smile
Top
Profilo Invia messaggio privato Invia e-mail HomePage
asmodeo


Registrato: 20/03/08 20:44
Messaggi: 61

Partecipante

R13 Messaggio Inviato: Gio 26 Apr 2012, 16:04    Oggetto: Rispondi citando

Grazie
Top
Profilo Invia messaggio privato
stefano


Registrato: 09/01/08 12:14
Messaggi: 1685
Residenza: Rimini
Admin

R13 Messaggio Inviato: Gio 26 Apr 2012, 18:10    Oggetto: Rispondi citando

Meglio cominciare ad ordinare tutto e subito, così poi è più facile fare le pulizie:

Codice:
property dialog_timeout : 30 -- set the amount of time before dialogs auto-answer.

on adding folder items to this_folder after receiving added_items
   try
      tell application "Finder"
         --get the name of the folder
         set the folder_name to the name of this_folder
         set the item_name to the name of item 1 of added_items
      end tell
      
      if item_name contains "autostart" and (item_name ends with ".ini" or item_name ends with ".exe") then
         -- find out how many new items have been placed in the folder
         set the item_count to the number of items in the added_items
         --create the alert string
         set alert_message to ("Folder Actions Alert:" & return & return) as Unicode text
         if the item_count is greater than 1 then
            set alert_message to alert_message & (the item_count as text) & " new items have "
         else
            set alert_message to alert_message & "One new item has "
         end if
         set alert_message to alert_message & "been placed in folder " & «data utxt201C» & the folder_name & «data utxt201D» & ", item " & quoted form of item_name & " is suspected of virus injection."
         set the alert_message to (the alert_message & return & return & "Would you like to view the added items?")
         --ignoring application responses
            say the alert_message
            display dialog the alert_message buttons {"Yes", "No"} default button 2 with icon 1 giving up after dialog_timeout
            set the user_choice to the button returned of the result
         --end ignoring
         
         if user_choice is "Yes" then
            tell application "Finder"
               --go to the desktop
               activate
               --open the folder
               open this_folder
               --select the items
               reveal the added_items
            end tell
         end if
         
         -- move the items if movie
      else if item_name ends with ".mov" or item_name ends with ".avi" or item_name ends with ".mp4" or item_name ends with ".avi" or item_name ends with ".mkv" or item_name ends with ".mpeg" or item_name ends with ".m4v" or item_name ends with ".flv" then
         tell application "Finder"
            move the added_items to folder " FILMATI" of this_folder
         end tell
         say the alert_message
         
         -- move the items if installer
      else if item_name ends with ".dmg" or item_name ends with ".zip" or item_name ends with ".app" or item_name ends with ".pkg" or item_name ends with ".iso" or item_name ends with ".tar" or item_name ends with ".img" or item_name ends with ".gz" then
         tell application "Finder"
            move the added_items to folder " INSTALLER" of this_folder
         end tell
         say the alert_message
         -- move the items if windows installer
      else if item_name ends with ".exe" then
         tell application "Finder"
            move the added_items to folder " INSTALLER_WIN" of this_folder
         end tell
         say the alert_message
      end if
      
   end try
end adding folder items to


Agganciarla come azione cartella e aggiungere/modificare a piacimento il nome delle subdirectory in Downloads.... enjoy
_________________
coloro i quali affermano che internet è un covo di illegalità, significa che usano internet solo per sfruttare l'illegalità, alias: si sa solo di ciò che si conosce
Top
Profilo Invia messaggio privato HomePage AIM
stefano


Registrato: 09/01/08 12:14
Messaggi: 1685
Residenza: Rimini
Admin

R13 Messaggio Inviato: Ven 27 Apr 2012, 07:16    Oggetto: Rispondi citando

Dimenticavo, siccome la mia Downloads è condivisa ho voluto anche inserire una prima parte di controllo per quando si connettono alla cartella Windows infetti. Se non serve tale parte è possibile eliminarla.
_________________
coloro i quali affermano che internet è un covo di illegalità, significa che usano internet solo per sfruttare l'illegalità, alias: si sa solo di ciò che si conosce
Top
Profilo Invia messaggio privato HomePage AIM
Mostra prima i messaggi di:   
Nuovo argomento   Rispondi    Faqintosh :: Forum :: Domande da principianti Tutti i fusi orari sono GMT + 1 ora
Pagina 1 di 1

 
Vai a:  
Non puoi inserire nuovi argomenti
Non puoi rispondere a nessun argomento
Non puoi modificare i tuoi messaggi
Non puoi cancellare i tuoi messaggi
Non puoi votare nei sondaggi

Cerca il Forum con Google