text
stringlengths
0
15.7k
source
stringlengths
6
112
set scpt to scpt & space & "using \"" & (z_use of rec) & "\""
_ui-helpers.applescript
set scpt to scpt & space & "waiting until completion " & (z_waiting of rec)
_ui-helpers.applescript
if (z_save of rec) contains "/" then
_ui-helpers.applescript
set def_ to "POSIX file \"" & (z_save of rec) & "\" as alias"
_ui-helpers.applescript
else if (z_save of rec) contains ":" then
_ui-helpers.applescript
set def_ to "\"" & (z_save of rec) & "\" as alias"
_ui-helpers.applescript
set def_ to (z_save of rec)
_ui-helpers.applescript
set scpt to scpt & space & "saving to " & (def_)
_ui-helpers.applescript
on stringify_list(l)
_ui-helpers.applescript
repeat with i from 1 to count of l
_ui-helpers.applescript
set item i of l to ("\"" & (item i of l) & "\"")
_ui-helpers.applescript
set l to my implode(", ", l)
_ui-helpers.applescript
set l to "{" & l & "}"
_ui-helpers.applescript
end stringify_list
_ui-helpers.applescript
on implode(delimiter, pieces)
_ui-helpers.applescript
local delimiter, pieces, ASTID
_ui-helpers.applescript
set pieces to "" & pieces
_ui-helpers.applescript
return pieces --> text
_ui-helpers.applescript
error "Can't implode: " & eMsg number eNum
_ui-helpers.applescript
end implode
_ui-helpers.applescript
if (urlList as text) contains "https://tweetdeck.twitter.com/" = true then
KM-ChromeTab-Tweetdeck.scpt
if n starts with "https://tweetdeck.twitter.com/" then
KM-ChromeTab-Tweetdeck.scpt
if _win ≠ false then
KM-ChromeTab-Tweetdeck.scpt
perform action "AXRaise" of window _win
KM-ChromeTab-Tweetdeck.scpt
tell front window to set active tab index to _tab
KM-ChromeTab-Tweetdeck.scpt
set newWin to make new window
KM-ChromeTab-Tweetdeck.scpt
tell newWin to set URL of active tab to "https://tweetdeck.twitter.com/"
KM-ChromeTab-Tweetdeck.scpt
set thePath to choose file name with prompt "Enter the name and choose the path" default name "Untitled.applescript"
Save-As-Text-Script.applescript
save in thePath as text script line endings Unix endings
Save-As-Text-Script.applescript
{"Xcode Notification"}
growl-xcode.scpt
"Xcode AppleScript" all notifications allNotificationsList ¬
growl-xcode.scpt
icon of application "Xcode"
growl-xcode.scpt
"Xcode Notification" title ¬
growl-xcode.scpt
"Run Failed" description ¬
growl-xcode.scpt
"iOS Application had an crash" application name "Xcode AppleScript"
growl-xcode.scpt
global std, listUtil, sb, textUtil, json
map.applescript
logger's finish() -- unlock the script active flag
map.applescript
set thisCaseId to "Map-spotCheck"
map.applescript
set config to std's import("config")'s new("system")
map.applescript
From PList - Skip this
map.applescript
From String
map.applescript
From JSON String
map.applescript
To String
map.applescript
Iterate
map.applescript
Debug getValueRecord
map.applescript
Debug multiple colon
map.applescript
Map of Maps
map.applescript
Dollar Sign
map.applescript
set plistMap to config's getCategoryValue("system", "test map")
map.applescript
set sut to fromRecord(plistMap)
map.applescript
repeat with nextKey in sut's getKeys()
map.applescript
log nextKey & " - " & sut's getValue(nextKey)
map.applescript
set sut to newInstanceFromString("
map.applescript
applescript: AppleScript
map.applescript
js: JavaScript
map.applescript
rb: Ruby
map.applescript
sh: Shell Script
map.applescript
yml: YAML
map.applescript
plist: Property List
map.applescript
json: JSON
map.applescript
cfc: Coldfusion Component
map.applescript
cfm: Coldfusion Page
map.applescript
Spec.cfc: Testbox
map.applescript
Test.cfc: MxUnit
map.applescript
txt: Text
map.applescript
icns: macOS Icon Resource File
map.applescript
set sut to newInstanceFromJson("{\"ts\": \"TypeScript\", \"md\": \"Markdown\"}")
map.applescript
logger's debugf("Key: {}, Value: {}", {nextKey, sut's getValue(nextKey)})
map.applescript
set localPlistPosixPath to text 8 thru -1 of (URL of folder "applescript" of (path to home folder) as text) & "spot-plist.plist"
map.applescript
set getDictShellCommand to format {"/usr/libexec/PlistBuddy -c \"Print :{}\" {} | awk '/^[[:space:]]/' | awk 'NF {$1=$1;print $0}' | sed 's/:/__COLON__/g' | sed 's/[[:space:]]=[[:space:]]/: /g'", {"spot-record", quoted form of localPlistPosixPath}}
map.applescript
logger's debugf("dictShellResult: {}", dictShellResult)
map.applescript
set sut to newInstanceFromString(dictShellResult)
map.applescript
log sut's getKeys()
map.applescript
amazing OWA: kmtrigger://macro=Open%20Safari%20Group&value=amazing%20OWA
map.applescript
Personal OWA: kmtrigger://macro=Open%20Safari%20Group&value=personal%20OWA
map.applescript
IT Support Ticket: mailto:[email protected]?body=LOCATION%3A%20Remote%0ALOB%3A%20Mobile%20%28Engineering%29%0ATeam%20Lead%3A%20Joyce%20Avestro%0AIssue/%20Request%3A%0ATime:%0AOther%20Details%3A
map.applescript
set fried to new()
map.applescript
set mav to newInstanceFromString("
map.applescript
agent: none
map.applescript
lawyer: max
map.applescript
noone: nic
map.applescript
fried's putValue("mav", mav)
map.applescript
log fried's getValue("may")
map.applescript
set friedSon to fried's getValue("mav")
map.applescript
log friedSon's toString()
map.applescript
amazing OWA: kmtrigger://macro=Open%20Safari%20Group&value=amazing%20OWA$Special
map.applescript
on newInstanceFromString(theText)
map.applescript
set mapLines to listUtil's splitByLine(theText as text)
map.applescript
set theMap to new()
map.applescript
repeat with nextLine in mapLines
map.applescript
set lineTokens to listUtil's _split(nextLine, ": ")
map.applescript
set nextKey to first item of lineTokens
map.applescript
set nextValue to second item of lineTokens
map.applescript
if nextKey contains "__COLON__" then set nextKey to textUtil's replace(nextKey, "__COLON__", ":")
map.applescript
if nextValue contains "__COLON__" then set nextValue to textUtil's replace(nextValue, "__COLON__", ":")
map.applescript
theMap's putValue(nextKey, nextValue)
map.applescript
theMap
map.applescript
end newInstanceFromString
map.applescript
on newInstanceFromRecord(theRecord as record)
map.applescript
fromRecord(theRecord)
map.applescript