text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
tell me to say "How many video units do you want to import?" | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set videoUnitList to {} | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
repeat with i from 1 to 14 | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set end of videoUnitList to i | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set chosenVideoUnits to choose from list videoUnitList with prompt "Choose how many video actibvity units to import" | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set chosenVideoUnits to item 1 of chosenVideoUnits # flatten list | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
tell sheet chosenUnit | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
if value of cell i contains "(ID: " then | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set end of classNames to value of cell i | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
tell me to say "Which class' grades do you want to import?" | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set chosenClass to choose from list classNames with prompt "Which class do you want to import grades from?" | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set chosenClass to item 1 of chosenClass # Flatten to string | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set startOfClassInfoRowAddress to address of row of first cell where value of it contains chosenClass | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
repeat with i from startOfClassInfoRowAddress to count of rows | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
if value of cell i of column 1 is "Summary" then | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set endOfClassInfoRowAddress to address of row of cell i of column 1 | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set scoreColumnAddress to address of column of first cell where value of it is "Score" | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set scoreRowAddress to address of row of first cell where value of it is "Score" | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set columnHeaderNames to {} | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set scores to {} | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
if value of cell scoreRowAddress of column i contains "Score" then | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set unitName to "VIDEO" | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set unitName2 to value of cell 3 of column i | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
if item 2 of words of unitName2 > chosenVideoUnits then | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set end of columnHeaderNames to "MEL " & unitName & " " & text 1 through ((offset of ":" in unitName2) + 1) of unitName2 & value of cell 4 of column i | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
else if chosenUnit contains "test" then | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set unitName to value of cell 2 of column i | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set end of columnHeaderNames to "MEL " & unitName | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set end of columnHeaderNames to "MEL " & text 1 through ((offset of ":" in unitName) + 1) of unitName & " " & value of cell 4 of column i | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
repeat with j from (startOfClassInfoRowAddress + 1) to (endOfClassInfoRowAddress - 1) | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
if value of cell j of column i is not in skip then | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set end of scores to {value of cell j of column 2, item loopCounter of columnHeaderNames, value of cell j of column i} | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
tell sheet targetSheet | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
repeat with h from 1 to count of columnHeaderNames | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
if value of cells of row 1 contains item h of columnHeaderNames then | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set the format of the last column to checkbox | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set the value of the first cell of the last column to item h of columnHeaderNames | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set usernameColumnAddress to address of column of first cell whose value of it contains "MEL Username" | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set changedGradeCounter to 0 | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
repeat with i from 1 to count of scores # loop through scores import | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
tell column usernameColumnAddress | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set rowCoordinate to address of row of (first cell whose value of it is item 1 of item i of scores) | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set columnCoordinate to address of column of (first cell whose value of it is item 2 of item i of scores) | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
tell column columnCoordinate | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
tell cell rowCoordinate | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
if chosenUnit contains "TEST" then | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set format to percent | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set value to item 3 of item i of scores | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set changedGradeCounter to changedGradeCounter + 1 | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
if value is false then | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set value to true | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
say "checked " & changedGradeCounter & " checkboxes" | Numbers to Numbers (MyEnglishLab to Gradebook).applescript |
set {a, b, c} to {1, 2, 3} | set {a, b, c} to {1, 2, 3}.applescript |
tell application "AppleScript Editor" | Script 24-23.applescript |
compile document 1 | Script 24-23.applescript |
set script_text to text of document 1 | Script 24-23.applescript |
set line_number to 1 | Script 24-23.applescript |
set formatted_lines to {} | Script 24-23.applescript |
set is_continuing_line to false | Script 24-23.applescript |
repeat with line_ref in paragraphs of script_text | Script 24-23.applescript |
if contents of line_ref = "" then -- Empty lines are blank | Script 24-23.applescript |
set end of formatted_lines to "" | Script 24-23.applescript |
else if is_continuing_line then -- Don't number continuing lines | Script 24-23.applescript |
set end of formatted_lines to " " & line_ref | Script 24-23.applescript |
else -- Add a line number | Script 24-23.applescript |
set end of formatted_lines to (line_number as text) & ". " & line_ref | Script 24-23.applescript |
set line_number to line_number + 1 | Script 24-23.applescript |
set is_continuing_line to line_ref ends with "¬" | Script 24-23.applescript |
set formatted_text to formatted_lines as text | Script 24-23.applescript |
set content of selection to formatted_text | Script 24-23.applescript |
clear formatting selection | Script 24-23.applescript |
set style of paragraphs of selection to Word style "code" of active document | Script 24-23.applescript |
set style of first paragraph of selection to Word style "code first" of active document | Script 24-23.applescript |
set style of last paragraph of selection to Word style "code last" of active document | Script 24-23.applescript |
tell find object of selection | Script 24-23.applescript |
clear formatting | Script 24-23.applescript |
set content to tab | Script 24-23.applescript |
clear formatting of its replacement | Script 24-23.applescript |
set content of its replacement to " " | Script 24-23.applescript |
execute find wrap find find continue replace replace all with match forward | Script 24-23.applescript |
repeat with x from 2 to (count rows of active sheet) | Contest%20Entry%20Script%20v2.scpt |
if value of cell 1 of row x = "" then exit repeat | Contest%20Entry%20Script%20v2.scpt |
key code 8 using {command down} -- command-c, copy active cell | Contest%20Entry%20Script%20v2.scpt |
set URL of active tab of first window to "http://example.test/form/123" -- REPLACE with URL of the active contest that you are going to import your entries into. | Contest%20Entry%20Script%20v2.scpt |
key code 48 -- tab key cycles through the links on your contest entry page until you get to the entry form. | Contest%20Entry%20Script%20v2.scpt |
key code 125 -- down arrow cycles through responses to "are you human?" question | Contest%20Entry%20Script%20v2.scpt |
key code 36 -- enter key to select | Contest%20Entry%20Script%20v2.scpt |
key code 48 -- tab key to move to "name" field | Contest%20Entry%20Script%20v2.scpt |
key code 9 using {command down} -- command-v to past the name | Contest%20Entry%20Script%20v2.scpt |
key code 123 -- switch back to MS Excel and move the active cell left to get email address | Contest%20Entry%20Script%20v2.scpt |
key code 8 using {command down} -- copy the email address | Contest%20Entry%20Script%20v2.scpt |
key code 48 -- switch to Chrome and hit tab to move to "email" field | Contest%20Entry%20Script%20v2.scpt |
key code 9 using {command down} -- paste email | Contest%20Entry%20Script%20v2.scpt |
key code 48 -- tab to "enter" button | Contest%20Entry%20Script%20v2.scpt |
key code 36 -- enter | Contest%20Entry%20Script%20v2.scpt |
set windowList to every tab of every window | Contest%20Entry%20Script%20v2.scpt |
repeat with tabList in windowList | Contest%20Entry%20Script%20v2.scpt |
set tabList to tabList as any | Contest%20Entry%20Script%20v2.scpt |
repeat with tabItr in tabList | Contest%20Entry%20Script%20v2.scpt |
set tabItr to tabItr as any | Contest%20Entry%20Script%20v2.scpt |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.