text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
set bearText to "- " & shorterMessageTime & " E " & correspondentName & return & ¬ | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
"---" & return & ¬ | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
"*Outlook message ID:* [" & messageID & "](file://" & messageLink & ")" & return & ¬ | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
"*Subject:* " & messageSubject & return & ¬ | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
"*Sent:* " & today & " at " & shorterMessageTime & return & return & ¬ | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
selectedText & return & "---" & return | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set bearText to encodeText(bearText, true, true) | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
set bearURL to "open \"bear://x-callback-url/add-text?title=" & encodedToday & "&text=" & bearText & "&new_window=yes\"" as string | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
do shell script bearURL | Link%20Message%20to%20Bear%20Daily%20Notes.applescript |
on getWorkbookName() | LIB_Excel.applescript |
set theWorkbookFile to choose file with prompt "Please select an Excel workbook file:" | LIB_Excel.applescript |
set theWorkbookName to name of (info for theWorkbookFile) | LIB_Excel.applescript |
set theWorkbook to workbook theWorkbookName | LIB_Excel.applescript |
return theWorkbook | LIB_Excel.applescript |
end getWorkbookName | LIB_Excel.applescript |
on findCellWithValue(findWhat) | LIB_Excel.applescript |
tell application "Microsoft Excel" to return my parseCellAddress((find (range "A1:IV65536") what findWhat look at whole search order by rows)) | LIB_Excel.applescript |
end findCellWithValue | LIB_Excel.applescript |
on findInRange(findWhat, findRange) | LIB_Excel.applescript |
tell application "Microsoft Excel" to return my parseCellAddress((find (range findRange) what findWhat look at whole)) | LIB_Excel.applescript |
return rowC of temp | LIB_Excel.applescript |
end findInRange | LIB_Excel.applescript |
on findInRow(findWhat, rown) | LIB_Excel.applescript |
tell application "Microsoft Excel" to return colC of (my parseCellAddress((find (range ("A" & rown & ":" & my findLastColumn(rown) & rown)) what findWhat look at whole))) | LIB_Excel.applescript |
end findInRow | LIB_Excel.applescript |
on findInColumn(findWhat, coln) | LIB_Excel.applescript |
tell application "Microsoft Excel" to return rowC of my parseCellAddress((find (range (coln & 1 & ":" & coln & my findLastRow(coln))) what findWhat look at whole)) | LIB_Excel.applescript |
end findInColumn | LIB_Excel.applescript |
on getListFromRow(rown) | LIB_Excel.applescript |
set temp to formula of range ("A" & rown & ":" & my findLastColumn(rown) & rown) | LIB_Excel.applescript |
return item 1 of temp | LIB_Excel.applescript |
end getListFromRow | LIB_Excel.applescript |
on getListFromColumn(coln) | LIB_Excel.applescript |
tell application "Microsoft Excel" to return formula of range (coln & 1 & ":" & coln & my findLastRow(coln)) | LIB_Excel.applescript |
end getListFromColumn | LIB_Excel.applescript |
on findLastRow(coln) | LIB_Excel.applescript |
tell application "Microsoft Excel" to return (rowC of my parseCellAddress((get end range (coln & "65536") direction toward the top))) | LIB_Excel.applescript |
end findLastRow | LIB_Excel.applescript |
on findLastColumn(rown) | LIB_Excel.applescript |
tell application "Microsoft Excel" to return (colC of my parseCellAddress((get end range ("iv" & rown) direction toward the left))) | LIB_Excel.applescript |
end findLastColumn | LIB_Excel.applescript |
on parseCellAddress(celladdress) | LIB_Excel.applescript |
tell application "Microsoft Excel" to set tempcell to get address of celladdress | LIB_Excel.applescript |
set AppleScript's text item delimiters to "$" | LIB_Excel.applescript |
set cellInfo to text items of tempcell | LIB_Excel.applescript |
return {colC:item 2 of cellInfo, rowC:item 3 of cellInfo} | LIB_Excel.applescript |
end parseCellAddress | LIB_Excel.applescript |
on getActiveRow() | LIB_Excel.applescript |
tell application "Microsoft Excel" to return rowC of (my parseCellAddress(active cell)) | LIB_Excel.applescript |
end getActiveRow | LIB_Excel.applescript |
on setCell(rangev, cellval) | LIB_Excel.applescript |
tell application "Microsoft Excel" to set formula of range rangev to cellval | LIB_Excel.applescript |
end setCell | LIB_Excel.applescript |
on getCell(rangev) | LIB_Excel.applescript |
tell application "Microsoft Excel" to return formula of range (rangev) | LIB_Excel.applescript |
end getCell | LIB_Excel.applescript |
on getCellValue(rangev) | LIB_Excel.applescript |
tell application "Microsoft Excel" to return value of range (rangev) | LIB_Excel.applescript |
end getCellValue | LIB_Excel.applescript |
on parseColorCode(colorName) | LIB_Excel.applescript |
set colorList to {{"", "0"}, {"black", "1"}, {"white", "2"}, {"red", "3"}, {"green", "4"}, {"blue", "5"}, {"yellow", "6"}, {"pink", "7"}} | LIB_Excel.applescript |
repeat with i in colorList | LIB_Excel.applescript |
if colorName = item 1 of i then return (item 2 of i as number) | LIB_Excel.applescript |
end parseColorCode | LIB_Excel.applescript |
on setCellFontColor(rangev, colornum) | LIB_Excel.applescript |
if (class of colornum is not integer) then set colornum to my parseColorCode(colornum) | LIB_Excel.applescript |
tell application "Microsoft Excel" to set font color index of font object of range rangev of active sheet to colornum | LIB_Excel.applescript |
end setCellFontColor | LIB_Excel.applescript |
on setCellColor(rangev, colornum) | LIB_Excel.applescript |
tell application "Microsoft Excel" to set color index of interior object of range rangev of active sheet to colornum | LIB_Excel.applescript |
end setCellColor | LIB_Excel.applescript |
on setRowColor(rown, colornum) | LIB_Excel.applescript |
tell application "Microsoft Excel" to set color index of interior object of row rown of active sheet to colornum | LIB_Excel.applescript |
end setRowColor | LIB_Excel.applescript |
on setColumnColor(coln, colornum) | LIB_Excel.applescript |
if (class of coln is not integer) then | LIB_Excel.applescript |
set color index of interior object of range (coln & ":" & coln) of active sheet to colornum | LIB_Excel.applescript |
set color index of interior object of column coln of active sheet to colornum | LIB_Excel.applescript |
end setColumnColor | LIB_Excel.applescript |
on openFile(filepath) | LIB_Excel.applescript |
tell application "Microsoft Excel" to open filepath | LIB_Excel.applescript |
on closeWithoutSaving() | LIB_Excel.applescript |
tell application "Microsoft Excel" to close active workbook without saving | LIB_Excel.applescript |
end closeWithoutSaving | LIB_Excel.applescript |
on deleteActiveFile() | LIB_Excel.applescript |
set deskPath to path to desktop as string | LIB_Excel.applescript |
set deskPath to every text item of deskPath as list | LIB_Excel.applescript |
set savePath to "/" & (items 2 through 4 of deskPath) & "/" as string | LIB_Excel.applescript |
tell application "Microsoft Excel" to set excelName to name of active workbook | LIB_Excel.applescript |
do shell script ("rm " & savePath & excelName) | LIB_Excel.applescript |
end deleteActiveFile | LIB_Excel.applescript |
on deleteRow(rownumber) | LIB_Excel.applescript |
tell application "Microsoft Excel" to delete row (rownumber as integer) | LIB_Excel.applescript |
end deleteRow | LIB_Excel.applescript |
on deleteColumn(col) | LIB_Excel.applescript |
if (class of col is not integer) then set col to my alphaToNumeric(col) | LIB_Excel.applescript |
tell application "Microsoft Excel" to delete column (col as integer) | LIB_Excel.applescript |
end deleteColumn | LIB_Excel.applescript |
on alphaToNumeric(inchar) | LIB_Excel.applescript |
set alphabet to "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | LIB_Excel.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.