text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
if length of (item i of phone_list) is 7 then | Script 14-4.applescript |
set item i of phone_list to default_area_code & "-" & (item i of phone_list) | Script 14-4.applescript |
set chatChannel to the text returned of (display dialog "What Channel would you like to broadcast to?" default answer "/2") | Auto Chat.applescript |
set chatText to the text returned of (display dialog "What Text would you like to broadcast?" default answer "LF > Any ST.") | Auto Chat.applescript |
activate application "Trove" | Auto Chat.applescript |
keystroke chatChannel | Auto Chat.applescript |
keystroke chatText | Auto Chat.applescript |
tell application "SystemUIServer" | Auto SKU.applescript |
display dialog "Enter SKU" default answer "" | Auto SKU.applescript |
set answer to text returned of result | Auto SKU.applescript |
if _sel is not equal to {} then | evernote2things.applescript |
set aNote to first item of _sel | evernote2things.applescript |
set aNoteName to title of aNote | evernote2things.applescript |
set aNoteClassicLink to note link of aNote | evernote2things.applescript |
set aNoteClassicLinkUrl to "[url=" & aNoteClassicLink & "]" & "Watch in Evernote" & "[/url]" | evernote2things.applescript |
set newToDo to make new to do with properties {name:aNoteName, notes:aNoteClassicLinkUrl} | evernote2things.applescript |
set tag names of newToDo to "evernote-todo" | evernote2things.applescript |
tell application "iPhone Simulator" | reset_simulator.applescript |
tell process "iPhone Simulator" | reset_simulator.applescript |
tell menu bar item "iOS Simulator" | reset_simulator.applescript |
tell menu "iOS Simulator" | reset_simulator.applescript |
click menu item "Reset Content and Settings…" | reset_simulator.applescript |
click button "Reset" | reset_simulator.applescript |
set sedCmd to "echo \"" & _action's name & "\"|sed \"s/^[\\!\\ ]*//g\"" as string | prefix.applescript |
set trimmedName to do shell script sedCmd | prefix.applescript |
set _action's name to "!! " & trimmedName | prefix.applescript |
set MaxMagicNumber to 1000 | magic mods.applescript |
set modcountpair to {} | magic mods.applescript |
repeat with MagicNumber from 1 to MaxMagicNumber | magic mods.applescript |
set modpairs to {} | magic mods.applescript |
set modcount to {} | magic mods.applescript |
repeat with i from 1 to MagicNumber | magic mods.applescript |
set modcount to modcount & 0 | magic mods.applescript |
set a to i | magic mods.applescript |
set b to MagicNumber mod i | magic mods.applescript |
set modpairs to modpairs & {{a, b}} | magic mods.applescript |
set item (b + 1) of modcount to ((get item (b + 1) of modcount) + 1) | magic mods.applescript |
set modcountpair to modcountpair & {{MagicNumber, modcount}} | magic mods.applescript |
get modcountpair | magic mods.applescript |
property fileExt : ".eps" | Export_All_Canvases_to_EPS.applescript |
property generateBB : false | Export_All_Canvases_to_EPS.applescript |
property extractbb: "/usr/texbin/extractbb" | Export_All_Canvases_to_EPS.applescript |
set nextVariant to variant before currentVariant | select_previous_primary_variant.applescript |
set fname to (do shell script "date '+%Y%m%d-%H%M%S'") & ".txt" | Create new text file.applescript |
set newfile to (make new file at target of the front window as alias with properties {name:fname, file type:"TEXT"}) | Create new text file.applescript |
select newFile | Create new text file.applescript |
get UI elements of tab group 1 of window 1 | list-all-ids.applescript |
property timeToSetOffset : 28 * days -- number of seconds to set time. | Defer 1 month.scpt |
property NSViewController : a reference to current application's NSViewController | Popover.applescript |
property NSPopover : a reference to current application's NSPopover | Popover.applescript |
property NSColor : a reference to current application's NSColor | Popover.applescript |
set theWindow to NSWindow's alloc's initWithContentRect:{{200, 300}, {400, 200}} styleMask:7 backing:(current application's NSBackingStoreBuffered) defer:true | Popover.applescript |
set theWindow's releasedWhenClosed to true | Popover.applescript |
theWindow's contentView's addSubview:makeButton("Button", 50, 140) | Popover.applescript |
theWindow's contentView's addSubview:makeButton("A Second Button", 240, 110) | Popover.applescript |
theWindow's contentView's addSubview:makeButton("And Yet Another Button", 50, 50) | Popover.applescript |
tell theWindow to makeKeyAndOrderFront:me | Popover.applescript |
tell (NSButton's alloc's initWithFrame:{{x, y}, {70, 24}}) | Popover.applescript |
its sizeToFit() | Popover.applescript |
set title to sender's title | Popover.applescript |
set testString to "This is some popover text | Popover.applescript |
located at '" & title & "'." | Popover.applescript |
set {{x, y}, {width, height}} to (sender's frame()) as list | Popover.applescript |
set x to x + (width div 2) | Popover.applescript |
set y to y + (height div 2) | Popover.applescript |
my popoverWithMessage:testString atPoint:{x, y} inView:(sender's |window|'s contentView()) | Popover.applescript |
on popoverWithMessage:_message atPoint:_point inView:_view -- position popover at a point in the view | Popover.applescript |
set textField to makeTextField() | Popover.applescript |
textField's setStringValue:_message | Popover.applescript |
textField's sizeToFit() -- adjust text field to fit string | Popover.applescript |
set {width, height} to second item of (textField's frame as list) -- size to adjust view to text field | Popover.applescript |
set viewController to NSViewController's alloc's init | Popover.applescript |
viewController's setView:(NSView's alloc's initWithFrame:{{0, 0}, {width + 15, height + 15}}) | Popover.applescript |
viewController's view's addSubview:textField | Popover.applescript |
tell NSPopover's alloc's init() | Popover.applescript |
its setBehavior:(current application's NSPopoverBehaviorTransient) | Popover.applescript |
its showRelativeToRect:{_point, {1, 1}} ofView:_view preferredEdge:(current application's NSMaxYEdge) | Popover.applescript |
end popoverWithMessage:atPoint:inView: | Popover.applescript |
to makeTextField() -- make a text field for the popover | Popover.applescript |
tell (NSTextField's alloc's initWithFrame:{{10, 10}, {100, 100}}) | Popover.applescript |
its setBordered:false | Popover.applescript |
its setDrawsBackground:false -- label | Popover.applescript |
its setAlignment:(current application's NSTextAlignmentCenter) -- NSTextAlignmentLeft | Popover.applescript |
its setFont:(current application's NSFont's fontWithName:"Noteworthy Bold" |size|:24) | Popover.applescript |
its setTextColor:(current application's NSColor's redColor) | Popover.applescript |
set var to the clipboard as «class utf8» | set var to the clipboard as «class utf8».applescript |
set ttime to time string of (current date) | TimeNotification.applescript |
set ttime to do shell script "echo " & ttime & " | sed s/:..//2" | TimeNotification.applescript |
display notification ttime with title "The time is now" | TimeNotification.applescript |
encodeCharForURL(";") | encodeCharForURL.applescript |
tell BibDesk | Fill according to DOI.applescript |
set originalPub to selection of theDoc | Fill according to DOI.applescript |
set originalPub to item 1 of originalPub | Fill according to DOI.applescript |
set theDoi to value of originalPub's field "DOI" | Fill according to DOI.applescript |
if theDoi = "" then | Fill according to DOI.applescript |
display notification "There is no DOI there." | Fill according to DOI.applescript |
set tempPub to (import theDoc from theDoi) | Fill according to DOI.applescript |
if length of tempPub = 1 then | Fill according to DOI.applescript |
set tempPub to item 1 of tempPub | Fill according to DOI.applescript |
display notification "Umm, I didn't find anything at that DOI. Bummer." | Fill according to DOI.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.