The following warnings occurred:
Warning [2] Undefined variable $announcement - Line: 29 - File: showthread.php(1651) : eval()'d code PHP 8.3.6 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php(1651) : eval()'d code 29 errorHandler->error_callback
/showthread.php 1651 eval
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 43 - File: showthread.php(1651) : eval()'d code PHP 8.3.6 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php(1651) : eval()'d code 43 errorHandler->error_callback
/showthread.php 1651 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Acciones de carpeta ( Automator )
#2

Bueh  Cool , esto no es nada pa una grandísima gurú insuperable como yo  Cool

Aquí tienes tu script  :laugh: :laugh: lo hice en unos segundos  :laugh:

property extension_list : {”avi”, “mpg”, “mpeg”, “mv4″}
property done_foldername : “Sistema:Users:nombre de usuario:Movies”

on adding folder items to this_folder after receiving added_items

– Obtenemos la carpeta de peliculas
tell application “Finder”
set the target_folder to folder done_foldername
end tell
try

– Para cada item añadido
repeat with i from 1 to number of items in added_items
set this_item to item i of added_items
set the item_info to the info for this_item

– Comprobamos que sea una pelicula
if (the name extension of the item_info is in the extension_list) then

– Si es una pelicula movemos el fichero a la carpeta de peliculas
tell application “Finder”
set the target_file to (move this_item to the target_folder with replacing)
end tell
end if
end repeat

on error error_message number error_number
if the error_number is not -128 then
tell application “Finder”
activate
display dialog error_message buttons {”Cancel”} default button 1 giving up after 120
end tell
end if
end try
end adding folder items to

=) =)
Quienes presumen de no haber perdido nunca el tiempo no saben lo que se han perdido
Reply


Messages In This Thread
Acciones de carpeta ( Automator ) - by wisso - 05-11-2009, 19:15
Re: Acciones de carpeta ( Automator ) - by Larita - 06-11-2009, 17:54

Possibly Related Threads…
Thread Author Replies Views Last Post
  carpeta 'escritorio' cambió a 'desktop' y no sé renombrarla calobo 6 16.397 13-10-2015, 12:42
Last Post: admin
  Acción de automator para cambiar permisos de un archivo iceman 7 13.348 13-10-2015, 00:31
Last Post: iceman
  borrado carpeta sistema javierdc 1 4.580 08-10-2014, 19:11
Last Post: admin
  Como saco la carpeta iTunes para formatear? jonocopoulov 8 12.573 29-12-2011, 16:09
Last Post: jonocopoulov
  Presentación y Ayuda con automator. unicornio1978 1 3.680 05-06-2009, 16:27
Last Post: Mac@ries

Forum Jump:


Users browsing this thread: 1 Guest(s)