text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
repeat with i from 1 to count file_list | Script 26-9.applescript |
set the_document to open file template_path | Script 26-9.applescript |
tell the_document | Script 26-9.applescript |
place item i of file_list on text frame "Body" | Script 26-9.applescript |
move paragraph 1 of parent story of text frame "Body" to after parent story of text frame "Head" | Script 26-9.applescript |
delete character -1 of parent story of text frame "Head" | Script 26-9.applescript |
move paragraph 1 of parent story of text frame "Body" to after parent story of text frame "Byline" | Script 26-9.applescript |
delete character -1 of parent story of text frame "Byline" | Script 26-9.applescript |
move paragraph 1 of parent story of text frame "Body" to after parent story of text frame "Intro" | Script 26-9.applescript |
delete character -1 of parent story of text frame "Intro" | Script 26-9.applescript |
save to file (desktop_path & "Finished file " & i & ".indd") | Script 26-9.applescript |
with timeout of 10000 seconds -- In case the user has gone to make a coffee | Script 26-9.applescript |
display dialog "Done, " & (count file_list) & " files processed." buttons {"OK"} default button 1 | Script 26-9.applescript |
set newHeight to height + (height * percentageIncrease) | GrowBottom.scpt |
set newHeight to height + (screenHeight * percentageIncrease) | GrowBottom.scpt |
set size to {width, newHeight} | GrowBottom.scpt |
close workbooks | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
display dialog "Please tell me where the easy lms file is." | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set fileEasyLMS to choose file with prompt "Please select the Easy LMS spreadsheet to process:" | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
display dialog "Please tell me where the grade book is." | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set fileGradebook to choose file with prompt "Please select the gradebook" | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
tell application "Microsoft Excel" to open fileEasyLMS | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
tell application "Microsoft Excel" to open fileGradebook | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set students to {} | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
repeat with i from 2 to count of rows of used range | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
if the (count of ((value of cell ("P" & i)) as string)) is 15 then #Make sure student ID is 15 digits | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
if the value of cell ("J" & i) as integer is greater than 41 then #Make sure at least 42 questions were answered | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set end of students to {value of cell ("P" & i), value of cell ("J" & i), value of cell ("K" & i), value of cell ("D" & i)} | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set noDuplicates to {} | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set duplicates to {} | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
repeat with student in students | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
if item 1 of student is not in noDuplicates then | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set end of noDuplicates to item 1 of student | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
if item 1 of student is not in duplicates then | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set end of duplicates to item 1 of student | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set duplicatesWithData to {} | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
repeat with i from 1 to count of duplicates | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set end of duplicatesWithData to {} | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
repeat with j from 1 to count of students | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
if item i of duplicates is in item 1 of item j of students then | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set end of item i of duplicatesWithData to item j of students | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
repeat with duplicates in duplicatesWithData | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
repeat with duplicat in duplicates | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set end of duplicat to convertDate(item 4 of duplicat) | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set earliest to current date | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set earliestData to {} | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
repeat with i from 1 to count of duplicatesWithData | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
repeat with j from 1 to count of item i of duplicatesWithData | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
if item 5 of item j of item i of duplicatesWithData comes before earliest then | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set earliest to item 5 of item j of item i of duplicatesWithData | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set end of earliestData to {¬
item 1 of item j of item i of duplicatesWithData, ¬
item 2 of item j of item i of duplicatesWithData, ¬
item 3 of item j of item i of duplicatesWithData} | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
repeat with earliest in earliestData | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set end of students to {¬
item 1 of earliest, ¬
item 2 of earliest, ¬
item 3 of earliest} | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
tell workbook 2 | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
repeat with i from 1 to count of worksheets | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
tell worksheet i | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set targetRow to first row index of (find used range what (item 1 of student)) | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set value of cell ("G" & targetRow) to item 2 of student | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set value of cell ("H" & targetRow) to item 3 of student | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
to convertDate(textDate) | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set the month of resultDate to (1 as integer) | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set the day of resultDate to (1 as integer) | Transfer Grades from Excel(Easy-LMS) to Excel(Gradebook).applescript |
set theDate to (y * 10000 + m * 100 + d) as string | dateOperator.scpt |
set theEndDate to theStartDate + (23 * hours) + (59 * minutes) + 59 | dateOperator.scpt |
keystroke "f" using {option down, command down} | search-applescript.scpt |
on getSongResultListFeedback(query) | playsong.applescript |
set theSongs to getResultsFromQuery(query, "name") of config | playsong.applescript |
repeat with theSong in theSongs | playsong.applescript |
addResult({uid:("song-" & songId), valid:"yes", title:songName, subtitle:songArtist, icon:songArtworkPath}) of config | playsong.applescript |
end getSongResultListFeedback | playsong.applescript |
getSongResultListFeedback(query as text) | playsong.applescript |
set apDevice to "Apple TV" | HomeMusicMode.scpt |
click (menu bar item 1 of menu bar 1 whose description contains "Volume") | HomeMusicMode.scpt |
display alert "Cannot reach Volume setting in menu bar. Please enable it." | HomeMusicMode.scpt |
set soundmenu to menu 1 of result | HomeMusicMode.scpt |
click ((menu item 1 where its name starts with apDevice) of soundmenu) | HomeMusicMode.scpt |
display alert "Cannot find \"Apple TV\". You can set Airplay device name in the script." | HomeMusicMode.scpt |
if application "Spotify" is not running then | HomeMusicMode.scpt |
set volume output volume 65 | HomeMusicMode.scpt |
property CGEventType_leftMouseDown : 1 | tray-click.scpt |
property CGEventType_leftMouseUp : 2 | tray-click.scpt |
property CGEventType_rightMouseDown : 3 | tray-click.scpt |
property CGEventType_rightMouseUp : 3 | tray-click.scpt |
property CGEventTapLocation_cgSessionEventTap : 1 | tray-click.scpt |
property CGEventSourceStateID_hidSystemState : 1 | tray-click.scpt |
set tPoint to getTrayPosition() | tray-click.scpt |
mouseClick(tPoint) | tray-click.scpt |
on getTrayPosition() | tray-click.scpt |
set theBottom to item 4 of screen_resolution | tray-click.scpt |
tell (first application process whose bundle identifier is "com.electron.crc-tray") | tray-click.scpt |
return position of menu bar item of menu bar 2 | tray-click.scpt |
end getTrayPosition | tray-click.scpt |
on mouseLeftClick(tPoint) | tray-click.scpt |
set eventClickDown to current application's CGEventCreateMouseEvent(NULL, CGEventType_leftMouseDown, tPoint, NULL) | tray-click.scpt |
current application's GEventPost(eventClickDown, CGEventTapLocation_cgSessionEventTap) | tray-click.scpt |
set eventClickDown to current application's CGEventCreateMouseEvent(NULL, CGEventType_leftMouseUp, tPoint, NULL) | tray-click.scpt |
end mouseLeftClick | tray-click.scpt |
on mouseRightClick(tPoint) | tray-click.scpt |
set eventSource to current application's CGEventSource(CGEventSourceStateID_hidSystemState) | tray-click.scpt |
set eventClickDown to current application's CGEventCreateMouseEvent(eventSource, CGEventType_rightMouseDown, tPoint, NULL) | tray-click.scpt |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.