text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
end extractOTP | viscosity.applescript |
on fillOTP(otp) | viscosity.applescript |
logger's info("Filling Viscosity with OTP") | viscosity.applescript |
set targetWindow to (first window whose name starts with "Viscosity") | viscosity.applescript |
set value of text field 2 of targetWindow to otp | viscosity.applescript |
click button "OK" of targetWindow | viscosity.applescript |
end fillOTP | viscosity.applescript |
set actual101 to matched("amazing", "maz") | viscosity.applescript |
set case101 to "Case 101: Found" | viscosity.applescript |
std's assert(true, actual101, case101) | viscosity.applescript |
set logger to std's import("logger")'s new("viscosity") | viscosity.applescript |
set y1 to menubarSize + usableHeight / 2 | Bottom.applescript |
set y1 to y1 + 22 | Bottom.applescript |
set y1 to y1 - 44 - 14 | Bottom.applescript |
if rating of current track < 0 then | music_remove_star_rating.applescript |
set rating of current track to 0 | music_remove_star_rating.applescript |
set rating of current track to (rating of current track) - 20 | music_remove_star_rating.applescript |
set calendarList to name of calendars | Turn off Calendar alerts.applescript |
set calendarName to choose from list calendarList | Turn off Calendar alerts.applescript |
set calendarName to item 1 of calendarName | Turn off Calendar alerts.applescript |
tell application "Calendar" to tell calendar calendarName | Turn off Calendar alerts.applescript |
set theEvents to get events | Turn off Calendar alerts.applescript |
set countEvents to count theEvents | Turn off Calendar alerts.applescript |
if countEvents = 0 then return | Turn off Calendar alerts.applescript |
set progress total steps to countEvents | Turn off Calendar alerts.applescript |
repeat with i from 1 to countEvents | Turn off Calendar alerts.applescript |
set progress description to "Process Event " & i & " of " & countEvents | Turn off Calendar alerts.applescript |
set anEvent to item i of theEvents | Turn off Calendar alerts.applescript |
set |allday event| to allday event | Turn off Calendar alerts.applescript |
set |start date| to start date | Turn off Calendar alerts.applescript |
set |end date| to end date | Turn off Calendar alerts.applescript |
set |url| to url | Turn off Calendar alerts.applescript |
set |location| to location | Turn off Calendar alerts.applescript |
set |recurrence| to recurrence | Turn off Calendar alerts.applescript |
set |description| to description | Turn off Calendar alerts.applescript |
set |excluded dates| to excluded dates | Turn off Calendar alerts.applescript |
set |stamp date| to stamp date | Turn off Calendar alerts.applescript |
set |summary| to summary | Turn off Calendar alerts.applescript |
delete anEvent | Turn off Calendar alerts.applescript |
set newEvent to (make new event at end of events with properties {allday event:|allday event|, start date:|start date|, end date:|end date|}) | Turn off Calendar alerts.applescript |
tell newEvent | Turn off Calendar alerts.applescript |
if not (|url| is missing value) then set url to |url| | Turn off Calendar alerts.applescript |
if not (|location| is missing value) then set location to |location| | Turn off Calendar alerts.applescript |
if not (|recurrence| is missing value) then set recurrence to |recurrence| | Turn off Calendar alerts.applescript |
if not (|description| is missing value) then set description to |description| | Turn off Calendar alerts.applescript |
if not (|summary| is missing value) then set summary to |summary| | Turn off Calendar alerts.applescript |
if not (|excluded dates| is missing value) then set excluded dates to |excluded dates| | Turn off Calendar alerts.applescript |
if not (|stamp date| is missing value) then set stamp date to |stamp date| | Turn off Calendar alerts.applescript |
set the_path to "/Users/hanaan/Work/todo.txt" | Script 7-4.applescript |
set the_parent_path to text 1 thru (text item -2) of the_path | Script 7-4.applescript |
if (front slideshow exists) = false then | 2012-12-09-TUAW_Waldie.applescript |
set extractBody to button returned of (display alert "Would you like to extract slide content too?" buttons {"Yes", "No"}) = "Yes" | 2012-12-09-TUAW_Waldie.applescript |
tell front slideshow | 2012-12-09-TUAW_Waldie.applescript |
set theTitles to title of every slide | 2012-12-09-TUAW_Waldie.applescript |
if extractBody = true then | 2012-12-09-TUAW_Waldie.applescript |
set theBodyText to body of every slide | 2012-12-09-TUAW_Waldie.applescript |
set theNotes to notes of every slide | 2012-12-09-TUAW_Waldie.applescript |
set theFormattedNotes to "<html><body><h1>" & "Keynote Presentation: " & thePresentationName & "</h1>" & return | 2012-12-09-TUAW_Waldie.applescript |
set theFormattedNotes to theFormattedNotes & "<h2>Slide #" & a & "</h2>" & return | 2012-12-09-TUAW_Waldie.applescript |
set theFormattedNotes to theFormattedNotes & "<b>Title: " & item a of theTitles & "</b>" & return & return | 2012-12-09-TUAW_Waldie.applescript |
set theFormattedNotes to theFormattedNotes & "<b>Body:</b> " & item a of theBodyText & return & return | 2012-12-09-TUAW_Waldie.applescript |
set theFormattedNotes to theFormattedNotes & "<b>Presenter Notes:</b> " & item a of theNotes & return & return | 2012-12-09-TUAW_Waldie.applescript |
set theFormattedNotes to theFormattedNotes & "</body></html>" | 2012-12-09-TUAW_Waldie.applescript |
set theNote to create note notebook "Inbox" title thePresentationName with html theFormattedNotes | 2012-12-09-TUAW_Waldie.applescript |
set the_folder to (choose folder) | Script 20-1.applescript |
clean_alias_files_in_folder(the_folder) | Script 20-1.applescript |
on clean_alias_files_in_folder(the_folder) | Script 20-1.applescript |
set alias_files to every alias file of the_folder | Script 20-1.applescript |
repeat with file_ref in alias_files | Script 20-1.applescript |
if not (exists original item of file_ref) then | Script 20-1.applescript |
delete file_ref | Script 20-1.applescript |
set sub_folders to every folder of the_folder | Script 20-1.applescript |
repeat with folder_ref in sub_folders | Script 20-1.applescript |
my clean_alias_files_in_folder(folder_ref) | Script 20-1.applescript |
end clean_alias_files_in_folder | Script 20-1.applescript |
property ScriptName : "closeFileMakerDatabase_TEST" | closeDatabase.applescript |
closeDatabase({dbName:"WUSHOP"}) | closeDatabase.applescript |
on closeDatabase(prefs) | closeDatabase.applescript |
set defaultPrefs to {waitCycleDelaySeconds:10, waitSaveTotalSeconds:10 * minutes, dbName:null, closeScriptName:"CLOSE_SCRIPT"} | closeDatabase.applescript |
if dbName of prefs is not null then | closeDatabase.applescript |
tell application "FileMaker Pro Advanced" to close database dbName | closeDatabase.applescript |
if debugMode then my logConsole(ScriptName, "DATABASE '" & dbName & "' closed directly.") | closeDatabase.applescript |
if debugMode then my logLEVEL(5, "DATABASE '" & dbName & "' unable to close directly, trying by close script." & errMsg) | closeDatabase.applescript |
set closeMenuItem to menu item "Close" of menu 1 of menu bar item "File" of menu bar 1 | closeDatabase.applescript |
set closeWindowAvailable to fmGUI_Wait_MenuItemAvailable({menuObj:closeMenuItem}) | closeDatabase.applescript |
if closeWindowAvailable then | closeDatabase.applescript |
fmGUI_ManageScripts_FmScript_Select({fmScriptName:(closeScriptName of prefs)}) | closeDatabase.applescript |
set runScriptButton to first button of window 1 whose description is "Perform" | closeDatabase.applescript |
click runScriptButton | closeDatabase.applescript |
error "Close Window menu item was not enabled - front window name is " & frontWindowName number 1024 | closeDatabase.applescript |
if debugMode then logConsole(ScriptName, "No '" & (closeScriptName of prefs) & "' for " & dbName & ", attempting to close window instead") | closeDatabase.applescript |
error "Unable to run close script: " & errMsg number errNum | closeDatabase.applescript |
end closeDatabase | closeDatabase.applescript |
tell application "htcLib" to fmGUI_ManageScripts_Close(prefs) | closeDatabase.applescript |
tell application "htcLib" to fmGUI_ManageScripts_FmScript_Select(prefs) | closeDatabase.applescript |
set currentSheet to get record with uuid "xxxx" | Append to sheet.applescript |
set newRow to "new row" -- text to append | Append to sheet.applescript |
if type of currentSheet is sheet then | Append to sheet.applescript |
set n to count of columns of currentSheet | Append to sheet.applescript |
set theCells to cells of currentSheet | Append to sheet.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.