text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
set theTags to the tags of theRecord
|
bookends-to-devonthink-2.applescript
|
set theTags to theTags as text
|
bookends-to-devonthink-2.applescript
|
tell application "Bookends" to set the keywords of theRef to theTags
|
bookends-to-devonthink-2.applescript
|
if modDate ≤ modification date of theRecord then
|
bookends-to-devonthink-2.applescript
|
exit repeat -- jump out of dummy loop to next item
|
bookends-to-devonthink-2.applescript
|
set theGroup to theRecord
|
bookends-to-devonthink-2.applescript
|
tell theGroup
|
bookends-to-devonthink-2.applescript
|
set URL to theBookendsURL
|
bookends-to-devonthink-2.applescript
|
set aliases to theKey
|
bookends-to-devonthink-2.applescript
|
set tags to theKeywords
|
bookends-to-devonthink-2.applescript
|
set custom meta data to {|date|:theDate, doi:theDOI, abstract:theAbstract, citekey:theKey, bookendsid:theID}
|
bookends-to-devonthink-2.applescript
|
set dtNewUUID to uuid
|
bookends-to-devonthink-2.applescript
|
set dtLink to reference URL & "?reveal=1"
|
bookends-to-devonthink-2.applescript
|
tell theRef
|
bookends-to-devonthink-2.applescript
|
set user15 to dtNewUUID
|
bookends-to-devonthink-2.applescript
|
set user20 to origURLs
|
bookends-to-devonthink-2.applescript
|
set url to dtLink
|
bookends-to-devonthink-2.applescript
|
set theSummaryName to ("___" & theKey & ".md") as text
|
bookends-to-devonthink-2.applescript
|
set theAuthorList to my authorlist(theAuthor)
|
bookends-to-devonthink-2.applescript
|
set theSummaryPlaceholders to {|%reference%|:theTitle, |%authors%|:theAuthorList, |%date%|:theYear, |%citation%|:theKey, |%doi%|:theDOI, |%abstract%|:theAbstract}
|
bookends-to-devonthink-2.applescript
|
set theTempRecord to import theTemplateFile placeholders theSummaryPlaceholders to theGroup
|
bookends-to-devonthink-2.applescript
|
set theSummaryRecord to get record at (the location of theTempRecord) & theSummaryName
|
bookends-to-devonthink-2.applescript
|
if theSummaryRecord is missing value then
|
bookends-to-devonthink-2.applescript
|
set the name of theTempRecord to theSummaryName
|
bookends-to-devonthink-2.applescript
|
set theSummaryRecord to theTempRecord
|
bookends-to-devonthink-2.applescript
|
set theTempContent to the plain text of theTempRecord
|
bookends-to-devonthink-2.applescript
|
set the plain text of theSummaryRecord to theTempContent
|
bookends-to-devonthink-2.applescript
|
delete record theTempRecord
|
bookends-to-devonthink-2.applescript
|
set URL of theSummaryRecord to theBookendsURL
|
bookends-to-devonthink-2.applescript
|
set custom meta data of theSummaryRecord to {|date|:theDate, doi:theDOI, abstract:theAbstract, citekey:theKey, bookendsid:theID}
|
bookends-to-devonthink-2.applescript
|
set tags of theSummaryRecord to theKeywords
|
bookends-to-devonthink-2.applescript
|
set origURLs to paragraphs of origURLs
|
bookends-to-devonthink-2.applescript
|
repeat with theOrigURL in origURLs
|
bookends-to-devonthink-2.applescript
|
set theBookmarkRecord to lookup records with URL theOrigURL
|
bookends-to-devonthink-2.applescript
|
if theBookmarkRecord is missing value or (count of theBookmarkRecord) is less than 1 then
|
bookends-to-devonthink-2.applescript
|
create record with {name:theOrigURL, type:bookmark, URL:theOrigURL} in theGroup
|
bookends-to-devonthink-2.applescript
|
set theAttachmentRecord to lookup records with path thePath
|
bookends-to-devonthink-2.applescript
|
if theAttachmentRecord is missing value or (count of theAttachmentRecord) is less than 1 then
|
bookends-to-devonthink-2.applescript
|
set theAttachmentRecord to indicate thePath to theGroup
|
bookends-to-devonthink-2.applescript
|
set theAttachmentRecord to item 1 of theAttachmentRecord
|
bookends-to-devonthink-2.applescript
|
set URL of theAttachmentRecord to theBookendsURL
|
bookends-to-devonthink-2.applescript
|
set custom meta data of theAttachmentRecord to {|date|:theDate, doi:theDOI, abstract:theAbstract, citekey:theKey, bookendsid:theID}
|
bookends-to-devonthink-2.applescript
|
set tags of theAttachmentRecord to theKeywords
|
bookends-to-devonthink-2.applescript
|
set computerName to computer name of (system info)
|
quicktime-stop-recording.applescript
|
on date_time_to_iso(dt)
|
quicktime-stop-recording.applescript
|
return y & "-" & m & "-" & d & "T" & h & "_" & min & "_" & s
|
quicktime-stop-recording.applescript
|
set dt to current date
|
quicktime-stop-recording.applescript
|
set fileName to "screen-recording." & computerName & "." & date_time_to_iso(dt)
|
quicktime-stop-recording.applescript
|
set screenRecordingFile to fileName & ".mov"
|
quicktime-stop-recording.applescript
|
set savePath to (path to documents folder as string)
|
quicktime-stop-recording.applescript
|
set screenRecordingPath to (savePath & screenRecordingFile)
|
quicktime-stop-recording.applescript
|
close access (open for access file screenRecordingPath with write permission)
|
quicktime-stop-recording.applescript
|
close front document saving in file screenRecordingPath
|
quicktime-stop-recording.applescript
|
if application "Things" is running then
|
gistfile1-3.applescript
|
set visible of process "Things" to false
|
gistfile1-3.applescript
|
set daysFromNow to 0
|
gistfile1-3.applescript
|
set taskTitle to q
|
gistfile1-3.applescript
|
if word -2 in q is "+" then
|
gistfile1-3.applescript
|
set daysFromNow to word -1 in q
|
gistfile1-3.applescript
|
set wrds to length of words in q
|
gistfile1-3.applescript
|
set taskTitle to (words 1 thru (wrds - 2) of q) as text
|
gistfile1-3.applescript
|
set newToDo to parse quicksilver input (taskTitle)
|
gistfile1-3.applescript
|
if daysFromNow > 0 then
|
gistfile1-3.applescript
|
schedule newToDo for (current date) + daysFromNow * days
|
gistfile1-3.applescript
|
set the ClipURL to urlencode(the clipboard as string)
|
ShortSwitch.scpt
|
"curl --stderr /dev/null \"http://api.shortswitch.com/shorten?apiKey=YOUR_API_KEY&url=" & ClipURL & "\""
|
ShortSwitch.scpt
|
do shell script curlCMD
|
ShortSwitch.scpt
|
set theResult to the result
|
ShortSwitch.scpt
|
set theURL to grepURL(theResult)
|
ShortSwitch.scpt
|
on grepURL(theText)
|
ShortSwitch.scpt
|
set theResult to theText
|
ShortSwitch.scpt
|
set AppleScript's text item delimiters to "<shortURL>"
|
ShortSwitch.scpt
|
set theResult to second text item of theResult
|
ShortSwitch.scpt
|
set AppleScript's text item delimiters to "</shortUrl>"
|
ShortSwitch.scpt
|
set theLink to first text item of theResult
|
ShortSwitch.scpt
|
return theLink
|
ShortSwitch.scpt
|
end grepURL
|
ShortSwitch.scpt
|
on run {note_name, html_path}
|
note_export_html.applescript
|
textUpper({str:"hello"})
|
textUpper.applescript
|
on textUpper(prefs)
|
textUpper.applescript
|
return (do shell script ("echo " & str of prefs & " | tr a-z A-Z;"))
|
textUpper.applescript
|
error "unable to textUpper - " & errMsg number errNum
|
textUpper.applescript
|
set targetFolder to the target of the front window as alias
|
New File.applescript
|
set newFileName to my getAvailableFilename(targetFolder)
|
New File.applescript
|
set newFile to make new file at targetFolder with properties {name: newFileName}
|
New File.applescript
|
on error theError number errorNumber
|
New File.applescript
|
if errorNumber is 1002 then
|
New File.applescript
|
displayAccessibilityPromptDialog()
|
New File.applescript
|
display dialog "Error: " & (errorNumber as text) & return & return & theError ¬
|
New File.applescript
|
default button 1 ¬
|
New File.applescript
|
with icon stop ¬
|
New File.applescript
|
with title "New File Applet"
|
New File.applescript
|
on getAvailableFilename(folderAlias)
|
New File.applescript
|
set fileCount to 1
|
New File.applescript
|
set appendix to ""
|
New File.applescript
|
repeat while found is false
|
New File.applescript
|
if exists file (folderAlias as text & "untitled file" & appendix) then
|
New File.applescript
|
set fileCount to (fileCount + 1)
|
New File.applescript
|
set appendix to (" " & fileCount as string)
|
New File.applescript
|
return "untitled file" & appendix
|
New File.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.