text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
on do(param_descs, sender) | HandlerElement.applescript |
param_descs's enumerate(a_link_maganer) | HandlerElement.applescript |
set a_li to a_ul's push_element_with("li", {}) | HandlerElement.applescript |
script RowText | HandlerElement.applescript |
on do(a_text) | HandlerElement.applescript |
return a_text's as_unicode() | HandlerElement.applescript |
a_li's push(param_descs's map(RowText)'s as_unicode_with(_line_end)) | HandlerElement.applescript |
my _parameters's enumerate(ProcessParamDescription) | HandlerElement.applescript |
if (my _result's count_items()) > 0 then | HandlerElement.applescript |
output's push_element_with("div", {{"class", "subHeading"}})'s push("Result") | HandlerElement.applescript |
my _result's enumerate(my _link_manager) | HandlerElement.applescript |
set srd to SimpleRD's make_with_iterator(my _result) | HandlerElement.applescript |
if ((my _example's item_counts()) is not 0) then | HandlerElement.applescript |
output's push_element_with("div", {{"class", "subHeading"}})'s push("Example") | HandlerElement.applescript |
script process_example | HandlerElement.applescript |
on do(an_example, sender) | HandlerElement.applescript |
output's push(an_example's html_element()) | HandlerElement.applescript |
my _example's enumerate(process_example) | HandlerElement.applescript |
if my _useAppleSegment then | HandlerElement.applescript |
ouput's push_comment_with("AppleSegEnd", {}) | HandlerElement.applescript |
on as_html() | HandlerElement.applescript |
return convert()'s as_html() | HandlerElement.applescript |
end as_html | HandlerElement.applescript |
on as_xhtml() | HandlerElement.applescript |
return as_html() | HandlerElement.applescript |
end as_xhtml | HandlerElement.applescript |
set jsCode to "document.querySelector('[type=submit]').click(); " -- None the whitespace at the end. That is required. | Pinboard - Save bookmark.applescript |
do JavaScript jsCode in current tab of window 1 | Pinboard - Save bookmark.applescript |
repeat with itemLink in paragraphs of (the clipboard) | Comments to Tags.applescript |
if itemLink begins with "x-yojimbo-item://" then | Comments to Tags.applescript |
set itemKey to text from character 18 to end of itemLink | Comments to Tags.applescript |
set itemID to database item id itemKey | Comments to Tags.applescript |
set itemComments to comments of itemID | Comments to Tags.applescript |
set commentWords to words in itemComments | Comments to Tags.applescript |
add tags commentWords to itemID | Comments to Tags.applescript |
set comments of itemID to "" | Comments to Tags.applescript |
repeat with aToDo in to dos of list "Next" | gistfile1 copy.applescript |
else if (area of aToDo) is not missing value then | gistfile1 copy.applescript |
set theProjectName to (name of area of aToDo) | gistfile1 copy.applescript |
set theProject to make new project with properties {name:theProjectName} | gistfile1 copy.applescript |
set newTask to make new task with properties {name:theTitle, note:theNote, containing project:theProject, context:theContext} | gistfile1 copy.applescript |
end repeat -- Main loop | gistfile1 copy.applescript |
end tell -- Things application | gistfile1 copy.applescript |
if aTagName starts with "@" then | gistfile1 copy.applescript |
end FindContextName -- End FindContextName | gistfile1 copy.applescript |
end ReplaceText -- End replaceText() | gistfile1 copy.applescript |
set thePath to choose folder with prompt "Select folder to rename files in:" | changeExtension.applescript |
set ext to text returned of (display dialog "Extenstion to Replace:" default answer "html") | changeExtension.applescript |
set extNew to text returned of (display dialog "Replace with:" default answer "php") | changeExtension.applescript |
tell application "Finder" to set name extension of (files of thePath whose name extension is ext) to extNew | changeExtension.applescript |
set category_names to name of categories | Script 24-14.applescript |
repeat with this_name in {"Family", "Christmas Card", "Private"} | Script 24-14.applescript |
if this_name is not in category_names then | Script 24-14.applescript |
make new category with properties {name:this_name} | Script 24-14.applescript |
make new contact with properties { first name:"Billy", last name:"Baxter", nickname:"Bobo", home address:{street address:"1 Apple Court", city:"Hemmingford Abbots", state:"Cambridgeshire", zip:"CB4 9HG", country:"UK"}, category:{category "Family", category "Christmas Card", category "Private"}} | Script 24-14.applescript |
set theList to paragraphs of text of (do shell script "pmset -g batt") | battery.applescript |
set percent to word 6 of theList's item 2 | battery.applescript |
set charge to word 7 of theList's item 2 | battery.applescript |
if (charge = "charging") then | battery.applescript |
set iconC to "⚡️" | battery.applescript |
set iconC to "" | battery.applescript |
set remainingRaw to my split(theList's item 2, " ") | battery.applescript |
set remainingTime to remainingRaw's item 5 | battery.applescript |
if (remainingTime = "(no") then | battery.applescript |
set strTime to " (?)" | battery.applescript |
else if (remainingTime = "0:00") then | battery.applescript |
set strTime to "" | battery.applescript |
set strTime to " (" & remainingTime & ")" | battery.applescript |
return iconC & percent & "%" & strTime | battery.applescript |
property blueutilPath : "/usr/local/bin/blueutil" | Bluetooth%20Toggle.scpt |
if execBlueutil("power") ends with "0" then | Bluetooth%20Toggle.scpt |
execBlueutil("power 1") | Bluetooth%20Toggle.scpt |
execBlueutil("power 0") | Bluetooth%20Toggle.scpt |
set iphone_number to "NUMBER" | IPviaText.applescript |
set response to do shell script "/usr/bin/curl http://checkip.dyndns.org/" | IPviaText.applescript |
set ip_address to extract_ip(response) | IPviaText.applescript |
on extract_ip(this_text) | IPviaText.applescript |
set clean_ip to "" | IPviaText.applescript |
set this_char to "" | IPviaText.applescript |
if the this_char is in {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "."} then | IPviaText.applescript |
set the clean_ip to the clean_ip & this_char as string | IPviaText.applescript |
return the clean_ip | IPviaText.applescript |
end extract_ip | IPviaText.applescript |
delay 10 -- delay gives imessage a little time to boot | IPviaText.applescript |
send ip_address to buddy iphone_number of (service 1 whose service type is iMessage) | IPviaText.applescript |
delay 60 -- another delay allows iMessage time to send | IPviaText.applescript |
on make_null_log() | Script 19-16.applescript |
script NullLog | Script 19-16.applescript |
property class : "null log" | Script 19-16.applescript |
end _write -- Did nothing! | Script 19-16.applescript |
end make_null_log | Script 19-16.applescript |
my closeNotif() | Clear Notifications.applescript |
on closeNotif() | Clear Notifications.applescript |
end closeNotif | Clear Notifications.applescript |
set userFolder to choose folder | Trim%20Filenames%20By%20Character%20Count.scpt |
set dialogResult to display dialog "Numbers of characters to remove:" buttons {"Cancel", "At beginning", "At end"} default answer 0 cancel button "Cancel" | Trim%20Filenames%20By%20Character%20Count.scpt |
set buttonResult to button returned of dialogResult | Trim%20Filenames%20By%20Character%20Count.scpt |
set numberOfChars to text returned of dialogResult as integer | Trim%20Filenames%20By%20Character%20Count.scpt |
if buttonResult = "At end" then set numberOfChars to -numberOfChars | Trim%20Filenames%20By%20Character%20Count.scpt |
repeat with eachFile in (get document files in userFolder) | Trim%20Filenames%20By%20Character%20Count.scpt |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.