text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
set end of splitNames to item i of FL | Padlet - Extract names.applescript |
repeat with i from 1 to count of splitNames | Padlet - Extract names.applescript |
if item i of splitNames contains "and" then | Padlet - Extract names.applescript |
set end of splitNames to replace_chars(item i of splitNames, "and", " ") | Padlet - Extract names.applescript |
set splitNames2 to {} | Padlet - Extract names.applescript |
if item i of splitNames does not contain "and" then | Padlet - Extract names.applescript |
set end of splitNames2 to item i of splitNames | Padlet - Extract names.applescript |
set L to splitNames2 as text | Padlet - Extract names.applescript |
set splitNames3 to words of L | Padlet - Extract names.applescript |
repeat with i from 2 to count of cells of column 1 | Padlet - Extract names.applescript |
if value of cell i of column 1 is in splitNames3 then | Padlet - Extract names.applescript |
set value of cell i of the last column to true | Padlet - Extract names.applescript |
set value of cell 1 of the last column to pageURL | Padlet - Extract names.applescript |
property startOrEndOfFolder : "start" -- change to "end" to put the new project at the end of the selected folder | Templates.applescript |
property defaultTemplateFolder : "Template" | Templates.applescript |
property dateFormat : "YYYY.MM.DD" -- sets the format that dates will be displayed in when shown as text (i.e., in notes) | Templates.applescript |
if status of newProjectInstance is on hold then set status of newProjectInstance to active | Templates.applescript |
return every flattened project where (name of its folder contains containingFolder) and (effectively hidden of its folder is false) and (its status is not dropped) and (its status is not done) and (its name does not contain "!exclude") | Templates.applescript |
if its context is not missing value then | Templates.applescript |
set targetContext to my workingTheContext(its context, delimCleanedVariables, theReplacements) | Templates.applescript |
if targetContext is not null then set its context to targetContext | Templates.applescript |
set contextsInFolder to every context of it | Templates.applescript |
set contextsInFolder to every context in (container of theContext) | Templates.applescript |
set newContext to make new context at the end of contexts of theContainer with properties {name:desiredContextName} | Templates.applescript |
my setToReference(theItem) | Set to Reference.scpt |
on setToReference(theTask) | Set to Reference.scpt |
set tag of theTask to (my getContext("Reference")) | Set to Reference.scpt |
set due date of theTask to missing value -- clear due date | Set to Reference.scpt |
end setToReference | Set to Reference.scpt |
set theContext to first flattened tag where its name = contextName | Set to Reference.scpt |
open location "spotify:user:YOURUSERNAMEHERE:playlist:muzic" | start_spotify_with_playlist.scpt |
set phoneNum to run script (POSIX file "/Users/IceHe/Documents/AppleScript/Private/get_phone_num.applescript") | Msg_To_iPhone.applescript |
return run script (POSIX file "/Users/IceHe/Documents/AppleScript/Lib/msg_to_phone.applescript") with parameters {the clipboard as text, phoneNum} | Msg_To_iPhone.applescript |
set nl to (ASCII character 10) | outlook-asana-message.applescript |
set msg to item 1 of msgs | outlook-asana-message.applescript |
set subj to subject of msg | outlook-asana-message.applescript |
set msg_sender to sender of msg | outlook-asana-message.applescript |
set msg_time to time sent of msg | outlook-asana-message.applescript |
set acct to account of msg | outlook-asana-message.applescript |
set myemail to email address of acct | outlook-asana-message.applescript |
set taskmsg_body to "From: " & name of msg_sender & " <" & address of msg_sender & ">" & nl & "Date: " & msg_time & nl & "Subject: " & subj & nl & nl | outlook-asana-message.applescript |
set taskmsg to make new outgoing message with properties {subject:subj} | outlook-asana-message.applescript |
set plain text content of taskmsg to taskmsg_body | outlook-asana-message.applescript |
make new to recipient at taskmsg with properties {email address:{address:myemail}} | outlook-asana-message.applescript |
open taskmsg | outlook-asana-message.applescript |
execute front window's active tab javascript "[].slice.call(document.getElementsByTagName('a')).some(function(a) { if (a.text === 'Agregar o Eliminar Clases') { a.click(); return true; } return false; });" | 1 - Agregar cursos.applescript |
every folder of disk "Macintosh HD" | Script 5-6.applescript |
display dialog "You can reach my office at: " & format_phone("8005551234") & " or on my cell at: " & format_phone("2125551234") | Script 18-6.applescript |
set thisCaseId to "clipboard-spotCheck" | clipboard copy 2.applescript |
Manual: Extract From a Script | clipboard copy 2.applescript |
Manual: Save the Clipboard value | clipboard copy 2.applescript |
Manual E2E: Save and Restore the Clipboard value | clipboard copy 2.applescript |
Manual: Copy That (None, Selected) | clipboard copy 2.applescript |
Manual Copy That Word (None, One Word, Multi) | clipboard copy 2.applescript |
script Manipulate | clipboard copy 2.applescript |
set the clipboard to "Moohaha" | clipboard copy 2.applescript |
set extractedValue to sut's extract(Manipulate) | clipboard copy 2.applescript |
assertThat of std given condition:extractedValue is equal to "Moohaha", messageOnFail:"Failed spot check" | clipboard copy 2.applescript |
assertThat of std given condition:sut's getSavedValue() is missing value, messageOnFail:"Failed on pre-run state" | clipboard copy 2.applescript |
sut's saveCurrent() | clipboard copy 2.applescript |
assertThat of std given condition:sut's getSavedValue() is not missing value, messageOnFail:"Failed to save the current clipboard" | clipboard copy 2.applescript |
set the clipboard to "$spot" | clipboard copy 2.applescript |
set the clipboard to "$spot-changed" | clipboard copy 2.applescript |
assertThat of std given condition:(the clipboard) is not equal to "$spot", messageOnFail:"Failed to manipulate the clipboard value midway" | clipboard copy 2.applescript |
sut's restore() | clipboard copy 2.applescript |
assertThat of std given condition:(the clipboard) is equal to "$spot", messageOnFail:"Failed to restore the clipboard value" | clipboard copy 2.applescript |
set copiedText to sut's copyThat() | clipboard copy 2.applescript |
logger's infof("copied text: {}", copiedText) | clipboard copy 2.applescript |
set copiedText to sut's copyThatWord() | clipboard copy 2.applescript |
script ClipboardInstance | clipboard copy 2.applescript |
property _clipValue : missing value | clipboard copy 2.applescript |
on extract(scriptObj) | clipboard copy 2.applescript |
saveCurrent() | clipboard copy 2.applescript |
run of scriptObj | clipboard copy 2.applescript |
set maxWait to 50 -- 5 seconds | clipboard copy 2.applescript |
repeat until (the clipboard) is not "" | clipboard copy 2.applescript |
set theResult to the clipboard | clipboard copy 2.applescript |
restore() | clipboard copy 2.applescript |
end extract | clipboard copy 2.applescript |
on saveCurrent() | clipboard copy 2.applescript |
set _clipValue to the clipboard | clipboard copy 2.applescript |
repeat until _clipValue is equal to (the clipboard) | clipboard copy 2.applescript |
end saveCurrent | clipboard copy 2.applescript |
on getSavedValue() | clipboard copy 2.applescript |
_clipValue | clipboard copy 2.applescript |
end getSavedValue | clipboard copy 2.applescript |
on restore() | clipboard copy 2.applescript |
set the clipboard to _clipValue | clipboard copy 2.applescript |
end restore | clipboard copy 2.applescript |
on copyThat() | clipboard copy 2.applescript |
set originalClipboard to "" | clipboard copy 2.applescript |
key code 8 using {command down} -- C | clipboard copy 2.applescript |
set theCopiedItem to "" | clipboard copy 2.applescript |
set maxTry to 10 | clipboard copy 2.applescript |
set tryCount to 0 | clipboard copy 2.applescript |
repeat until theCopiedItem is not "" | clipboard copy 2.applescript |
set tryCount to tryCount + 1 | clipboard copy 2.applescript |
if tryCount is greater than or equal to maxTry then exit repeat | clipboard copy 2.applescript |
set theCopiedItem to the clipboard | clipboard copy 2.applescript |
theCopiedItem | clipboard copy 2.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.