text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
set splitSession to split vertically with default profile
|
quicklaunch.applescript
|
tell splitSession
|
quicklaunch.applescript
|
else if splitType = "h" then
|
quicklaunch.applescript
|
set splitSession to split horizontally with default profile
|
quicklaunch.applescript
|
display dialog "Invalid or no splitType defined in " & toString(splitRecord) ¬
|
quicklaunch.applescript
|
display dialog "We couldn't find a 'command' or 'splits' key in " & toString(commandRecord) ¬
|
quicklaunch.applescript
|
end splitOrRun
|
quicklaunch.applescript
|
if application "iTerm" is running then
|
quicklaunch.applescript
|
activate application "iTerm"
|
quicklaunch.applescript
|
repeat with i from 1 to count of termCommands
|
quicklaunch.applescript
|
set termCommand to item i of termCommands
|
quicklaunch.applescript
|
set mySession to current session of current window
|
quicklaunch.applescript
|
my splitOrRun(mySession, termCommand)
|
quicklaunch.applescript
|
set termTab to create tab with default profile
|
quicklaunch.applescript
|
set mySession to current session of termTab
|
quicklaunch.applescript
|
tell record 1
|
Script 25-1.applescript
|
set the_date to cell "date purchased"
|
Script 25-1.applescript
|
set the_cost to cell "cost"
|
Script 25-1.applescript
|
{the_date, the_cost}
|
Script 25-1.applescript
|
AppleScript Studio version of (get system info)
|
AppleScript Studio version of (get system info).applescript
|
set cmd to quoted form of "pwd"
|
quoted form of.applescript
|
fmGUI_CustomFunctions_SelectFunction({functionName:"#"})
|
fmGUI_CustomFunctions_SelectFunction.applescript
|
on fmGUI_CustomFunctions_SelectFunction(prefs)
|
fmGUI_CustomFunctions_SelectFunction.applescript
|
set defaultPrefs to {functionName:null}
|
fmGUI_CustomFunctions_SelectFunction.applescript
|
select (first row of (table 1 of scroll area 1 of window 1) whose name of static text 1 is functionName of prefs)
|
fmGUI_CustomFunctions_SelectFunction.applescript
|
delay 0.05
|
fmGUI_CustomFunctions_SelectFunction.applescript
|
set selectedFunctionName to value of static text 1 of (first row of table 1 of scroll area 1 of window 1 whose selected is true)
|
fmGUI_CustomFunctions_SelectFunction.applescript
|
if functionName of prefs is equal to selectedFunctionName then
|
fmGUI_CustomFunctions_SelectFunction.applescript
|
error "failed to select function even though function exists" number -1024
|
fmGUI_CustomFunctions_SelectFunction.applescript
|
error "unable to fmGUI_CustomFunctions_SelectFunction - " & errMsg number errNum
|
fmGUI_CustomFunctions_SelectFunction.applescript
|
end fmGUI_CustomFunctions_SelectFunction
|
fmGUI_CustomFunctions_SelectFunction.applescript
|
tell application "htcLib" to fmGUI_CustomFunctions_Open(prefs)
|
fmGUI_CustomFunctions_SelectFunction.applescript
|
tell application "Safari" to set the miniaturized of the front window to false
|
maximize-app.scpt
|
tell application "Google Chrome" to set the minimized of the front window to false
|
maximize-app.scpt
|
tell application "Firefox" to set the miniaturized of the front window to false
|
maximize-app.scpt
|
tell application "Opera" to set the minimized of the front window to false
|
maximize-app.scpt
|
property fileToSearch : "UCSongTrainerRenderingController.h"
|
search.applescript
|
property finalPath : ""
|
search.applescript
|
set finalPath to do shell script ("mdfind -name " & fileToSearch & " -onlyin /")
|
search.applescript
|
set finalPath to replace_chars(finalPath, "/Users/azimin/iOSDeveloper/Uberchord-iOS", "$(PROJECT_DIR)")
|
search.applescript
|
set finalPath to replace_chars(finalPath, "/" & fileToSearch, "")
|
search.applescript
|
set finalPath to replace_chars(finalPath, " ", "\\ ")
|
search.applescript
|
set the clipboard to finalPath
|
search.applescript
|
set numberOfNote5 to (get text for note 5 of page 1 of document 1) as string
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set pdfTitle to get (extended text of note 4) of page 1 of document 1 as string
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set numberOfPages to count pages of document 1
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set myColorCodes to my chooseColor() --εκτός των loops πρέπει να βρίσκεται, μια φορά το θέτεις
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
display dialog "Do you want to export all the notes or only some of them?" buttons {"All", "Some"} default button 1
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set answer to button returned of the result
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
if answer is "All" then
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set firstPage to "1" as number
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set lastPage to numberOfPages
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set the clipboard to "===Skim notes===" & return
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
display dialog "Give me the written number of the first page." default answer ""
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set firstPageWritten to text returned of the result as number
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set firstPage to firstPageWritten - numberOfNote5 as number
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
display dialog "Give me the written numbers of the last page" default answer ""
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set lastPageWritten to text returned of the result as number
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set lastPage to lastPageWritten - numberOfNote5 as number
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set the clipboard to (the clipboard) & "Notes from \"[[@" & pdfTitle & "]]\" (pages " & firstPage & " - " & lastPage & ") <br />" & return
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
repeat with currentPage from firstPage to lastPage
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
if currentPage is 1 then
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set pageNotes to notes of page 1 of document 1
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set notesAfter5 to items 6 thru -1 of pageNotes
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
exportPageNotes(notesAfter5, currentPage, myColorCodes) of me
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set pageNotes to notes of page currentPage of document 1
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
exportPageNotes(pageNotes, currentPage, myColorCodes) of me
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
on exportPageNotes(listOfNotes, pageForProcessing, myColorCodes)
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set numberOfPageNotes to count notes of page pageForProcessing of document 1
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set theWrittenPage to pageForProcessing + numberOfNote5 as string
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set pdfDevonThinkLink to (get text for note 4 of page 1 of document 1) as string
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set pdfDevonThinkLinkWihtoutZero to (text 1 thru ((length of pdfDevonThinkLink) - 1) of pdfDevonThinkLink) as string
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
repeat with coloredNote in listOfNotes
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
repeat with i from 1 to the count of myColorCodes
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
if color of coloredNote is item i of myColorCodes then
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set pdfText to get text for coloredNote
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set pdfText2 to get extended text of coloredNote as text
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set fullNoteText to pdfText & " " & pdfText2
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set annotationDate to modification date of coloredNote as text
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set pageForDevonThinkLink to pageForProcessing - 1
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set firstCharacter to get the character 1 of fullNoteText
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
if firstCharacter = "[" then
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set endofNote to "]]]"
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set endofNote to "]"
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set textAfterFullNoteText to "[" & pdfDevonThinkLinkWihtoutZero & pageForDevonThinkLink & " p. " & theWrittenPage & endofNote & " <small>(" & annotationDate & ")</small>"
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set textForTextMate to fullNoteText & " " & textAfterFullNoteText
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set textForTextMate2 to replaceText(textForTextMate, "missing value", "") of me
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set textForTextMate3 to replaceText(textForTextMate2, " ()", "") of me
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set the clipboard to (the clipboard) & textForTextMate3 & return
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set theSeperationLine to ""
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
if numberOfPageNotes > 0 then
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
if (color of coloredNote is item i of myColorCodes) then
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set theSeperationLine to "----" & return
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set the clipboard to (the clipboard) & theSeperationLine
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
end exportPageNotes
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
on chooseColor()
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set selectedColors to (choose from list {"Destacado", "Resumen", "Citable/Definición", "Pregunta/Referencia", "Técnica/Método", "Resultado/Interpretación"} with prompt ("Choose the color of notes for exporting (you can select multiple colors):") default items {"Destacado"} with multiple selections allowed)
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set colorCodes to {}
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
set noteColor to ""
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
repeat with noteCol in selectedColors
|
Export%20notes%20by%20color%20with%20links%20to%20clipboard copy.scpt
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.