text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
set theFormattedNotes to theFormattedNotes & "Body: " & "\n" & item a of theBodyText & "\n" & "\n" | Keynote%20to%20Markdown.scpt |
set theFormattedNotes to theFormattedNotes & return | Keynote%20to%20Markdown.scpt |
set AppleScript's text item delimiters to {return, ASCII character 10} | Keynote%20to%20Markdown.scpt |
set theFormattedNotes to text items of theFormattedNotes | Keynote%20to%20Markdown.scpt |
set theFormattedNotes to theFormattedNotes as string | Keynote%20to%20Markdown.scpt |
make new document with properties {text:theFormattedNotes} | Keynote%20to%20Markdown.scpt |
save document 1 in file (dest_folder & thePresentationName & ".md") | Keynote%20to%20Markdown.scpt |
log this_file as text | Keynote%20to%20Markdown.scpt |
open location "http://doc.qt.io/qt-5/search-results.html?q=" & argv | qtdoc.applescript |
display dialog "Please select a folder and run the script again" buttons {"Abort"} | Script 24-21.applescript |
set the_folder to missing value | Script 24-21.applescript |
if class of the_selection is in {folder, news group} then | Script 24-21.applescript |
set the_folder to the_selection | Script 24-21.applescript |
set the_messages to current messages | Script 24-21.applescript |
if (count the_messages) = 1 then | Script 24-21.applescript |
set the_folder to storage of item 1 of the_messages | Script 24-21.applescript |
display dialog "Please select a folder and run the script again" buttons {"Abort"} default button 1 with icon stop | Script 24-21.applescript |
if the_folder ≠ missing value then | Script 24-21.applescript |
set folder_name to name of the_folder | Script 24-21.applescript |
set sender_list to (address of sender of every message of the_folder) | Script 24-21.applescript |
set name_list to (display name of sender of every message of the_folder) | Script 24-21.applescript |
set folder_name to "Selected Messages" | Script 24-21.applescript |
set sender_list to {} -- List of email addresses | Script 24-21.applescript |
set name_list to {} -- List of display names | Script 24-21.applescript |
repeat with this_message in the_messages | Script 24-21.applescript |
set end of sender_list to address of sender of this_message | Script 24-21.applescript |
set end of name_list to display name of sender of this_message | Script 24-21.applescript |
set the_file to ((get path to temporary items folder) as text) & "SenderScript" | Script 24-21.applescript |
set data_file to open for access the_file with write permission | Script 24-21.applescript |
set eof data_file to 0 | Script 24-21.applescript |
set AppleScript's text item delimiters to {linefeed} | Script 24-21.applescript |
set sender_text to sender_list as text | Script 24-21.applescript |
write sender_text to data_file as «class utf8» | Script 24-21.applescript |
close access data_file | Script 24-21.applescript |
set the_script to "sort -f " & quoted form of (POSIX path of the_file) & " | tr '[:upper:]' '[:lower:]' | uniq -c" | Script 24-21.applescript |
set frequency_info to paragraphs of (do shell script the_script) | Script 24-21.applescript |
set result_list to {{"Display Name", "Email Address", "Message Count"}} | Script 24-21.applescript |
repeat with this_item in frequency_info | Script 24-21.applescript |
set message_count to word 1 of this_item | Script 24-21.applescript |
set email_address to (text 6 thru -1 of this_item) | Script 24-21.applescript |
repeat with i from 1 to (count sender_list) | Script 24-21.applescript |
if item i of sender_list is email_address then | Script 24-21.applescript |
set display_name to item i of name_list | Script 24-21.applescript |
if display_name = "" then set display_name to contents of email_address | Script 24-21.applescript |
set end of result_list to {display_name, email_address, message_count} | Script 24-21.applescript |
make new workbook | Script 24-21.applescript |
set the view of window 1 to normal view | Script 24-21.applescript |
set the display page breaks of the active sheet to false | Script 24-21.applescript |
set name of active sheet to "Count Senders" | Script 24-21.applescript |
set the_rows to count result_list | Script 24-21.applescript |
set the_columns to count (item 1 of result_list) | Script 24-21.applescript |
set the_range to get resize (range "a1" of active sheet of active workbook) row size the_rows column size the_columns | Script 24-21.applescript |
set value of the_range to result_list | Script 24-21.applescript |
set bold of font object of row 1 to true | Script 24-21.applescript |
sort the_range key1 (column 3 of the_range) order1 sort descending header header yes | Script 24-21.applescript |
autofit (columns of the_range) | Script 24-21.applescript |
property theSeparator : return & return & "= = = = = = = = = = = = = = = =" & return & return | combinaTextos.scpt |
set currentDate to do shell script "/bin/date +%d%m%y" | combinaTextos.scpt |
set sourceFolder to (choose folder with prompt "Selecciona la carpeta de origen") | combinaTextos.scpt |
tell application "Finder" to set outputFolder to container of sourceFolder | combinaTextos.scpt |
set theseFiles to (list folder sourceFolder without invisibles) | combinaTextos.scpt |
set comboFile to open for access file ((outputFolder as string) & "textos - " & currentDate & ".txt") with write permission | combinaTextos.scpt |
set startPoint to 0.0 | combinaTextos.scpt |
repeat with thisFile in theseFiles | combinaTextos.scpt |
set thisData to read file ((sourceFolder as string) & thisFile) | combinaTextos.scpt |
write thisData & theSeparator to comboFile starting at (startPoint + 1) | combinaTextos.scpt |
set startPoint to get eof comboFile | combinaTextos.scpt |
close access comboFile | combinaTextos.scpt |
set carpetaDestino to (choose folder with prompt "Selecciona la carpeta de destino") | creaSubcarpetas.scpt |
set carpetaFecha to text returned of (display dialog "Ingresa el año:" default answer "Año a listar") | creaSubcarpetas.scpt |
set subFolder1 to text returned of (display dialog "Ingresa la subcarpeta:" default answer "subCarpeta 1") | creaSubcarpetas.scpt |
set subFolder2 to text returned of (display dialog "Ingresa la subcarpeta:" default answer "subCarpeta 2") | creaSubcarpetas.scpt |
set subFolder3 to text returned of (display dialog "Ingresa la subcarpeta:" default answer "subCarpeta 3") | creaSubcarpetas.scpt |
set carpetaListar to (make new folder at carpetaDestino with properties {name:carpetaFecha}) | creaSubcarpetas.scpt |
set mesesListado to text -2 thru -1 of ("0" & i) | creaSubcarpetas.scpt |
set carpetaMeses to (make new folder at carpetaListar with properties {name:mesesListado}) | creaSubcarpetas.scpt |
repeat with anItem in {subFolder1, subFolder2, subFolder3} | creaSubcarpetas.scpt |
make new folder at carpetaMeses with properties {name:anItem} | creaSubcarpetas.scpt |
display notification "Ha finalizado la compresión del archivo" with title "Proceso completado" | creaSubcarpetas.scpt |
property prixHoraire : 25.0 | AppDelegate copy 4.applescript |
property cheminPOSIXModeleFactureExcel : "/Users/bruno/Documents/binfoservice/Modele_Facture_v0_5.xltx" | AppDelegate copy 4.applescript |
property cheminPOSIXdossierFactures : "/Users/bruno/Documents/binfoservice/Factures" | AppDelegate copy 4.applescript |
property monAdresseCourrier : "Bruno Boissonnet <bruno@binfoservice.fr>" | AppDelegate copy 4.applescript |
property maSignature : "Signature nº5" | AppDelegate copy 4.applescript |
property monSujet : "Facture B Info Service" | AppDelegate copy 4.applescript |
property contenuMessage1 : "Bonjour,\n\nveuillez trouver ci-jointe la facture de l'intervention du " | AppDelegate copy 4.applescript |
property contenuMessage2 : ".\n\nCordialement.\nBruno.\n\n---\n\n" | AppDelegate copy 4.applescript |
property prefixNomFichierFacture : "Facture_00" | AppDelegate copy 4.applescript |
property extensionFichierFacture : ".pdf" | AppDelegate copy 4.applescript |
property cheminPOSIXFichierLog : "/Users/bruno/Library/Logs/Facture.log" --"/Users/bruno/Desktop/log.txt" | AppDelegate copy 4.applescript |
property referenceVersFichierLog : "" | AppDelegate copy 4.applescript |
property theWindow : missing value | AppDelegate copy 4.applescript |
property datePicker : missing value | AppDelegate copy 4.applescript |
property tfNomClient : missing value | AppDelegate copy 4.applescript |
property tfTypeIntervention : missing value | AppDelegate copy 4.applescript |
property tfDureeIntervention : missing value | AppDelegate copy 4.applescript |
property tfNumeroDeFacture : missing value | AppDelegate copy 4.applescript |
property tfPrixHoraire : missing value | AppDelegate copy 4.applescript |
property numeroFacture : "" | AppDelegate copy 4.applescript |
property nomFichierFacture : "" | AppDelegate copy 4.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.