text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
set contactAge to contactAge + 1 | Calendrier_Anniversaire.applescript |
set evtDescription to "" & contactName & " a " & contactAge & " ans" | Calendrier_Anniversaire.applescript |
set evtAnniversaire to my creerEvtAnniversaire(calendarName, eventDate, evtDescription) | Calendrier_Anniversaire.applescript |
my ajouterAlarme(evtAnniversaire, soundAlarmTime, soundAlarmSound) | Calendrier_Anniversaire.applescript |
my ajouterRappelMail(evtAnniversaire, mailAlarmDay1, mailAlarmTime1) | Calendrier_Anniversaire.applescript |
if girlFriendName is not equal to "" and contactName is equal to girlFriendName then | Calendrier_Anniversaire.applescript |
my ajouterRappelMail(evtAnniversaire, mailAlarmDay2, mailAlarmTime2) | Calendrier_Anniversaire.applescript |
my ajouterRappelMail(evtAnniversaire, mailAlarmDay3, mailAlarmTime3) | Calendrier_Anniversaire.applescript |
on lireContactAnniversaire() | Calendrier_Anniversaire.applescript |
set _listeContactAnniversaire to {} | Calendrier_Anniversaire.applescript |
repeat with i in (get people whose birth date is not missing value) | Calendrier_Anniversaire.applescript |
tell i to set {contactBirthday, contactName} to {birth date, name} | Calendrier_Anniversaire.applescript |
set end of _listeContactAnniversaire to {contactBirthday, contactName} | Calendrier_Anniversaire.applescript |
return _listeContactAnniversaire | Calendrier_Anniversaire.applescript |
end lireContactAnniversaire | Calendrier_Anniversaire.applescript |
on creerCalendrier(_calendarName, _calendarDescription, _calendarColor) | Calendrier_Anniversaire.applescript |
set _calendrierAnniversaire to missing value | Calendrier_Anniversaire.applescript |
if exists calendar _calendarName then | Calendrier_Anniversaire.applescript |
delete calendar _calendarName | Calendrier_Anniversaire.applescript |
set _calendrierAnniversaire to make new calendar at end of calendars with properties {name:_calendarName, description:_calendarDescription} | Calendrier_Anniversaire.applescript |
set the color of _calendrierAnniversaire to _calendarColor | Calendrier_Anniversaire.applescript |
return _calendrierAnniversaire | Calendrier_Anniversaire.applescript |
end creerCalendrier | Calendrier_Anniversaire.applescript |
on creerEvtAnniversaire(_calendarName, _birthdayDate, _evtDescription) | Calendrier_Anniversaire.applescript |
set _evtAnniversaire to missing value | Calendrier_Anniversaire.applescript |
set _evtAnniversaire to (make new event at end of events of calendar _calendarName with properties ¬ | Calendrier_Anniversaire.applescript |
{summary:_evtDescription, start date:_birthdayDate, allday event:true, recurrence:"FREQ=YEARLY;INTERVAL=1"}) | Calendrier_Anniversaire.applescript |
return _evtAnniversaire | Calendrier_Anniversaire.applescript |
end creerEvtAnniversaire | Calendrier_Anniversaire.applescript |
on ajouterAlarme(_evtAnniversaire, _soundAlarmTime, _soundAlarmSound) | Calendrier_Anniversaire.applescript |
tell _evtAnniversaire | Calendrier_Anniversaire.applescript |
make new sound alarm at end with properties {trigger interval:_soundAlarmTime, sound name:_soundAlarmSound} | Calendrier_Anniversaire.applescript |
end ajouterAlarme | Calendrier_Anniversaire.applescript |
on ajouterRappelMail(_evtAnniversaire, _mailAlarmDay1, _mailAlarmTime1) | Calendrier_Anniversaire.applescript |
set alarmTime to (start date) - _mailAlarmDay1 * days + _mailAlarmTime1 * hours | Calendrier_Anniversaire.applescript |
make new mail alarm at end with properties {trigger date:alarmTime} | Calendrier_Anniversaire.applescript |
end ajouterRappelMail | Calendrier_Anniversaire.applescript |
tell O to toggleColon(selectedItems()) | Colonize.applescript |
O's setColon(selectedItems() of O) | Colonize.applescript |
O's clearColon(selectedItems() of O) | Colonize.applescript |
global std, uni, textUtil, listUtil | text-mate.applescript |
set thisCaseId to "text-mate-spotCheck" | text-mate.applescript |
Manual: Focus Window | text-mate.applescript |
Manual: Open File | text-mate.applescript |
logger's infof("Current Project Folder Name: {}", sut's getCurrentProjectFolderName()) | text-mate.applescript |
sut's focusWindowEndingWith("Delete Daily") | text-mate.applescript |
sut's openFile(configSystem's getValue("AppleScript Core Project Path") & "/examples/what's up.applescript") | text-mate.applescript |
activate application "TextMate" | text-mate.applescript |
script TextMateInstance | text-mate.applescript |
set partiallyEncoded to textUtil's replace(filePath, " ", "%20") | text-mate.applescript |
set mateUrl to format {"txmt://open/?url=file://{}", partiallyEncoded} | text-mate.applescript |
open location mateUrl | text-mate.applescript |
if running of application "TextMate" is false then return missing value | text-mate.applescript |
tell application "System Events" to tell process "TextMate" | text-mate.applescript |
set windowNameTokens to textUtil's split(windomName, uni's SEPARATOR) | text-mate.applescript |
to focusWindowContaining(titleSubstring as text) | text-mate.applescript |
if running of application "TextMate" is false then | text-mate.applescript |
error "TextMate app is not running." | text-mate.applescript |
if not running of application "TextMate" then return false | text-mate.applescript |
set projectFolderName to last item of textUtil's split(windowName, SEPARATOR of uni) | text-mate.applescript |
set startIndex to (offset of projectFolderName in filename) + (length of projectFolderName) + 1 | text-mate.applescript |
on getCurrentProjectFolderName() | text-mate.applescript |
set filenameAndProject to textUtil's split(projectPart, uni's SEPARATOR) | text-mate.applescript |
end getCurrentProjectFolderName | text-mate.applescript |
if running of application "TextMate" is false then return | text-mate.applescript |
set logger to std's import("logger")'s new("text-mate") | text-mate.applescript |
set theFile to (choose file with prompt "Select the Excel Spreadsheet to Convert:") | Excel Worksheets to CSV.applescript |
set outputDirectory to (choose folder with prompt "Select Folder to Output To:") | Excel Worksheets to CSV.applescript |
set maxCount to count of worksheets of active workbook | Excel Worksheets to CSV.applescript |
set theWorksheetname to name of worksheet i of active workbook | Excel Worksheets to CSV.applescript |
set theWorksheet to worksheet i of active workbook | Excel Worksheets to CSV.applescript |
activate object theWorksheet | Excel Worksheets to CSV.applescript |
set theSheetsPath to outputDirectory & theWorksheetname & ".csv" as string | Excel Worksheets to CSV.applescript |
save as theWorksheet filename theSheetsPath file format CSV file format with overwrite | Excel Worksheets to CSV.applescript |
close active workbook saving no | Excel Worksheets to CSV.applescript |
tell body text of document 1 | Script 24-4.applescript |
make new shape at after word 1 of paragraph 2 with properties {shape type:diamond, name:"Shape of a diamond"} | Script 24-4.applescript |
set object text of shape "Shape of a diamond" to "I am a diamond" | Script 24-4.applescript |
set shadow of shape "Shape of a diamond" to true | Script 24-4.applescript |
set shadow color of shape "Shape of a diamond" to {25000, 0, 25000} | Script 24-4.applescript |
set optDoNotOpen to {"com.adiumx.adiumx", "com.skype.skype"} | Launch%20All%20in%20Dock.applescript |
set shiftDoNotOpen to {"com.apple.mail"} | Launch%20All%20in%20Dock.applescript |
set optKeyDown to (do shell script "/usr/local/bin/keys option") | Launch%20All%20in%20Dock.applescript |
set shiftKeyDown to (do shell script "/usr/local/bin/keys shift") | Launch%20All%20in%20Dock.applescript |
set _exclude to "" | Launch%20All%20in%20Dock.applescript |
if optKeyDown = "1" then | Launch%20All%20in%20Dock.applescript |
repeat with _app in optDoNotOpen | Launch%20All%20in%20Dock.applescript |
set _exclude to _exclude & "|grep -v " & _app | Launch%20All%20in%20Dock.applescript |
if shiftKeyDown = "1" then | Launch%20All%20in%20Dock.applescript |
repeat with _app in shiftDoNotOpen | Launch%20All%20in%20Dock.applescript |
return do shell script "for app in $(defaults read com.apple.dock persistent-apps|grep bundle-identifier" & _exclude & "| awk '{print $3}'| tr -d '\";'); do open -g -b $app; done" | Launch%20All%20in%20Dock.applescript |
set myFolder to container of (path to me) as string | Set%20arguments.applescript |
if not (exists file argumentFile) then | Set%20arguments.applescript |
set theOpenedFile to open for access file argumentFile with write permission | Set%20arguments.applescript |
write "" to theOpenedFile starting at eof | Set%20arguments.applescript |
set defaultAnswer to "" | Set%20arguments.applescript |
set defaultAnswer to (read file argumentFile) | Set%20arguments.applescript |
set theText to text returned of (display dialog "Arguments:" default answer defaultAnswer with icon note buttons {"Cancel", "Continue"} default button "Continue") | Set%20arguments.applescript |
writeTextToFile(theText, argumentFile, true) | Set%20arguments.applescript |
return short date string of (get current date) | getShortDate.scpt |
Subsets and Splits