text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
return first word of (do shell script "/usr/bin/shasum -a 1 " & quoted form of (POSIX path of aPath)) | calculate_checksum.applescript |
end sha1 | calculate_checksum.applescript |
on sha256(aPath) | calculate_checksum.applescript |
return first word of (do shell script "/usr/bin/shasum -a 256 " & quoted form of (POSIX path of aPath)) | calculate_checksum.applescript |
end sha256 | calculate_checksum.applescript |
on sha512(aPath) | calculate_checksum.applescript |
return first word of (do shell script "/usr/bin/shasum -a 512 " & quoted form of (POSIX path of aPath)) | calculate_checksum.applescript |
end sha512 | calculate_checksum.applescript |
set theAssemble to "" | Assemble Comments.applescript |
set theCnt to 0 | Assemble Comments.applescript |
if length of this_comment > 0 then | Assemble Comments.applescript |
set this_name to name of this_item | Assemble Comments.applescript |
set theAssemble to theAssemble & this_name & ":" & return & this_comment & return & return | Assemble Comments.applescript |
set theCnt to theCnt + 1 | Assemble Comments.applescript |
if (theCnt > 0) then | Assemble Comments.applescript |
create record with {name:(theCnt as string) & " comments", type:txt, plain text:theAssemble} in current group | Assemble Comments.applescript |
set new_message to make new outgoing message at folder id 2 with properties {subject:"Here is the file you requested", content:"Please find attached the file " & the_file_name, attachment:{the_file}, recipient:{"Fred Flintstone <[email protected]>", {display name:"Mickey", address:"[email protected]"}, {recipient type:cc recipient, address:{display name:"Shrek", address:"[email protected]"}}}} | Script 24-11.applescript |
display notification "" & this_item & " convertation completed" with title "squoosh-cli" | squoosh-oxypng.applescript |
howManyToRecall | Preset desk to before next cue.applescript |
set howManyToRecall to 1 -- To load several scenes quickly, e.g. if you are using recall filters and want to load the last 5 to ensure you have the correct settings running into the next scene. | Preset desk to before next cue.applescript |
recallDelay | Preset desk to before next cue.applescript |
set recallDelay to 0.5 -- Delay in seconds between recalls, when howManyToRecall is greater than 1 | Preset desk to before next cue.applescript |
set allCuesBeforePlayhead to {} | Preset desk to before next cue.applescript |
set sceneRecallCues to {} | Preset desk to before next cue.applescript |
set allSceneRecallCues to {} | Preset desk to before next cue.applescript |
set cueListMidiCues to {} | Preset desk to before next cue.applescript |
set howManyToRecallList to {} | Preset desk to before next cue.applescript |
repeat with eachCue in allCues | Preset desk to before next cue.applescript |
if uniqueID of eachCue is theCueID then | Preset desk to before next cue.applescript |
set end of allCuesBeforePlayhead to uniqueID of eachCue | Preset desk to before next cue.applescript |
set allMidiCues to every cue whose q type is "Midi" | Preset desk to before next cue.applescript |
repeat with eachCue in allMidiCues | Preset desk to before next cue.applescript |
if parent list of eachCue is (first cue list whose q name is cueListName) then set end of cueListMidiCues to eachCue | Preset desk to before next cue.applescript |
repeat with eachCue in cueListMidiCues | Preset desk to before next cue.applescript |
if q name of eachCue starts with "Scene " and q name of eachCue ends with "change" then set end of allSceneRecallCues to eachCue | Preset desk to before next cue.applescript |
repeat with eachCue in allSceneRecallCues | Preset desk to before next cue.applescript |
set eachParent to parent of eachCue | Preset desk to before next cue.applescript |
if parent of eachCue is (first cue list whose q name is cueListName) then | Preset desk to before next cue.applescript |
set eachParentID to uniqueID of eachCue | Preset desk to before next cue.applescript |
else if parent of eachParent is (first cue list whose q name is cueListName) then | Preset desk to before next cue.applescript |
set eachParentID to uniqueID of eachParent | Preset desk to before next cue.applescript |
set eachParent to parent of eachParent | Preset desk to before next cue.applescript |
if eachParentID is in allCuesBeforePlayhead then | Preset desk to before next cue.applescript |
set end of sceneRecallCues to eachCue | Preset desk to before next cue.applescript |
if howManyToRecall is 1 then | Preset desk to before next cue.applescript |
set cueToGo to q name of (item -1 of sceneRecallCues) | Preset desk to before next cue.applescript |
log cueToGo | Preset desk to before next cue.applescript |
start (item -1 of sceneRecallCues) | Preset desk to before next cue.applescript |
else if howManyToRecall is greater than 1 then | Preset desk to before next cue.applescript |
repeat with i from 1 to howManyToRecall | Preset desk to before next cue.applescript |
set end of howManyToRecallList to i | Preset desk to before next cue.applescript |
repeat with i in reverse of howManyToRecallList -- Reverse to recall cues in the correct order | Preset desk to before next cue.applescript |
set allCuesCount to count of sceneRecallCues | Preset desk to before next cue.applescript |
set cueToGo to q name of (item -i of sceneRecallCues) | Preset desk to before next cue.applescript |
start (item -i of sceneRecallCues) | Preset desk to before next cue.applescript |
delay recallDelay | Preset desk to before next cue.applescript |
count "text" | count "text".applescript |
set the_path to POSIX path of (item 1 of argv) | openVimForIterm2.applescript |
set cmd to "vi " & escapeSpace(the_path) | openVimForIterm2.applescript |
if isAppRunning("iTerm2") then | openVimForIterm2.applescript |
select last window | openVimForIterm2.applescript |
set newtab to (create tab with default profile) | openVimForIterm2.applescript |
tell newtab | openVimForIterm2.applescript |
on escapeSpace(myText) | openVimForIterm2.applescript |
set myText to every text item of myText | openVimForIterm2.applescript |
set AppleScript's text item delimiters to "\\ " | openVimForIterm2.applescript |
set myText to myText as string | openVimForIterm2.applescript |
return myText | openVimForIterm2.applescript |
end escapeSpace | openVimForIterm2.applescript |
on make_log_base() | Script 19-13.applescript |
script LogBase | Script 19-13.applescript |
property _linefeed : character id 10 | Script 19-13.applescript |
error "Not implemented." number -1708 | Script 19-13.applescript |
_write("****** " & the_text & " ******") | Script 19-13.applescript |
_write(the_text) | Script 19-13.applescript |
_write("ERROR: " & the_text) | Script 19-13.applescript |
end make_log_base | Script 19-13.applescript |
menu item "Sign Out…" of menu "Account" of menu bar item "Account" of menu bar 1 | SwitchMaciTunesAppleID.scpt |
click menu item 2 of menu 1 of menu bar item 8 of menu bar 1 | SwitchMaciTunesAppleID.scpt |
keystroke "YOUR APPLE ID" | SwitchMaciTunesAppleID.scpt |
keystroke "YOUR APPLE ID PASSWORD" | SwitchMaciTunesAppleID.scpt |
property pw : "" | StationTV%20Helper.scpt |
property command : {{true, "touch "}, {false, "rm "}} | StationTV%20Helper.scpt |
property check_text : {{true, "入"}, {false, "切"}} | StationTV%20Helper.scpt |
property ScreenSharing_launchd : {{"10.5", "/Library/Preferences/com.apple.ScreenSharing.launchd"}, {"10.6", "/etc/ScreenSharing.launchd"}} | StationTV%20Helper.scpt |
property RemoteManagement_launchd : {{"10.5", "/Library/Preferences/com.apple.RemoteManagement.launchd"}, {"10.6", "/etc/RemoteManagement.launchd"}} | StationTV%20Helper.scpt |
global process_list | StationTV%20Helper.scpt |
global service_list | StationTV%20Helper.scpt |
global screen_sharing | StationTV%20Helper.scpt |
global remote_managemanet | StationTV%20Helper.scpt |
set process_list to {} | StationTV%20Helper.scpt |
set service_list to {} | StationTV%20Helper.scpt |
set screen_sharing to my file_exists(my look_up(ScreenSharing_launchd, my os_version())) | StationTV%20Helper.scpt |
set remote_managemanet to my file_exists(my look_up(RemoteManagement_launchd, my os_version())) | StationTV%20Helper.scpt |
if pw is "" then | StationTV%20Helper.scpt |
my save_password() | StationTV%20Helper.scpt |
my ng_services(false) | StationTV%20Helper.scpt |
my quit_ng_apps() | StationTV%20Helper.scpt |
my hide() | StationTV%20Helper.scpt |
activate application "StationTV LE" | StationTV%20Helper.scpt |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.