text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
set headerColumn to headerColumn & {"Week " & (n as string)} | Generate syllabus table in Numbers.applescript |
set bodyColumn to bodyColumn & {""} | Generate syllabus table in Numbers.applescript |
repeat with i in theDays | Generate syllabus table in Numbers.applescript |
set aDay to i as string | Generate syllabus table in Numbers.applescript |
set addClass to false | Generate syllabus table in Numbers.applescript |
if aDay is "m" then | Generate syllabus table in Numbers.applescript |
set addClass to true | Generate syllabus table in Numbers.applescript |
else if aDay is "t" then | Generate syllabus table in Numbers.applescript |
else if aDay is "w" then | Generate syllabus table in Numbers.applescript |
else if aDay is "r" then | Generate syllabus table in Numbers.applescript |
else if aDay is "f" then | Generate syllabus table in Numbers.applescript |
else if aDay is "s" then | Generate syllabus table in Numbers.applescript |
else if aDay is "u" then | Generate syllabus table in Numbers.applescript |
set activityName to "" | Generate syllabus table in Numbers.applescript |
repeat with a in the theAssignments | Generate syllabus table in Numbers.applescript |
if n is item 1 of a then | Generate syllabus table in Numbers.applescript |
if aDay is item 2 of a then | Generate syllabus table in Numbers.applescript |
set activityName to item 3 of a | Generate syllabus table in Numbers.applescript |
set theDeadlines to theDeadlines & {{theDate, item 3 of a}} | Generate syllabus table in Numbers.applescript |
if addClass then | Generate syllabus table in Numbers.applescript |
set headerColumn to headerColumn & {theDate} | Generate syllabus table in Numbers.applescript |
if theDate is in theHolidays then | Generate syllabus table in Numbers.applescript |
set bodyColumn to bodyColumn & {"No Class"} | Generate syllabus table in Numbers.applescript |
set bodyColumn to bodyColumn & activityName | Generate syllabus table in Numbers.applescript |
set d to make new document | Generate syllabus table in Numbers.applescript |
set s to make new sheet | Generate syllabus table in Numbers.applescript |
delete every table | Generate syllabus table in Numbers.applescript |
set courseSchedule to make new table with properties {column count:2, row count:totalRows, name:"Course Schedule"} | Generate syllabus table in Numbers.applescript |
tell courseSchedule | Generate syllabus table in Numbers.applescript |
repeat with i from 1 to length of headerColumn | Generate syllabus table in Numbers.applescript |
tell cell (i + headerRows) of column 1 | Generate syllabus table in Numbers.applescript |
set value to item i of headerColumn | Generate syllabus table in Numbers.applescript |
tell cell (i + headerRows) of column 2 | Generate syllabus table in Numbers.applescript |
set value to item i of bodyColumn | Generate syllabus table in Numbers.applescript |
set the width of column 1 to 100 | Generate syllabus table in Numbers.applescript |
set the width of column 2 to 200 | Generate syllabus table in Numbers.applescript |
merge range "A1:B1" | Generate syllabus table in Numbers.applescript |
set value of cell 1 of row 1 to headerValue | Generate syllabus table in Numbers.applescript |
if length of theDeadlines > 0 or final is not {} then | Generate syllabus table in Numbers.applescript |
set deadlineTable to make new table with properties {column count:2, row count:(length of theDeadlines) + 1, name:"Deadlines"} | Generate syllabus table in Numbers.applescript |
if length of theDeadlines > 0 then | Generate syllabus table in Numbers.applescript |
tell deadlineTable | Generate syllabus table in Numbers.applescript |
repeat with i from 1 to (length of theDeadlines) | Generate syllabus table in Numbers.applescript |
repeat with j from 1 to 2 | Generate syllabus table in Numbers.applescript |
tell (cell (i + 1) of column j) | Generate syllabus table in Numbers.applescript |
set value to item j of (item i of theDeadlines) | Generate syllabus table in Numbers.applescript |
if final is not {} then | Generate syllabus table in Numbers.applescript |
make new row at end | Generate syllabus table in Numbers.applescript |
set value of cell 1 of last row to item 1 of final | Generate syllabus table in Numbers.applescript |
set value of cell 2 of last row to item 2 of final | Generate syllabus table in Numbers.applescript |
set value of cell 1 of row 1 to "Deadlines" | Generate syllabus table in Numbers.applescript |
set countBoxes to count of picture boxes | grid helper 1.applescript |
repeat with i from 1 to countBoxes | grid helper 1.applescript |
repeat with i from countBoxes to 1 by -1 | grid helper 1.applescript |
move picture box i of page 1 to front of page (countBoxes - i + 1) | grid helper 1.applescript |
set comment of _record to "" | Unset Finder comment.applescript |
display alert "Unset comment" message msg as warning | Unset Finder comment.applescript |
do shell script "screencapture -iW ~/Desktop/" & timeFormatted & ".png" | window_screenshot_automator.applescript |
on openTabs(tabGroup) | openTabs.scpt |
if tabGroup = "work" or tabGroup = "Work" then | openTabs.scpt |
make new document with properties {URL:"https://www.google.com"} | openTabs.scpt |
open location "https://www.linkedin.com" | openTabs.scpt |
else if tabGroup = "school" or tabGroup = "School" then | openTabs.scpt |
make new document with properties {URL:"https://www.canvas.com"} | openTabs.scpt |
log "Tab group not found" | openTabs.scpt |
end openTabs | openTabs.scpt |
set tabGroup to item 1 of argv | openTabs.scpt |
openTabs(tabGroup) | openTabs.scpt |
set theApp to item 1 of argv | show-and-hide-any-app.applescript |
set macApp to item 2 of argv | show-and-hide-any-app.applescript |
if isAppActive(macApp) then | show-and-hide-any-app.applescript |
hideApp() | show-and-hide-any-app.applescript |
activateApp(theApp) | show-and-hide-any-app.applescript |
on isAppActive(appName) | show-and-hide-any-app.applescript |
tell application "System Events" to set activeApps to (get name of processes whose frontmost is true) | show-and-hide-any-app.applescript |
appName is equal to item 1 of activeApps | show-and-hide-any-app.applescript |
end isAppActive | show-and-hide-any-app.applescript |
on activateApp(appName) | show-and-hide-any-app.applescript |
do shell script "open -a '" & appName & "'" | show-and-hide-any-app.applescript |
end activateApp | show-and-hide-any-app.applescript |
on hideApp() | show-and-hide-any-app.applescript |
do shell script "skhd --key 'cmd - tab'" | show-and-hide-any-app.applescript |
end hideApp | show-and-hide-any-app.applescript |
fmGUI_ModeCurrent({}) | fmGUI_ModeCurrent.applescript |
on fmGUI_ModeCurrent(prefs) | fmGUI_ModeCurrent.applescript |
set currentMode to first word of ((description of first group of window 1) as string) | fmGUI_ModeCurrent.applescript |
return currentMode | fmGUI_ModeCurrent.applescript |
error "unable to fmGUI_ModeCurrent - " & errMsg number errNum | fmGUI_ModeCurrent.applescript |
end fmGUI_ModeCurrent | fmGUI_ModeCurrent.applescript |
windowSize's windowSize({direction:"DOWN", resize:0}) | winMoveScreenDown.applescript |
if currentvol > 90 then | SpotifyVolumeHigher.applescript |
set sound volume to currentvol + 10 | SpotifyVolumeHigher.applescript |
posixPathWithTilde(path to me) | posixPathWithTilde.applescript |
on posixPathWithTilde(anyPath) | posixPathWithTilde.applescript |
if anyPath contains ":" then | posixPathWithTilde.applescript |
set anyPath to POSIX path of anyPath | posixPathWithTilde.applescript |
if anyPath starts with homePath then | posixPathWithTilde.applescript |
return "~" & text (length of homePath) thru -1 of anyPath | posixPathWithTilde.applescript |
return anyPath | posixPathWithTilde.applescript |
end homePosixPath | posixPathWithTilde.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.