text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
set successCount to 0
|
Export All Chrome Tabs to Evernote.applescript
|
repeat with w in chromeWindow
|
Export All Chrome Tabs to Evernote.applescript
|
repeat with t in (tabs of w)
|
Export All Chrome Tabs to Evernote.applescript
|
set TabTitle to (title of t)
|
Export All Chrome Tabs to Evernote.applescript
|
set TabURL to (URL of t)
|
Export All Chrome Tabs to Evernote.applescript
|
set TabInfo to ("" & TabTitle & return & TabURL & return & return)
|
Export All Chrome Tabs to Evernote.applescript
|
copy TabInfo to the end of url_list
|
Export All Chrome Tabs to Evernote.applescript
|
set successCount to (successCount + 1)
|
Export All Chrome Tabs to Evernote.applescript
|
set old_delim to AppleScript's text item delimiters
|
Export All Chrome Tabs to Evernote.applescript
|
set url_list to url_list as text
|
Export All Chrome Tabs to Evernote.applescript
|
set AppleScript's text item delimiters to old_delim
|
Export All Chrome Tabs to Evernote.applescript
|
set EVNote to (create note with text url_list title NoteTitle)
|
Export All Chrome Tabs to Evernote.applescript
|
my notification_Center(successCount, tabCount)
|
Export All Chrome Tabs to Evernote.applescript
|
on notification_Center(successCount, itemNum)
|
Export All Chrome Tabs to Evernote.applescript
|
set Plural_Test to (successCount) as number
|
Export All Chrome Tabs to Evernote.applescript
|
if Plural_Test is -1 then
|
Export All Chrome Tabs to Evernote.applescript
|
display notification "No Tabs Exported!" with title "Send Chrome Tabs to Evernote" subtitle "◸ Veritrope.com"
|
Export All Chrome Tabs to Evernote.applescript
|
else if Plural_Test is 0 then
|
Export All Chrome Tabs to Evernote.applescript
|
else if Plural_Test is equal to 1 then
|
Export All Chrome Tabs to Evernote.applescript
|
display notification "Successfully Exported " & itemNum & ¬
|
Export All Chrome Tabs to Evernote.applescript
|
" Tab to Evernote" with title "Send Chrome Tabs to Evernote" subtitle "◸ Veritrope.com"
|
Export All Chrome Tabs to Evernote.applescript
|
else if Plural_Test is greater than 1 then
|
Export All Chrome Tabs to Evernote.applescript
|
" Tabs to Evernote" with title "Send Chrome Tabs to Evernote" subtitle "◸ Veritrope.com"
|
Export All Chrome Tabs to Evernote.applescript
|
set itemNum to "0"
|
Export All Chrome Tabs to Evernote.applescript
|
end notification_Center
|
Export All Chrome Tabs to Evernote.applescript
|
property tagForPDF : "π-archived-page"
|
Auto convert web page to PDF.applescript
|
on performSmartRule(theRecords)
|
Auto convert web page to PDF.applescript
|
repeat with selected in theRecords
|
Auto convert web page to PDF.applescript
|
set recordURL to (URL of selected) as string
|
Auto convert web page to PDF.applescript
|
set recordWindow to open window for record selected
|
Auto convert web page to PDF.applescript
|
repeat while loading of recordWindow
|
Auto convert web page to PDF.applescript
|
if (recordURL ends with ".pdf") is not true then
|
Auto convert web page to PDF.applescript
|
repeat with n from 1 to 4
|
Auto convert web page to PDF.applescript
|
set scroll to "window.scrollTo(0," & n ¬
|
Auto convert web page to PDF.applescript
|
& "*document.body.scrollHeight/4)"
|
Auto convert web page to PDF.applescript
|
do JavaScript scroll in current tab of recordWindow
|
Auto convert web page to PDF.applescript
|
delay 0.75
|
Auto convert web page to PDF.applescript
|
do JavaScript "window.scrollTo(0,0)" ¬
|
Auto convert web page to PDF.applescript
|
in current tab of recordWindow
|
Auto convert web page to PDF.applescript
|
set contentAsPDF to get PDF of recordWindow
|
Auto convert web page to PDF.applescript
|
set recordName to (name of selected)
|
Auto convert web page to PDF.applescript
|
set recordParents to (parents of selected)
|
Auto convert web page to PDF.applescript
|
set recordGroup to item 1 of recordParents
|
Auto convert web page to PDF.applescript
|
set newDoc to create record with ¬
|
Auto convert web page to PDF.applescript
|
{name:recordName, URL:recordURL, type:PDF document} ¬
|
Auto convert web page to PDF.applescript
|
in recordGroup
|
Auto convert web page to PDF.applescript
|
set data of newDoc to contentAsPDF
|
Auto convert web page to PDF.applescript
|
set creation date of newDoc to creation date of selected
|
Auto convert web page to PDF.applescript
|
set modification date of newDoc to modification date of selected
|
Auto convert web page to PDF.applescript
|
set comment of newDoc to comment of selected
|
Auto convert web page to PDF.applescript
|
set label of newDoc to label of selected
|
Auto convert web page to PDF.applescript
|
set {od, AppleScript's text item delimiters} ¬
|
Auto convert web page to PDF.applescript
|
to {AppleScript's text item delimiters, ","}
|
Auto convert web page to PDF.applescript
|
set the tags of newDoc to (tags of selected & tagForPDF)
|
Auto convert web page to PDF.applescript
|
set AppleScript's text item delimiters to od
|
Auto convert web page to PDF.applescript
|
close recordWindow
|
Auto convert web page to PDF.applescript
|
end performSmartRule
|
Auto convert web page to PDF.applescript
|
set var to "value"
|
var.applescript
|
set theItems to selection
|
BAB-软连接.applescript
|
set filePath to (POSIX path of (the selection as alias))
|
BAB-软连接.applescript
|
set the clipboard to filePath
|
BAB-软连接.applescript
|
do shell script "path=$(pbpaste);chmod a+x $path;cd ..;ln -s " & filePath & " " & filePath
|
BAB-软连接.applescript
|
script pageNum
|
Sort.applescript
|
property digit : my isDigit
|
Sort.applescript
|
on |λ|(para)
|
Sort.applescript
|
set s to strip(para)
|
Sort.applescript
|
if 0 < length of s and all(digit, (characters of s)) then
|
Sort.applescript
|
{s as integer}
|
Sort.applescript
|
{}
|
Sort.applescript
|
end |λ|
|
Sort.applescript
|
intercalateS(", ", ¬
|
Sort.applescript
|
sort(concatMap(pageNum, ¬
|
Sort.applescript
|
paragraphs of (the clipboard))))
|
Sort.applescript
|
on all(f, xs)
|
Sort.applescript
|
tell mReturn(f)
|
Sort.applescript
|
set lng to length of xs
|
Sort.applescript
|
repeat with i from 1 to lng
|
Sort.applescript
|
if not |λ|(item i of xs, i, xs) then return false
|
Sort.applescript
|
true
|
Sort.applescript
|
end all
|
Sort.applescript
|
on concatMap(f, xs)
|
Sort.applescript
|
if 0 < lng and class of xs is string then
|
Sort.applescript
|
set acc to ""
|
Sort.applescript
|
set acc to {}
|
Sort.applescript
|
set acc to acc & |λ|(item i of xs, i, xs)
|
Sort.applescript
|
return acc
|
Sort.applescript
|
end concatMap
|
Sort.applescript
|
on drop(n, xs)
|
Sort.applescript
|
if n < length of xs then
|
Sort.applescript
|
if text is class of xs then
|
Sort.applescript
|
text (n + 1) thru -1 of xs
|
Sort.applescript
|
items (n + 1) thru -1 of xs
|
Sort.applescript
|
end drop
|
Sort.applescript
|
on dropWhile(p, xs)
|
Sort.applescript
|
set i to 1
|
Sort.applescript
|
tell mReturn(p)
|
Sort.applescript
|
repeat while i ≤ lng and |λ|(item i of xs)
|
Sort.applescript
|
set i to i + 1
|
Sort.applescript
|
drop(i - 1, xs)
|
Sort.applescript
|
end dropWhile
|
Sort.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.