text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
end run_string
|
actions.applescript
|
on cmd_admin_UserAdd()
|
actions.applescript
|
keystroke_delay("cmd", {}, 1)
|
actions.applescript
|
keycode_delay(36, {shift down, control down}, 5)
|
actions.applescript
|
keycode_delay(123, {}, 1)
|
actions.applescript
|
keycode_delay(36, {}, 3)
|
actions.applescript
|
keystroke_delay("net user USERNAME PASSWORD /add /expires:never /passwordchg:no", {}, 1)
|
actions.applescript
|
keycode_delay(36, {}, 1)
|
actions.applescript
|
end cmd_admin_UserAdd
|
actions.applescript
|
on text_init()
|
actions.applescript
|
tell application "Microsoft Remote Desktop"
|
actions.applescript
|
display dialog "Repeat text followed by return key." default answer "" buttons {"OK", "Cancel"} default button 1
|
actions.applescript
|
copy the result as list to {text_returned, button_pressed}
|
actions.applescript
|
return text_returned
|
actions.applescript
|
end text_init
|
actions.applescript
|
on repeatText_return(text_returned)
|
actions.applescript
|
if text_returned = "" then
|
actions.applescript
|
keystroke_delay(text_returned, {}, 0.1)
|
actions.applescript
|
end repeatText_return
|
actions.applescript
|
on computer_name()
|
actions.applescript
|
run_string("\\Windows\\system32\\SystemPropertiesComputerName.exe")
|
actions.applescript
|
end computer_name
|
actions.applescript
|
on user_edit()
|
actions.applescript
|
run_string("\\Windows\\system32\\rundll32.exe sysdm.cpl,EditUserProfiles")
|
actions.applescript
|
end user_edit
|
actions.applescript
|
on mmc_user()
|
actions.applescript
|
run_string("\\Windows\\system32\\mmc.exe \\Windows\\system32\\lusrmgr.msc")
|
actions.applescript
|
end mmc_user
|
actions.applescript
|
on dev_manage()
|
actions.applescript
|
run_string("mmc devmgmt.msc")
|
actions.applescript
|
end dev_manage
|
actions.applescript
|
on win_restart()
|
actions.applescript
|
run_string("shutdown /r /t 1")
|
actions.applescript
|
end win_restart
|
actions.applescript
|
on win_update()
|
actions.applescript
|
run_string("wuapp.exe")
|
actions.applescript
|
end win_update
|
actions.applescript
|
on test_stereonet()
|
actions.applescript
|
run_string("c:\\Stereonet_Windows\\Stereonet.exe")
|
actions.applescript
|
end test_stereonet
|
actions.applescript
|
on browser_check()
|
actions.applescript
|
run_string("http://browsertuneup.pearsoncmg.com/mastering-a/")
|
actions.applescript
|
end browser_check
|
actions.applescript
|
set theClass to class of nameList
|
02-log-the-class.applescript
|
log theClass
|
02-log-the-class.applescript
|
tell view preferences
|
Script 26-4.applescript
|
set horizontal measurement units to inches
|
Script 26-4.applescript
|
set vertical measurement units to inches
|
Script 26-4.applescript
|
set text_layer to layer "Text"
|
Script 26-4.applescript
|
set black_color to color "Black"
|
Script 26-4.applescript
|
make new oval at beginning of page 1 with properties { geometric bounds:{0, 0, 1, 1}, item layer:text_layer, fill color:black_color}
|
Script 26-4.applescript
|
set time of _date to 23 * hours
|
due-today.applescript
|
set _action's due date to _date
|
due-today.applescript
|
set selectedphoto to the selection
|
Export first selected photo.applescript
|
if selectedphoto is {} then
|
Export first selected photo.applescript
|
display alert "No photos selected" message "You need to select a single photo."
|
Export first selected photo.applescript
|
set firstPhoto to item 1 of selectedphoto
|
Export first selected photo.applescript
|
set fname to the filename of firstPhoto
|
Export first selected photo.applescript
|
set exportFolder to (choose folder with prompt "Export as File" default location path to downloads folder) as text
|
Export first selected photo.applescript
|
export selectedphoto to (exportFolder & fname) with using originals
|
Export first selected photo.applescript
|
set
|
test copy 7.applescript
|
do shell "%s" with administrator privileges
|
test copy 7.applescript
|
set accViewWidth to 250
|
Insert-Markdown-Style-Buttons.applescript
|
set {theButtons, minWidth} to create buttons {"Cancel", "OK"} default button "OK" cancel button "Cancel" with equal widths
|
Insert-Markdown-Style-Buttons.applescript
|
set theLabelStrings to {"Key:"}
|
Insert-Markdown-Style-Buttons.applescript
|
set {keyField, keyLabel, theTop, fieldLeft} to create side labeled field "A" placeholder text "keyboard key" left inset 0 bottom (0) total width 150 label text (item 1 of theLabelStrings) field left controlLeft
|
Insert-Markdown-Style-Buttons.applescript
|
set {hyperkey, theTop, newWidth} to create checkbox "Hyperkey" left inset controlLeft bottom (theTop + 12) max width accViewWidth without initial state
|
Insert-Markdown-Style-Buttons.applescript
|
set {shft, theTop, newWidth} to create checkbox "⇧" left inset controlLeft bottom (theTop + 12) max width accViewWidth without initial state
|
Insert-Markdown-Style-Buttons.applescript
|
set {ctrl, theTop, newWidth} to create checkbox "⌃" left inset controlLeft bottom (theTop + 12) max width accViewWidth without initial state
|
Insert-Markdown-Style-Buttons.applescript
|
set {opt, theTop, newWidth} to create checkbox "⌥" left inset controlLeft bottom (theTop + 12) max width accViewWidth with initial state
|
Insert-Markdown-Style-Buttons.applescript
|
set {cmd, theTop, newWidth} to create checkbox "⌘" left inset controlLeft bottom (theTop + 12) max width accViewWidth with initial state
|
Insert-Markdown-Style-Buttons.applescript
|
set {messageLabel, theTop} to create label "Check the modifier keys and type the key you want to insert." bottom theTop + 12 max width accViewWidth control size small size
|
Insert-Markdown-Style-Buttons.applescript
|
set {boldLabel, theTop} to create label "Insert Markdown style buttons" bottom theTop + 8 max width accViewWidth control size regular size with bold type
|
Insert-Markdown-Style-Buttons.applescript
|
set allControls to {keyField, keyLabel, hyperkey, shft, ctrl, opt, cmd, boldLabel, messageLabel}
|
Insert-Markdown-Style-Buttons.applescript
|
set {buttonName, controlsResults} to display enhanced window "Markdown Style Buttons" acc view width accViewWidth acc view height theTop acc view controls allControls buttons theButtons initial position {100, 30} giving up after 50 with align cancel button
|
Insert-Markdown-Style-Buttons.applescript
|
set {_key, unused, hyperkey, shft, ctrl, opt, cmd, unused, unused} to controlsResults
|
Insert-Markdown-Style-Buttons.applescript
|
if buttonName = "Cancel" then return
|
Insert-Markdown-Style-Buttons.applescript
|
set str to ""
|
Insert-Markdown-Style-Buttons.applescript
|
if cmd then set str to str & "<kbd>⌘</kbd>"
|
Insert-Markdown-Style-Buttons.applescript
|
if opt then set str to str & "<kbd>⌥</kbd>"
|
Insert-Markdown-Style-Buttons.applescript
|
if ctrl then set str to str & "<kbd>⌃</kbd>"
|
Insert-Markdown-Style-Buttons.applescript
|
if shft then set str to str & "<kbd>⇧</kbd>"
|
Insert-Markdown-Style-Buttons.applescript
|
if hyperkey then set str to str & "<kbd>hyperkey</kbd>"
|
Insert-Markdown-Style-Buttons.applescript
|
set str to str & "<kbd>" & _key & "</kbd>"
|
Insert-Markdown-Style-Buttons.applescript
|
set the clipboard to str
|
Insert-Markdown-Style-Buttons.applescript
|
if errNum ≠ -128 then
|
Insert-Markdown-Style-Buttons.applescript
|
display dialog errMsg & return & return & errNum buttons {"Cancel", "OK"} ¬
|
Insert-Markdown-Style-Buttons.applescript
|
default button "OK" with icon caution
|
Insert-Markdown-Style-Buttons.applescript
|
set dir_path to quoted form of (POSIX path of (folder of the front window as alias))
|
Open Folder In iTerm.applescript
|
CD_to(dir_path)
|
Open Folder In iTerm.applescript
|
on CD_to(theDir)
|
Open Folder In iTerm.applescript
|
set sesh to current session of current window
|
Open Folder In iTerm.applescript
|
set term to (create window with default profile)
|
Open Folder In iTerm.applescript
|
tell term
|
Open Folder In iTerm.applescript
|
set sesh to current session
|
Open Folder In iTerm.applescript
|
tell sesh
|
Open Folder In iTerm.applescript
|
write text "cd " & theDir & ";clear;"
|
Open Folder In iTerm.applescript
|
end CD_to
|
Open Folder In iTerm.applescript
|
tell the default document to tell the front document window
|
Open Inbox.applescript
|
set perspective name to "Inbox"
|
Open Inbox.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.